Re: Merging UI strings into Gtk::Builder?



On Mon, 27 Jul 2020 07:23:30 -0700
Phil Wolff via gtkmm-list <gtkmm-list gnome org> 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);
  }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]