diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2003-01-24 05:45:03 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2003-01-24 05:45:03 +0800 |
commit | eba0af0c6a80d2027eb443202f101149f607a5ea (patch) | |
tree | 2b7ad43f7963c91698a3408c5594ddfaa28fec66 /shell/e-shell-folder-title-bar.c | |
parent | 1b44ee08d8c16d5cb2d2de890c93a076585c0ba2 (diff) | |
download | gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.tar.gz gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.tar.zst gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.zip |
(get_max_clipped_label_width): Use
clipped_label->layout instead of creating a new PangoLayout; this
way we respect the actual font being used.
svn path=/trunk/; revision=19603
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; } |