[gnome-nibbles] Revert "Force a minumum size (800x600), also helps for background resizing"



commit 6a0e04e736b6a1abc7ea4673b5032d66aadc0e3a
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun May 11 10:48:30 2014 -0500

    Revert "Force a minumum size (800x600), also helps for background resizing"
    
    This reverts commit 55e4d7b91c06b1409cd59ac58c264ac96cd9ef77.
    
    Conflicts:
        src/main.c
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709595

 src/main.c       |   10 +---------
 src/properties.c |    4 ++--
 2 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 2cf5c40..07c20df 100644
--- a/src/main.c
+++ b/src/main.c
@@ -584,9 +584,6 @@ activate (GtkApplication* app,
 {
   GtkWidget *headerbar;
   GtkWidget *label;
-  GdkGeometry size_hints = {
-    800, 600, 0, 0, 800, 600, 0, 0, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST
-  };
 
   GtkWidget *vbox;
   ClutterColor stage_color = {0x00,0x00,0x00,0xff};
@@ -601,13 +598,8 @@ activate (GtkApplication* app,
   gtk_widget_show (headerbar);
 
   window = gtk_application_window_new (app);
-
   gtk_window_set_titlebar (GTK_WINDOW (window), headerbar);
-
-  gtk_window_set_geometry_hints (GTK_WINDOW (window),
-                    window,
-                    &size_hints,
-                    GDK_HINT_MIN_SIZE);
+  gtk_window_set_default_size (GTK_WINDOW (window), 800, 600);
 
   g_action_map_add_action_entries (G_ACTION_MAP (app), app_entries, G_N_ELEMENTS (app_entries), app);
 
diff --git a/src/properties.c b/src/properties.c
index 33f853e..c76048a 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -118,8 +118,8 @@ gnibbles_properties_update (GnibblesProperties * tmp)
   sound_enable (tmp->sound);
 
   tmp->tilesize = g_settings_get_int (settings, "tile-size");
-  if (tmp->tilesize < 8)
-    tmp->tilesize = 8;
+  if (tmp->tilesize < 1)
+    tmp->tilesize = 5;
   if (tmp->tilesize > 30)
     tmp->tilesize = 30;
 


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