From 002abc6d485b9173bf67f3bd606710c59ccb09a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 4 Aug 2019 14:37:49 +0200 Subject: [PATCH] placessidebar: Remove popover using gtk_widget_unparent() the gtk_widget_destroy() does not work anymore. --- gtk/gtkplacessidebar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 25e99fa37a..2f5644a455 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -3667,8 +3667,7 @@ show_row_popover (GtkSidebarRow *row) g_object_get (row, "sidebar", &sidebar, NULL); - if (sidebar->popover) - gtk_widget_destroy (sidebar->popover); + g_clear_pointer (&sidebar->popover, gtk_widget_unparent); create_row_popover (sidebar, row);