Re: Merging UI strings into Gtk::Builder?
- From: Carlo Wood <carlo alinoe com>
- To: gtkmm-list gnome org
- Subject: Re: Merging UI strings into Gtk::Builder?
- Date: Mon, 27 Jul 2020 17:33:47 +0200
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]