[gnome-color-manager/gnome-3-6] Large default window size, to prevent mid operation automatic resizing



commit 0b24e4597bf1edd399759ea560c75a8847c3870f
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Tue Dec 25 23:49:18 2012 +0100

    Large default window size, to prevent mid operation automatic resizing
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 src/gcm-calibrate-main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-main.c b/src/gcm-calibrate-main.c
index ac49eaa..b0a4e18 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -2051,6 +2051,9 @@ gcm_calib_sensor_added_cb (CdClient *client, CdSensor *sensor, GcmCalibratePriv
 static void
 gcm_calib_startup_cb (GApplication *application, GcmCalibratePriv *calib)
 {
+	const gint window_width  = 640;
+	const gint window_height = 440;
+
 	const gchar *description;
 	const gchar *manufacturer;
 	const gchar *model;
@@ -2081,6 +2084,7 @@ gcm_calib_startup_cb (GApplication *application, GcmCalibratePriv *calib)
 
 	/* show main UI */
 	calib->main_window = GTK_WINDOW (gtk_assistant_new ());
+	gtk_window_set_default_size (calib->main_window, window_width, window_height);
 	gtk_window_set_resizable (calib->main_window, TRUE);
 	gtk_window_set_title (calib->main_window, "");
 	gtk_container_set_border_width (GTK_CONTAINER (calib->main_window), 12);



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