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