|
|
|
@ -87,7 +87,10 @@ const Glib::ustring menu_xml = R"RAW(<interface> |
|
|
|
</item> |
|
|
|
</item> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
</menu> |
|
|
|
</menu> |
|
|
|
<menu id='juci-menu'> |
|
|
|
|
|
|
|
|
|
|
|
<menu id='window-menu'> |
|
|
|
|
|
|
|
<submenu id='juci-menu'> |
|
|
|
|
|
|
|
<attribute name='label' translatable='yes'>_juci++</attribute> |
|
|
|
<section> |
|
|
|
<section> |
|
|
|
<item> |
|
|
|
<item> |
|
|
|
<attribute name='label' translatable='yes'>_About</attribute> |
|
|
|
<attribute name='label' translatable='yes'>_About</attribute> |
|
|
|
@ -116,9 +119,7 @@ const Glib::ustring menu_xml = R"RAW(<interface> |
|
|
|
<attribute name='action'>app.quit</attribute> |
|
|
|
<attribute name='action'>app.quit</attribute> |
|
|
|
</item> |
|
|
|
</item> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
</menu> |
|
|
|
</submenu> |
|
|
|
|
|
|
|
|
|
|
|
<menu id='window-menu'> |
|
|
|
|
|
|
|
<submenu> |
|
|
|
<submenu> |
|
|
|
<attribute name='label' translatable='yes'>_File</attribute> |
|
|
|
<attribute name='label' translatable='yes'>_File</attribute> |
|
|
|
<section> |
|
|
|
<section> |
|
|
|
@ -611,9 +612,7 @@ void Menu::set_keys() { |
|
|
|
void Menu::build() { |
|
|
|
void Menu::build() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
builder = Gtk::Builder::create_from_string(menu_xml); |
|
|
|
builder = Gtk::Builder::create_from_string(menu_xml); |
|
|
|
auto object = builder->get_object("juci-menu"); |
|
|
|
auto object = builder->get_object("window-menu"); |
|
|
|
juci_menu = Glib::RefPtr<Gio::Menu>::cast_dynamic(object); |
|
|
|
|
|
|
|
object = builder->get_object("window-menu"); |
|
|
|
|
|
|
|
window_menu = Glib::RefPtr<Gio::Menu>::cast_dynamic(object); |
|
|
|
window_menu = Glib::RefPtr<Gio::Menu>::cast_dynamic(object); |
|
|
|
object = builder->get_object("right-click-line-menu"); |
|
|
|
object = builder->get_object("right-click-line-menu"); |
|
|
|
auto ptr = Glib::RefPtr<Gio::Menu>::cast_dynamic(object); |
|
|
|
auto ptr = Glib::RefPtr<Gio::Menu>::cast_dynamic(object); |
|
|
|
|