aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-03-26 13:31:17 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-03-26 13:31:17 +0800
commit738282ff2845c4648c3e08fd3f9a5d62161e7253 (patch)
tree245a2648a9bb0cdf4b48ef86e5069f389f5f194c /shell
parent0983e2cf9111f44177ec6355627beae1fb651d8e (diff)
downloadgsoc2013-evolution-738282ff2845c4648c3e08fd3f9a5d62161e7253.tar.gz
gsoc2013-evolution-738282ff2845c4648c3e08fd3f9a5d62161e7253.tar.zst
gsoc2013-evolution-738282ff2845c4648c3e08fd3f9a5d62161e7253.zip
Use set_default_size instead of size_request so we allow the user to
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. svn path=/trunk/; revision=20513
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog7
-rw-r--r--shell/e-shell-settings-dialog.c7
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);
}