diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2013-11-13 10:49:54 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-01-22 17:10:05 +0100 |
commit | 7c10fc5580780eaf4ac417a273affefe36fba609 (patch) | |
tree | 4ad9f48bbbaf730a75dada4a063cdf9821aa83f1 /gtk/gtkpopover.c | |
parent | b4805f707641587c29065a1158ea8e112fe57d37 (diff) | |
download | gtk+-7c10fc5580780eaf4ac417a273affefe36fba609.tar.gz |
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.
Diffstat (limited to 'gtk/gtkpopover.c')
-rw-r--r-- | gtk/gtkpopover.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index b9340c7ab8..2f1157d890 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); } |