diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-03-01 16:00:30 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-03-01 16:00:54 -0500 |
commit | 956b2ff998d851c9161dfd231d4f5e1de080346b (patch) | |
tree | 32d3e27d8844381b73697dfbf62e1fe9bdbfa19a /gtk/gtkprogressbar.c | |
parent | 577783a19db6f45deb732be6e24724c7cfeb28c0 (diff) | |
download | gtk+-956b2ff998d851c9161dfd231d4f5e1de080346b.tar.gz |
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.
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r-- | gtk/gtkprogressbar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c index ca47e70458..352d445084 100644 --- a/gtk/gtkprogressbar.c +++ b/gtk/gtkprogressbar.c @@ -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); } |