inspector: Destroy popovers on unmap

As an implementation detail, the popover hooks the fade out animation
on ::hide. Destroying the popover right away here is not a problem, but
prevents the animation from actually running. ::unmap will be run after
the animation is finished, so destroy the popover there.
This commit is contained in:
Carlos Garnacho 2015-02-20 12:46:52 +01:00
parent cff1694c99
commit 85ad434290

View File

@ -231,7 +231,7 @@ row_activated (GtkTreeView *tv,
gtk_widget_show (popover);
g_signal_connect (popover, "hide", G_CALLBACK (gtk_widget_destroy), NULL);
g_signal_connect (popover, "unmap", G_CALLBACK (gtk_widget_destroy), NULL);
g_free (name);
}