forked from AuroraMiddleware/gtk
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:
parent
cff1694c99
commit
85ad434290
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user