[gtk+] inspector: Destroy popovers on unmap



commit 85ad434290bc92ecdd92eb86b997bf103b658f1d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Feb 20 12:46:52 2015 +0100

    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.

 gtk/inspector/prop-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/prop-list.c b/gtk/inspector/prop-list.c
index 75b3858..7a5aa72 100644
--- a/gtk/inspector/prop-list.c
+++ b/gtk/inspector/prop-list.c
@@ -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);
 }


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