forked from AuroraMiddleware/gtk
label: Clear select info before creating a new one
E.g. set_markup_internal will create a new select_info, but then we were destroying it again, just to recreate it later.
This commit is contained in:
parent
23cffdfe42
commit
c588d8f858
@ -1856,6 +1856,8 @@ gtk_label_recalculate (GtkLabel *label)
|
|||||||
guint keyval = priv->mnemonic_keyval;
|
guint keyval = priv->mnemonic_keyval;
|
||||||
|
|
||||||
gtk_label_clear_links (label);
|
gtk_label_clear_links (label);
|
||||||
|
gtk_label_clear_layout (label);
|
||||||
|
gtk_label_clear_select_info (label);
|
||||||
|
|
||||||
if (priv->use_markup)
|
if (priv->use_markup)
|
||||||
gtk_label_set_markup_internal (label, priv->label, priv->use_underline);
|
gtk_label_set_markup_internal (label, priv->label, priv->use_underline);
|
||||||
@ -1878,8 +1880,6 @@ gtk_label_recalculate (GtkLabel *label)
|
|||||||
g_object_notify_by_pspec (G_OBJECT (label), label_props[PROP_MNEMONIC_KEYVAL]);
|
g_object_notify_by_pspec (G_OBJECT (label), label_props[PROP_MNEMONIC_KEYVAL]);
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_label_clear_layout (label);
|
|
||||||
gtk_label_clear_select_info (label);
|
|
||||||
gtk_widget_queue_resize (GTK_WIDGET (label));
|
gtk_widget_queue_resize (GTK_WIDGET (label));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user