changeset 225:649f7cb544e0

Make the preferences window resizeable, and try to improve display of editors tab.
author zas_
date Thu, 03 Apr 2008 13:58:20 +0000
parents 83f92073e74c
children 3c89da4aef95
files src/preferences.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/preferences.c	Thu Apr 03 13:24:13 2008 +0000
+++ b/src/preferences.c	Thu Apr 03 13:58:20 2008 +0000
@@ -150,6 +150,11 @@
 static GtkWidget *color_profile_screen_file_entry;
 
 static GtkWidget *sidecar_ext_entry;
+
+
+#define CONFIG_WINDOW_DEF_WIDTH		700
+#define CONFIG_WINDOW_DEF_HEIGHT	500
+
 /*
  *-----------------------------------------------------------------------------
  * option widget callbacks (private)
@@ -877,7 +882,8 @@
 	gtk_window_set_type_hint(GTK_WINDOW(configwindow), GDK_WINDOW_TYPE_HINT_DIALOG);
 	g_signal_connect(G_OBJECT (configwindow), "delete_event",
 			 G_CALLBACK(config_window_delete), NULL);
-	gtk_window_set_resizable(GTK_WINDOW(configwindow), FALSE);
+	gtk_window_set_default_size(GTK_WINDOW(configwindow), CONFIG_WINDOW_DEF_WIDTH, CONFIG_WINDOW_DEF_HEIGHT);		 
+	gtk_window_set_resizable(GTK_WINDOW(configwindow), TRUE);
 	gtk_window_set_title(GTK_WINDOW(configwindow), _("Geeqie Preferences"));
 	gtk_window_set_wmclass(GTK_WINDOW(configwindow), "config", "Geeqie");
 	gtk_container_set_border_width(GTK_CONTAINER(configwindow), PREF_PAD_BORDER);
@@ -1233,10 +1239,11 @@
 		else
 			{
 			entry = gtk_label_new(editor_name[i]);
+			gtk_misc_set_alignment(GTK_MISC(entry), 0.0, 0.5);
 			}
 		
 		gtk_table_attach(GTK_TABLE (table), entry, 1, 2, i+1, i+2,
-				 GTK_FILL | GTK_EXPAND, 0, 0, 0);
+				 GTK_FILL | GTK_SHRINK, 0, 0, 0);
 		gtk_widget_show(entry);
 		editor_name_entry[i] = entry;