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.
This commit is contained in:
Carlos Garnacho 2013-11-13 10:49:54 +01:00
parent b4805f7076
commit 7c10fc5580

View File

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