changeset 1029:1a4b18c58556

Use a constant for minimal window size. Set it to 32 for all dialogs.
author zas_
date Mon, 01 Sep 2008 17:29:07 +0000
parents 1f4781992561
children f10b680b4baa
files src/collect.c src/dupe.c src/img-view.c src/info.c src/layout.c src/main.h src/pan-view.c src/print.c src/search.c
diffstat 9 files changed, 18 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/collect.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/collect.c	Mon Sep 01 17:29:07 2008 +0000
@@ -1181,8 +1181,8 @@
 
 	cw->window = window_new(GTK_WINDOW_TOPLEVEL, "collection", PIXBUF_INLINE_ICON_BOOK, NULL, NULL);
 
-	geometry.min_width = 32;
-	geometry.min_height = 32;
+	geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+	geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 	geometry.base_width = COLLECT_DEF_WIDTH;
 	geometry.base_height = COLLECT_DEF_HEIGHT;
 	gtk_window_set_geometry_hints(GTK_WINDOW(cw->window), NULL, &geometry,
--- a/src/dupe.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/dupe.c	Mon Sep 01 17:29:07 2008 +0000
@@ -3125,8 +3125,8 @@
 
 	dw->window = window_new(GTK_WINDOW_TOPLEVEL, "dupe", NULL, NULL, _("Find duplicates"));
 
-	geometry.min_width = 32;
-	geometry.min_height = 32;
+	geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+	geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 	geometry.base_width = DUPE_DEF_WIDTH;
 	geometry.base_height = DUPE_DEF_HEIGHT;
 	gtk_window_set_geometry_hints(GTK_WINDOW(dw->window), NULL, &geometry,
--- a/src/img-view.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/img-view.c	Mon Sep 01 17:29:07 2008 +0000
@@ -842,8 +842,8 @@
 
 	vw->window = window_new(GTK_WINDOW_TOPLEVEL, "view", PIXBUF_INLINE_ICON_VIEW, NULL, NULL);
 
-	geometry.min_width = 8;
-	geometry.min_height = 8;
+	geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+	geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 	gtk_window_set_geometry_hints(GTK_WINDOW(vw->window), NULL, &geometry, GDK_HINT_MIN_SIZE);
 
 	gtk_window_set_resizable(GTK_WINDOW(vw->window), TRUE);
--- a/src/info.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/info.c	Mon Sep 01 17:29:07 2008 +0000
@@ -860,8 +860,8 @@
 	}
 	gtk_window_set_resizable(GTK_WINDOW(id->window), TRUE);
 
-	geometry.min_width = 32;
-	geometry.min_height = 32;
+	geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+	geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 	geometry.base_width = DEF_PROPERTY_WIDTH;
 	geometry.base_height = DEF_PROPERTY_HEIGHT;
 	gtk_window_set_geometry_hints(GTK_WINDOW(id->window), NULL, &geometry,
--- a/src/layout.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/layout.c	Mon Sep 01 17:29:07 2008 +0000
@@ -1323,8 +1323,8 @@
 			hints = 0;
 			}
 
-		geometry.min_width = 32;
-		geometry.min_height = 32;
+		geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+		geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 		geometry.base_width = TOOLWINDOW_DEF_WIDTH;
 		geometry.base_height = TOOLWINDOW_DEF_HEIGHT;
 		gtk_window_set_geometry_hints(GTK_WINDOW(lw->tools), NULL, &geometry,
--- a/src/main.h	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/main.h	Mon Sep 01 17:29:07 2008 +0000
@@ -97,6 +97,8 @@
 #define DEFAULT_THUMB_WIDTH	96
 #define DEFAULT_THUMB_HEIGHT	72
 
+#define DEFAULT_MINIMAL_WINDOW_SIZE 32
+
 #define IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT 	4096
 #define IMAGE_LOADER_READ_BUFFER_SIZE_MIN 	512
 #define IMAGE_LOADER_READ_BUFFER_SIZE_MAX 	16*1024*1024
--- a/src/pan-view.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/pan-view.c	Mon Sep 01 17:29:07 2008 +0000
@@ -2377,8 +2377,8 @@
 
 	pw->window = window_new(GTK_WINDOW_TOPLEVEL, "panview", NULL, NULL, _("Pan View"));
 
-	geometry.min_width = 8;
-	geometry.min_height = 8;
+	geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+	geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 	gtk_window_set_geometry_hints(GTK_WINDOW(pw->window), NULL, &geometry, GDK_HINT_MIN_SIZE);
 
 	gtk_window_set_resizable(GTK_WINDOW(pw->window), TRUE);
--- a/src/print.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/print.c	Mon Sep 01 17:29:07 2008 +0000
@@ -3375,8 +3375,8 @@
 				       parent, FALSE,
 				       print_window_cancel_cb, pw);
 
-	geometry.min_width = 32;
-	geometry.min_height = 32;
+	geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+	geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 	geometry.base_width = PRINT_DLG_WIDTH;
 	geometry.base_height = PRINT_DLG_HEIGHT;
 	gtk_window_set_geometry_hints(GTK_WINDOW(pw->dialog->dialog), NULL, &geometry,
--- a/src/search.c	Mon Sep 01 17:22:19 2008 +0000
+++ b/src/search.c	Mon Sep 01 17:29:07 2008 +0000
@@ -2577,8 +2577,8 @@
 
 	gtk_window_set_resizable(GTK_WINDOW(sd->window), TRUE);
 
-	geometry.min_width = 32;
-	geometry.min_height = 32;
+	geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE;
+	geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE;
 	geometry.base_width = DEF_SEARCH_WIDTH;
 	geometry.base_height = DEF_SEARCH_HEIGHT;
 	gtk_window_set_geometry_hints(GTK_WINDOW(sd->window), NULL, &geometry,