From d74ca9f02c3632e678f31ccfea767215afa3c726 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 6 Feb 2014 16:13:43 +0100 Subject: [PATCH] popover: Emit ::closed once modality is cleared Otherwise, calling gtk_widget_grab_focus() on a widget when the popover send ::closed won't work. --- gtk/gtkpopover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 76b31d16cd..ced74dc4e4 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -295,13 +295,13 @@ gtk_popover_unmap (GtkWidget *widget) priv = GTK_POPOVER (widget)->priv; priv->button_pressed = FALSE; - g_signal_emit (widget, signals[CLOSED], 0); - if (priv->modal) gtk_popover_apply_modality (GTK_POPOVER (widget), FALSE); gdk_window_hide (gtk_widget_get_window (widget)); GTK_WIDGET_CLASS (gtk_popover_parent_class)->unmap (widget); + + g_signal_emit (widget, signals[CLOSED], 0); } static void