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 | |
parent | 1b44ee08d8c16d5cb2d2de890c93a076585c0ba2 (diff) | |
download | gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.tar gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.tar.gz gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.tar.bz2 gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.tar.lz gsoc2013-evolution-eba0af0c6a80d2027eb443202f101149f607a5ea.tar.xz 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')
-rw-r--r-- | shell/ChangeLog | 6 | ||||
-rw-r--r-- | shell/e-shell-folder-title-bar.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 77e4b991b4..d217493014 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,5 +1,11 @@ 2003-01-23 Ettore Perazzoli <ettore@ximian.com> + * e-shell-folder-title-bar.c (get_max_clipped_label_width): Use + clipped_label->layout instead of creating a new PangoLayout; this + way we respect the actual font being used. + +2003-01-23 Ettore Perazzoli <ettore@ximian.com> + * e-shell-view.c (create_label_for_empty_page): Update for new args to e_clipped_label_new(). 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; } |