diff options
Diffstat (limited to 'shell/e-shell-folder-title-bar.c')
-rw-r--r-- | shell/e-shell-folder-title-bar.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/shell/e-shell-folder-title-bar.c b/shell/e-shell-folder-title-bar.c index 9b69d17098..7c6e2384d8 100644 --- a/shell/e-shell-folder-title-bar.c +++ b/shell/e-shell-folder-title-bar.c @@ -196,17 +196,11 @@ set_title_bar_label_style (GtkWidget *widget) static int get_max_clipped_label_width (EClippedLabel *clipped_label) { - PangoLayout *layout; int width; - layout = gtk_widget_create_pango_layout (GTK_WIDGET (clipped_label), - clipped_label->label); - - pango_layout_get_pixel_size (layout, &width, NULL); + pango_layout_get_pixel_size (clipped_label->layout, &width, NULL); width += 2 * GTK_MISC (clipped_label)->xpad; - g_object_unref (layout); - return width; } |