[swell-foop] Moved appmenu items to primary menu (#11)



commit daf6eacef0f17ee9da3dc63f30d06140034a2942
Author: Robert Roth <robert roth off gmail com>
Date:   Fri Oct 5 23:12:56 2018 +0300

    Moved appmenu items to primary menu (#11)

 src/swell-foop.vala | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/swell-foop.vala b/src/swell-foop.vala
index 49bee9a..8d6af97 100644
--- a/src/swell-foop.vala
+++ b/src/swell-foop.vala
@@ -149,7 +149,6 @@ public class SwellFoop : Gtk.Application
         menu.append_section (null, section);
         section.append (_("_Help"), "app.help");
         section.append (_("_About Swell Foop"), "app.about");
-        set_app_menu (menu);
 
         /* Create a headerbar */
         headerbar = new Gtk.HeaderBar ();
@@ -158,6 +157,13 @@ public class SwellFoop : Gtk.Application
         headerbar.show_close_button = true;
         window.set_titlebar (headerbar);
 
+        /* Add the primary menu button */
+        var primary_menu = new Gtk.MenuButton ();
+        primary_menu.show ();
+        primary_menu.set_image (new Gtk.Image.from_icon_name ("open-menu-symbolic", Gtk.IconSize.BUTTON));
+        primary_menu.set_menu_model (menu);
+        headerbar.pack_end (primary_menu);
+
         /* show the current score */
         update_score_cb (0);
 


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