diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2005-11-10 18:37:46 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2005-11-10 18:37:46 +0800 |
commit | 8799ed92a2a29286cec855ef94a57833602394ce (patch) | |
tree | c565368777ce1589fac587444158a77920ef0e64 | |
parent | 02f9b53b41d226423579929a620cf8d4754ff18b (diff) | |
download | gsoc2013-evolution-8799ed92a2a29286cec855ef94a57833602394ce.tar.gz gsoc2013-evolution-8799ed92a2a29286cec855ef94a57833602394ce.tar.zst gsoc2013-evolution-8799ed92a2a29286cec855ef94a57833602394ce.zip |
Set the size of the preference window so that it doesnt flicker. Hide it
2005-11-10 Srinivasa Ragavan <sragavan@novell.com>
* e-shell-settings-dialog.c (set_dialog_size)
(e_shell_settings_dialog_init): Set the size of the preference
window so that it doesnt flicker. Hide it till all the pages are
loaded.
svn path=/trunk/; revision=30594
-rw-r--r-- | shell/ChangeLog | 7 | ||||
-rw-r--r-- | shell/e-shell-settings-dialog.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 11b08f2878..cde7ad62d6 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2005-11-10 Srinivasa Ragavan <sragavan@novell.com> + + * e-shell-settings-dialog.c (set_dialog_size) + (e_shell_settings_dialog_init): Set the size of the preference + window so that it doesnt flicker. Hide it till all the pages are + loaded. + 2005-10-25 Harish Krishnaswamy <kharish@novell.com> * main.c: (show_development_warning): Update diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c index 0b96b2cf63..e9ab725338 100644 --- a/shell/e-shell-settings-dialog.c +++ b/shell/e-shell-settings-dialog.c @@ -63,9 +63,9 @@ set_dialog_size (EShellSettingsDialog *dialog) 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 (EShellSettingsDialog *dialog) 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); |