aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-01-10 08:50:21 +0800
committerChris Toshok <toshok@src.gnome.org>2003-01-10 08:50:21 +0800
commit11cc8e069f3812b0b8f88d08d7b20d563807a39e (patch)
treebae5d146c82126de7c7845147498a721759ad00a /shell
parent921933660b1dba5a93e98d7b244fcd439896ae9f (diff)
downloadgsoc2013-evolution-11cc8e069f3812b0b8f88d08d7b20d563807a39e.tar.gz
gsoc2013-evolution-11cc8e069f3812b0b8f88d08d7b20d563807a39e.tar.zst
gsoc2013-evolution-11cc8e069f3812b0b8f88d08d7b20d563807a39e.zip
use pango_layout_get_pixel_size here instead of pango_layout_get_width,
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). svn path=/trunk/; revision=19382
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;