[swell-foop] Always show the new game button.



commit 45d849a07fa00eba33c76ec517fae73361af265b
Author: Yanko Kaneti <yaneti declera com>
Date:   Tue Aug 11 19:04:54 2015 +0300

    Always show the new game button.
    
    Show the new game button regardless of whether the desktop shell
    shows an app menu or not. The toolkit takes care of it
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1252480

 src/swell-foop.vala |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/swell-foop.vala b/src/swell-foop.vala
index 55c4afe..af6dfa6 100644
--- a/src/swell-foop.vala
+++ b/src/swell-foop.vala
@@ -146,15 +146,12 @@ public class SwellFoop : Gtk.Application
         headerbar.show_close_button = true;
         window.set_titlebar (headerbar);
 
-        if (Gtk.Settings.get_default ().gtk_shell_shows_app_menu)
-        {
-            var new_game_button = new Gtk.Button.from_icon_name ("view-refresh-symbolic", 
Gtk.IconSize.SMALL_TOOLBAR);
-            new_game_button.valign = Gtk.Align.CENTER;
-            new_game_button.action_name = "app.new-game";
-            new_game_button.tooltip_text = _("Start a new game");
-            new_game_button.show ();
-            headerbar.pack_start (new_game_button);
-        }
+        var new_game_button = new Gtk.Button.from_icon_name ("view-refresh-symbolic", 
Gtk.IconSize.SMALL_TOOLBAR);
+        new_game_button.valign = Gtk.Align.CENTER;
+        new_game_button.action_name = "app.new-game";
+        new_game_button.tooltip_text = _("Start a new game");
+        new_game_button.show ();
+        headerbar.pack_start (new_game_button);
 
         /* show the current score */
         update_score_cb (0);


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