[gtk+] label: Set wrap on the layout unconditionally
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] label: Set wrap on the layout unconditionally
- Date: Tue, 19 Apr 2011 20:26:08 +0000 (UTC)
commit 8e34bff045f4cdf397bffffb062a63778cc13d3d
Author: Benjamin Otte <otte redhat com>
Date: Mon Apr 18 00:29:16 2011 +0200
label: Set wrap on the layout unconditionally
gtk/gtklabel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 2021f0a..fdcd1d6 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3387,7 +3387,6 @@ gtk_label_update_layout_width (GtkLabel *label)
else
width = allocation.width - xpad * 2;
- pango_layout_set_wrap (priv->layout, priv->wrap_mode);
pango_layout_set_width (priv->layout, MAX (width, 1) * PANGO_SCALE);
}
else /* !priv->wrap */
@@ -3460,6 +3459,7 @@ gtk_label_ensure_layout (GtkLabel *label)
pango_layout_set_alignment (priv->layout, align);
pango_layout_set_ellipsize (priv->layout, priv->ellipsize);
+ pango_layout_set_wrap (priv->layout, priv->wrap_mode);
pango_layout_set_single_paragraph_mode (priv->layout, priv->single_line_mode);
gtk_label_update_layout_width (label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]