mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 16:30:15 +00:00
progressbar: Don't leave css nodes behind
We create and destroy gadgets inside the hierarchy here, and if we don't explicitly remove their CSS nodes from the parent, they stick around.
This commit is contained in:
parent
577783a19d
commit
956b2ff998
@ -1516,6 +1516,8 @@ gtk_progress_bar_set_show_text (GtkProgressBar *pbar,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (priv->text_gadget)
|
||||
gtk_css_node_set_parent (gtk_css_gadget_get_node (priv->text_gadget), NULL);
|
||||
g_clear_object (&priv->text_gadget);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user