placessidebar: Remove popover using gtk_widget_unparent()

the gtk_widget_destroy() does not work anymore.
This commit is contained in:
Timm Bäder 2019-08-04 14:37:49 +02:00
parent aca31c3ab6
commit 002abc6d48

View File

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