[iagno] Center the grid in the window



commit 96d8d14adeb42722fc43a296b55d00f8f935034c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Jan 25 13:29:19 2014 -0600

    Center the grid in the window

 data/org.gnome.iagno.gschema.xml |    4 ++--
 src/iagno.vala                   |    4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/data/org.gnome.iagno.gschema.xml b/data/org.gnome.iagno.gschema.xml
index e1c509f..2ed7662 100644
--- a/data/org.gnome.iagno.gschema.xml
+++ b/data/org.gnome.iagno.gschema.xml
@@ -17,11 +17,11 @@
       <description>Whether or not to play event sounds.</description>
     </key>
     <key name="window-width" type="i">
-      <default>600</default>
+      <default>500</default>
       <summary>Width of the window in pixels</summary>
     </key>
     <key name="window-height" type="i">
-      <default>400</default>
+      <default>500</default>
       <summary>Height of the window in pixels</summary>
     </key>
     <key name="window-is-maximized" type="b">
diff --git a/src/iagno.vala b/src/iagno.vala
index 476efad..3a5df68 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -87,7 +87,7 @@ public class Iagno : Gtk.Application
         }
         set_app_menu (builder.get_object ("iagno-menu") as MenuModel);
         window = new Gtk.ApplicationWindow (this);
-        window.set_border_width (6);
+        window.set_border_width (25);
         window.set_title (_("Iagno"));
         window.icon_name = "iagno";
         window.configure_event.connect (window_configure_event_cb);
@@ -109,8 +109,6 @@ public class Iagno : Gtk.Application
         window.add (hbox);
 
         view = new GameView ();
-        view.hexpand = true;
-        view.vexpand = true;
         view.game = game;
         view.move.connect (player_move_cb);
         var tile_set = settings.get_string ("tileset");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]