[gtk/wip/matthiasc/popup4: 30/105] placesview: Adapt to new popover lifecycle



commit bdb56fddfd4b32c895a03557576eb31e1c002b8c
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 21 22:12:45 2019 -0400

    placesview: Adapt to new popover lifecycle
    
    We must unparent popovers in dispose now.

 gtk/gtkplacesview.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index dabb486046..abfcb1278f 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -398,6 +398,8 @@ gtk_places_view_destroy (GtkWidget *widget)
   g_cancellable_cancel (priv->cancellable);
   g_cancellable_cancel (priv->networks_fetching_cancellable);
 
+  g_clear_pointer (&priv->server_adresses_popover, gtk_widget_unparent);
+
   GTK_WIDGET_CLASS (gtk_places_view_parent_class)->destroy (widget);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]