[evolution-patches] (Shell) Fix to size of preference window



Hi,

This sets the size of preference window little big, so that the flicker
that happens on loading is not present.

-Srini
Index: e-shell-settings-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/e-shell-settings-dialog.c,v
retrieving revision 1.35
diff -u -p -r1.35 e-shell-settings-dialog.c
--- e-shell-settings-dialog.c	21 Dec 2004 15:42:46 -0000	1.35
+++ e-shell-settings-dialog.c	10 Nov 2005 08:55:21 -0000
@@ -63,9 +63,9 @@ set_dialog_size (EShellSettingsDialog *d
 
 	pango_layout_get_pixel_size (layout, &width, NULL);
 
-	width *= 60;
+	width *= 80;
 	height = PANGO_PIXELS (pango_font_metrics_get_ascent (metrics)
-			       + pango_font_metrics_get_descent (metrics)) * 30;
+			       + pango_font_metrics_get_descent (metrics)) * 40;
 
 	gtk_window_set_default_size((GtkWindow *)dialog, width, height);
 	g_object_unref (layout);
@@ -311,7 +311,7 @@ e_shell_settings_dialog_init (EShellSett
 	priv->types = g_hash_table_new (g_str_hash, g_str_equal);
 
 	dialog->priv = priv;
-
+	gtk_widget_hide (dialog);
 	load_pages (dialog);
 	set_dialog_size (dialog);
 	


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