label: Clear layout after setting GtkLabel::lines property

Otherwise the label will not pick up the property.
This commit is contained in:
Benjamin Otte 2014-09-08 22:45:31 +02:00
parent a14c7cbfa1
commit e9ce9a814b

View File

@ -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));
}