Documentation request - headerbars, stacks and catalogs
Thanks for your really nice tool!
I'm only writing this feature request since these are some sticky points I ran into while trying to learn your otherwise very nice system. It would be nice to have some documentation on the following three points:
Headerbar
The headerbar is particular in that it needs to be added as a child of Gtk.Window before anything else. I couldn't figure out how to add a headerbar after I had already worked on other child widgets of Gtk.Window.
catalogs
I have an object that is derived from Gtk.Window. I looked -- for a long time -- for a way to read the glade-defined window in, and then replace the Gtk.Window part of my object with that window (create using e.g. Builder.new_from_file()). I couldn't figure this out so I went the catalog route. This is somewhat convoluted, and I wish there was a nicer way to include the catalog on a project basis. I managed to get the classes of interest to show up in glade.
I cannot, however, get the thing to load with Builder.new_from_file()
. I get the error message:
Gtk-ERROR **: 13:31:32.904: failed to add UI: glade/my_ui.glade:6:1 Invalid object type 'MyInheritedWindow'
Stack with StackSwitcher in header
I was trying to dissect your Glade UI (glade.glade) in order to learn how to make a UI. I cannot figure out how you folks got the stack switcher to center in the headerbar.