Commit f072305f authored by Jeremy Bicha's avatar Jeremy Bicha 🎹 Committed by Michael Terry

menus: Update for GNOME 3.32 recommendations

https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement
parent 48c98324
<?xml version="1.0" encoding="UTF-8"?>
<!-- -*- Mode: XML; indent-tabs-mode: nil; tab-width: 2 -*- -->
<interface>
<menu id="app-menu">
<menu id="primary-menu">
<section>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
......@@ -12,13 +12,9 @@
<attribute name="action">app.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About</attribute>
<attribute name="label" translatable="yes">_About Backups</attribute>
<attribute name="action">app.about</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Quit</attribute>
<attribute name="action">app.quit</attribute>
</item>
</section>
</menu>
</interface>
......@@ -163,6 +163,13 @@ public class DejaDupApp : Gtk.Application
header.show_close_button = true;
main_window.set_titlebar(header);
var menu = this.get_menu_by_id("primary-menu");
var menu_button = new Gtk.MenuButton ();
menu_button.set_image(new Gtk.Image.from_icon_name("open-menu-symbolic", Gtk.IconSize.BUTTON));
menu_button.show();
menu_button.set_menu_model(menu);
header.pack_end(menu_button);
var auto_switch = new DejaDup.PreferencesPeriodicSwitch();
auto_switch.valign = Gtk.Align.CENTER;
header.pack_end(auto_switch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment