diff options
author | Chris Toshok <toshok@ximian.com> | 2003-01-10 08:50:21 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-01-10 08:50:21 +0800 |
commit | 11cc8e069f3812b0b8f88d08d7b20d563807a39e (patch) | |
tree | bae5d146c82126de7c7845147498a721759ad00a /shell/e-shell-settings-dialog.c | |
parent | 921933660b1dba5a93e98d7b244fcd439896ae9f (diff) | |
download | gsoc2013-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/e-shell-settings-dialog.c')
-rw-r--r-- | shell/e-shell-settings-dialog.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |