[gtk/wip/matthiasc/popup4: 46/140] scale button: Adapt to new popover lifecycle
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup4: 46/140] scale button: Adapt to new popover lifecycle
- Date: Mon, 29 Apr 2019 02:45:34 +0000 (UTC)
commit 84b99bb83b297bea53f34b00946f1532b4643ce7
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 21 22:13:41 2019 -0400
scale button: Adapt to new popover lifecycle
Unparent the popover in dispose.
gtk/gtkscalebutton.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 61a0ed011b..7e76ea9fdd 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]