scale button: Adapt to new popover lifecycle

Unparent the popover in dispose.
This commit is contained in:
Matthias Clasen
2019-03-21 22:13:41 -04:00
parent 076f91bb58
commit 84b99bb83b

View File

@@ -491,11 +491,7 @@ gtk_scale_button_dispose (GObject *object)
GtkScaleButton *button = GTK_SCALE_BUTTON (object);
GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
if (priv->dock)
{
gtk_widget_destroy (priv->dock);
priv->dock = NULL;
}
g_clear_pointer (&priv->dock, gtk_widget_unparent);
if (priv->click_id != 0)
{