[gtk+] label: Clear layout after setting GtkLabel::lines property



commit e9ce9a814ba15b7e089f38ab132fee51259291ac
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 8 22:45:31 2014 +0200

    label: Clear layout after setting GtkLabel::lines property
    
    Otherwise the label will not pick up the property.

 gtk/gtklabel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index f0bf38f..2c9e007 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -6846,6 +6846,7 @@ gtk_label_set_lines (GtkLabel *label,
   if (priv->lines != lines)
     {
       priv->lines = lines;
+      gtk_label_clear_layout (label);
       g_object_notify (G_OBJECT (label), "lines");
       gtk_widget_queue_resize (GTK_WIDGET (label));
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]