From 32602313694b6507377011091d9e7986dc561434 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 23 Aug 2004 09:40:53 +0000 Subject: Fix a warning when moving tabs between windows; see bug #150822. 2004-08-23 Christian Persch * lib/widgets/ephy-label.c: (ephy_label_size_allocate): Fix a warning when moving tabs between windows; see bug #150822. --- ChangeLog | 6 ++++++ lib/widgets/ephy-label.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7e445118..56fe086c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-23 Christian Persch + + * lib/widgets/ephy-label.c: (ephy_label_size_allocate): + + Fix a warning when moving tabs between windows; see bug #150822. + 2004-08-21 Christian Persch * doc/reference/tmpl/ephy-embed.sgml: 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) { -- cgit v1.2.3