[grisbi-devel] [PATCH 01/12] fixed the width of the main windows and preferences window

pbiava pierre.biava at nerim.net
Mon Mar 4 21:19:30 CET 2013


---
 src/main.c       | 1 +
 src/parametres.c | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main.c b/src/main.c
index 5b84f1f..d2dc007 100644
--- a/src/main.c
+++ b/src/main.c
@@ -585,6 +585,7 @@ GtkWidget *gsb_main_create_main_window ( void )
                         G_CALLBACK ( main_window_key_press_event ),
                         NULL );
 
+    gtk_widget_set_size_request ( GTK_WIDGET ( run.window ), 1100, 800 );
     gtk_window_set_resizable ( GTK_WINDOW ( run.window ), TRUE );
 
     /* create the main window : a vbox */
diff --git a/src/parametres.c b/src/parametres.c
index 9766a72..dc3f9dd 100644
--- a/src/parametres.c
+++ b/src/parametres.c
@@ -545,9 +545,11 @@ gboolean preferences ( gint page )
                         GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
                         NULL );
 
-    if ( conf.prefs_width )
-        gtk_window_set_default_size ( GTK_WINDOW ( fenetre_preferences ),
-                        conf.prefs_width, -1 );
+    if ( conf.prefs_width && conf.prefs_width > 830 )
+        gtk_window_set_default_size ( GTK_WINDOW ( fenetre_preferences ), conf.prefs_width, -1 );
+    else
+        gtk_window_set_default_size ( GTK_WINDOW ( fenetre_preferences ), 830, -1 );
+
     gtk_window_set_position ( GTK_WINDOW ( fenetre_preferences ), GTK_WIN_POS_CENTER_ON_PARENT );
     gtk_window_set_resizable ( GTK_WINDOW ( fenetre_preferences ), TRUE );
 
-- 
1.8.1.5



More information about the devel mailing list