[gnome-games] swell-foop: Stop using games_stock_*
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] swell-foop: Stop using games_stock_*
- Date: Wed, 29 Aug 2012 04:20:57 +0000 (UTC)
commit 7ad6edb00bc50bd28e57e714fc542b49f38becc7
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Aug 29 16:20:49 2012 +1200
swell-foop: Stop using games_stock_*
swell-foop/src/swell-foop.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/swell-foop/src/swell-foop.vala b/swell-foop/src/swell-foop.vala
index 791c057..e9aedcc 100644
--- a/swell-foop/src/swell-foop.vala
+++ b/swell-foop/src/swell-foop.vala
@@ -46,9 +46,8 @@ public class SwellFoop : Gtk.Application
settings = new Settings ("org.gnome.swell-foop");
- GnomeGamesSupport.stock_init ();
-
add_action_entries (action_entries, this);
+ add_accelerator ("<Primary>n", "app.new-game", null);
/* Create the main window */
main_window = new Gtk.ApplicationWindow (this);
@@ -82,7 +81,10 @@ public class SwellFoop : Gtk.Application
toolbar.show ();
vbox.pack_start (toolbar, false, true, 0);
- var new_game_button = new Gtk.ToolButton.from_stock (GnomeGamesSupport.STOCK_NEW_GAME);
+ var image = new Gtk.Image.from_icon_name ("document-new", Gtk.IconSize.LARGE_TOOLBAR);
+ image.show ();
+ var new_game_button = new Gtk.ToolButton (image, "_New");
+ new_game_button.use_underline = true;
new_game_button.action_name = "app.new-game";
new_game_button.is_important = true;
new_game_button.show ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]