aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog7
-rw-r--r--shell/e-shell-settings-dialog.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 87fa75b6f8..ec1a1bfe50 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,10 @@
+2003-01-09 Chris Toshok <toshok@ximian.com>
+
+ * e-shell-settings-dialog.c (set_dialog_size): use
+ pango_layout_get_pixel_size here instead of
+ pango_layout_get_width, which returns 0 (unless it's been set by
+ the user before, I believe).
+
2003-01-09 Ettore Perazzoli <ettore@ximian.com>
* evolution-shell-client.c (impl_dispose): Properly reset
diff --git a/shell/e-shell-settings-dialog.c b/shell/e-shell-settings-dialog.c
index cc6a35e4eb..84cb3ce164 100644
--- a/shell/e-shell-settings-dialog.c
+++ b/shell/e-shell-settings-dialog.c
@@ -68,7 +68,9 @@ set_dialog_size (EShellSettingsDialog *dialog)
gtk_widget_get_style (GTK_WIDGET (dialog))->font_desc,
NULL);
- width = pango_layout_get_width (layout) * 72;
+ pango_layout_get_pixel_size (layout,
+ &width, NULL);
+ width *= 72;
height = PANGO_PIXELS (pango_font_metrics_get_ascent (metrics)
+ pango_font_metrics_get_descent (metrics)) * 35;