[swell-foop/gnome-3-16] Always show the new game button.
- From: Yanko Kaneti <yaneti src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [swell-foop/gnome-3-16] Always show the new game button.
- Date: Wed, 12 Aug 2015 08:21:41 +0000 (UTC)
commit 4892f538c819375c7e49961b27d97340cd2e7737
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]