[gtk+: 13/54] popover: remove GTK+ grab (if any) on unmap



commit 7c10fc5580780eaf4ac417a273affefe36fba609
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Nov 13 10:49:54 2013 +0100

    popover: remove GTK+ grab (if any) on unmap
    
    If there is a GTK+ grab on the popover, ensure that it's removed when it's
    unmapped. If no GTK+ grab was performed on the popover, this function will
    do nothing.

 gtk/gtkpopover.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index b9340c7..2f1157d 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -209,6 +209,7 @@ gtk_popover_map (GtkWidget *widget)
 static void
 gtk_popover_unmap (GtkWidget *widget)
 {
+  gtk_grab_remove (widget);
   gdk_window_hide (gtk_widget_get_window (widget));
   GTK_WIDGET_CLASS (gtk_popover_parent_class)->unmap (widget);
 }


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