[gtk+/popovers: 13/33] popover: remove GTK+ grab (if any) on unmap
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/popovers: 13/33] popover: remove GTK+ grab (if any) on unmap
- Date: Fri, 10 Jan 2014 15:16:03 +0000 (UTC)
commit c0901ed03ceb363586e9e40d95126382a81aa843
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]