Re: Merging UI strings into Gtk::Builder?
Carlo Wood <[email protected]> Mon, 27 Jul 2020 17:33:47 +0200
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 27 Jul 2020 07:23:30 -0700 Phil Wolff via gtkmm-list <[email protected]> wrote: > Both definitions specify the same string for the menu id, so the > second definition updates/overwrites the first one. Try using > 'menu-linuxchess-2' in the second one... That won't help... it is one single menu: auto object = m_refBuilder->get_object("menu-linuxchess"); auto gmenu = Glib::RefPtr<Gio::Menu>::cast_dynamic(object); if (!gmenu) { g_warning("GMenu not found"); } else { set_menubar(gmenu); }