[simple-scan] Remove app menu



commit 66c2a4f915e879157d464fc985763c03c5f27bec
Author: Robert Ancell <robert ancell canonical com>
Date:   Sun Jul 1 16:06:13 2018 +1200

    Remove app menu
    
    https://wiki.gnome.org/Initiatives/GnomeGoals/AppMenuRetirement

 src/app-window.vala | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index b5d405d..153b975 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -1572,21 +1572,6 @@ public class AppWindow : Gtk.ApplicationWindow
 
             app.add_action_entries (action_entries, this);
 
-            var appmenu = new Menu ();
-
-            var section = new Menu ();
-            appmenu.append_section (null, section);
-            section.append (_("Preferences"), "app.preferences");
-
-            section = new Menu ();
-            appmenu.append_section (null, section);
-            section.append (_("Keyboard Shortcuts"), "win.show-help-overlay");
-            section.append (_("Help"), "app.help");
-            section.append (_("About"), "app.about");
-            section.append (_("Quit"), "app.quit");
-
-            app.app_menu = appmenu;
-
             app.set_accels_for_action ("app.new_document", { "<Ctrl>N" });
             app.set_accels_for_action ("app.save", { "<Ctrl>S" });
             app.set_accels_for_action ("app.email", { "<Ctrl>E" });
@@ -1595,11 +1580,16 @@ public class AppWindow : Gtk.ApplicationWindow
             app.set_accels_for_action ("app.quit", { "<Ctrl>Q" });
 
             var gear_menu = new Menu ();
-            section = new Menu ();
+            var section = new Menu ();
             gear_menu.append_section (null, section);
             section.append (_("Email"), "app.email");
             section.append (_("Reorder Pages"), "app.reorder");
+            section = new Menu ();
+            gear_menu.append_section (null, section);
             section.append (_("Preferences"), "app.preferences");
+            section.append (_("Keyboard Shortcuts"), "win.show-help-overlay");
+            section.append (_("Help"), "app.help");
+            section.append (_("About"), "app.about");
             menu_button.set_menu_model (gear_menu);
         }
         app.add_window (this);


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