diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-08-23 17:40:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-08-23 17:40:53 +0800 |
commit | 32602313694b6507377011091d9e7986dc561434 (patch) | |
tree | a58ba7191d10e3665cf524f8554c21b2f4b5fcec /lib | |
parent | b3afd2e2d5c7af68021cde589fba1bf339f6a82c (diff) | |
download | gsoc2013-epiphany-32602313694b6507377011091d9e7986dc561434.tar gsoc2013-epiphany-32602313694b6507377011091d9e7986dc561434.tar.gz gsoc2013-epiphany-32602313694b6507377011091d9e7986dc561434.tar.bz2 gsoc2013-epiphany-32602313694b6507377011091d9e7986dc561434.tar.lz gsoc2013-epiphany-32602313694b6507377011091d9e7986dc561434.tar.xz gsoc2013-epiphany-32602313694b6507377011091d9e7986dc561434.tar.zst gsoc2013-epiphany-32602313694b6507377011091d9e7986dc561434.zip |
Fix a warning when moving tabs between windows; see bug #150822.
2004-08-23 Christian Persch <chpe@cvs.gnome.org>
* lib/widgets/ephy-label.c: (ephy_label_size_allocate):
Fix a warning when moving tabs between windows; see bug #150822.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/widgets/ephy-label.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/widgets/ephy-label.c b/lib/widgets/ephy-label.c index 8abad16f3..8c38db095 100644 --- a/lib/widgets/ephy-label.c +++ b/lib/widgets/ephy-label.c @@ -1702,7 +1702,10 @@ ephy_label_size_allocate (GtkWidget *widget, (* GTK_WIDGET_CLASS (parent_class)->size_allocate) (widget, allocation); if (label->ellipsize) - pango_layout_set_width (label->layout, allocation->width * PANGO_SCALE); + { + ephy_label_ensure_layout (label); + pango_layout_set_width (label->layout, allocation->width * PANGO_SCALE); + } if (label->select_info && label->select_info->window) { |