[gnome-games] swell-foop: Simplify toolbar icon creation
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] swell-foop: Simplify toolbar icon creation
- Date: Wed, 29 Aug 2012 04:32:41 +0000 (UTC)
commit 9d72cd8b9e8ab18cce801bee53e358f754157b6c
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Aug 29 16:22:17 2012 +1200
swell-foop: Simplify toolbar icon creation
swell-foop/src/swell-foop.vala | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/swell-foop/src/swell-foop.vala b/swell-foop/src/swell-foop.vala
index e9aedcc..253ab44 100644
--- a/swell-foop/src/swell-foop.vala
+++ b/swell-foop/src/swell-foop.vala
@@ -81,9 +81,8 @@ public class SwellFoop : Gtk.Application
toolbar.show ();
vbox.pack_start (toolbar, false, true, 0);
- 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");
+ var new_game_button = new Gtk.ToolButton (null, "_New");
+ new_game_button.icon_name = "document-new";
new_game_button.use_underline = true;
new_game_button.action_name = "app.new-game";
new_game_button.is_important = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]