mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 16:30:15 +00:00
label: Shorten set_markup_internal a bit
This commit is contained in:
parent
1db53e6676
commit
13fde6f4cd
@ -2411,8 +2411,7 @@ gtk_label_set_markup_internal (GtkLabel *label,
|
||||
|
||||
if (attrs)
|
||||
{
|
||||
if (priv->markup_attrs)
|
||||
pango_attr_list_unref (priv->markup_attrs);
|
||||
g_clear_pointer (&priv->markup_attrs, pango_attr_list_unref);
|
||||
priv->markup_attrs = attrs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user