[gnome-games] swell-foop: Use halign/valign instead of a GtkAlignment
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] swell-foop: Use halign/valign instead of a GtkAlignment
- Date: Tue, 27 Mar 2012 22:11:53 +0000 (UTC)
commit f128f7c93a5832c1c5a8a0529f8fb39d0320d454
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Wed Mar 28 00:11:39 2012 +0200
swell-foop: Use halign/valign instead of a GtkAlignment
swell-foop/src/swell-foop.vala | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/swell-foop/src/swell-foop.vala b/swell-foop/src/swell-foop.vala
index d5a2ddb..6fa6512 100644
--- a/swell-foop/src/swell-foop.vala
+++ b/swell-foop/src/swell-foop.vala
@@ -112,6 +112,8 @@ public class SwellFoop : Gtk.Application
/* Create a label in toolbar showing the score etc. */
var status_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 10);
+ status_box.halign = Gtk.Align.END;
+ status_box.valign = Gtk.Align.CENTER;
status_box.show ();
/* show the current score */
@@ -120,13 +122,9 @@ public class SwellFoop : Gtk.Application
status_box.pack_start (current_score_label, false, false, 0);
update_score_cb (0);
- var status_alignment = new Gtk.Alignment (1.0f, 0.5f, 0.0f, 0.0f);
- status_alignment.add (status_box);
- status_alignment.show ();
-
var status_item = new Gtk.ToolItem ();
status_item.set_expand (true);
- status_item.add (status_alignment);
+ status_item.add (status_box);
status_item.show ();
toolbar.insert (status_item, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]