Hi Zelphir, > ...
You are misinterpreting what I wrote, and we miscommunicate. GtkBuilder reads XML descriptions of a user interface and instantiates the described objects. Those XML descriptions are largely identical when defining a composite widget using a template, with some slight differences, to quote the upstream doc: The interface description semantics expected in composite template descriptions is slightly different from regular GtkBuilder XML gtk_widget. Templates do use gtk builders, as a matter of fact, Internally - just so that you know, g-golf takes care of all this for its users - gtk_widget_init_template() calls gtk_builder_set_current_object(). You could define your menu in a separate file, but that's not what the (upstream) adwaita-1-demo does, and they really know what they are doing ... however, if you persist, you'll find an example in the gtk4-demo, Application Class. For your app though, I strongly recommend that you template(s), in a way that you should learn and 'copy' from the adwaita-1-demo g-golf port. This is my last msg wrt this subject. David
pgpzSKuZH1kNV.pgp
Description: OpenPGP digital signature