[gnome-nibbles] No more resizing (temporaily) per bug 709595
- From: Bryan Quigley <bryanquigs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles] No more resizing (temporaily) per bug 709595
- Date: Fri, 9 May 2014 13:51:27 +0000 (UTC)
commit cd19ab057c0310ff3726dfb1cde50de1acef5581
Author: Bryan Quigley <bryanquigs src gnome org>
Date: Fri May 9 09:48:10 2014 -0400
No more resizing (temporaily) per bug 709595
src/main.c | 4 ++--
src/properties.c | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 6aad853..d93826b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -585,7 +585,7 @@ 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
+ 1024, 768, 0, 0, 1024, 768, 0, 0, 0.0, 0.0, GDK_GRAVITY_NORTH_WEST
};
GtkWidget *vbox;
@@ -607,7 +607,7 @@ activate (GtkApplication* app,
gtk_window_set_geometry_hints (GTK_WINDOW (window),
window,
&size_hints,
- GDK_HINT_MIN_SIZE);
+ GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
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..72fb08a 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -118,10 +118,12 @@ gnibbles_properties_update (GnibblesProperties * tmp)
sound_enable (tmp->sound);
tmp->tilesize = g_settings_get_int (settings, "tile-size");
- if (tmp->tilesize < 8)
+ //Set to only one size, see bug 709595
+ tmp->tilesize = 10;
+ /*if (tmp->tilesize < 8)
tmp->tilesize = 8;
if (tmp->tilesize > 30)
- tmp->tilesize = 30;
+ tmp->tilesize = 30;*/
for (i = 0; i < NUMWORMS; i++) {
tmp->wormprops[i] = g_slice_new0 (GnibblesWormProps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]