diff options
-rw-r--r-- | shell/ChangeLog | 7 | ||||
-rw-r--r-- | shell/e-shell-settings-dialog.c | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index dcb78822e5..db3cf89490 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2003-03-25 Not Zed <NotZed@Ximian.com> + + * e-shell-settings-dialog.c (set_dialog_size): Use + set_default_size instead of size_request so we allow the user to + resize the window. Also try using 60x30 rather than 72x35 as the + approximate font cell size. For bug #39706. + 2003-03-25 Dan Winship <danw@ximian.com> * e-folder-dnd-bridge.c: Update for e_notice move. diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c index a8abfb2ce2..cab4070def 100644 --- a/shell/e-shell-settings-dialog.c +++ b/shell/e-shell-settings-dialog.c @@ -70,12 +70,11 @@ set_dialog_size (EShellSettingsDialog *dialog) pango_layout_get_pixel_size (layout, &width, NULL); - width *= 72; + width *= 60; height = PANGO_PIXELS (pango_font_metrics_get_ascent (metrics) - + pango_font_metrics_get_descent (metrics)) * 35; - - gtk_widget_set_size_request (GTK_WIDGET (dialog), width, height); + + pango_font_metrics_get_descent (metrics)) * 30; + gtk_window_set_default_size((GtkWindow *)dialog, width, height); g_object_unref (layout); pango_font_metrics_unref (metrics); } |