diff options
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; |