[iagno] Misc improvements for the new game button
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Misc improvements for the new game button
- Date: Sun, 9 Feb 2014 00:15:12 +0000 (UTC)
commit 38db323bf70a8804ad4f20d2a780834a0490d3eb
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Feb 8 17:32:29 2014 -0600
Misc improvements for the new game button
src/iagno.vala | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index 9d166a9..74eb16a 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -141,13 +141,12 @@ public class Iagno : Gtk.Application
light_score_label.show ();
grid.attach (light_score_label, 2, 1, 1, 1);
- new_game_button = new Gtk.Button ();
- var image = new Gtk.Image.from_icon_name ("view-refresh-symbolic", Gtk.IconSize.DIALOG);
- image.show ();
- new_game_button.add (image);
+ new_game_button = new Gtk.Button.from_icon_name ("view-refresh-symbolic", Gtk.IconSize.DIALOG);
+ new_game_button.halign = Gtk.Align.CENTER;
+ new_game_button.valign = Gtk.Align.CENTER;
new_game_button.relief = Gtk.ReliefStyle.NONE;
new_game_button.action_name = "app.new-game";
- side_box.pack_end (new_game_button, false, true, 10);
+ side_box.pack_end (new_game_button, false, false, 0);
start_game ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]