Edit: IIUC the current code does not work because the child of the page, the Box is not a Bin so the cast to bin will return null

Yes:

(geany:75738): Gtk-CRITICAL **: 11:39:58.065: gtk_bin_get_child: assertion 'GTK_IS_BIN (bin)' failed
(geany:75738): Gtk-CRITICAL **: 11:39:58.065: gtk_widget_grab_focus: assertion 'GTK_IS_WIDGET (widget)' failed

Wouldn't ui_lookup_widget(main_widgets.window, "treeview2") returns the proper widget to be focus no matter the change in the shape of the widget tree ? Isn't it "treeview2" that need to be focused ?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/3678/1797337941@github.com>