diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-02-06 16:13:43 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-02-06 16:13:43 +0100 |
commit | d74ca9f02c3632e678f31ccfea767215afa3c726 (patch) | |
tree | 8b33fdc52194d3a8c9d9b3b243fb9067010f503e /gtk/gtkpopover.c | |
parent | f999ac686b7ce6e59ea4c3af6a3b91024a75c26f (diff) | |
download | gtk+-d74ca9f02c3632e678f31ccfea767215afa3c726.tar.gz |
popover: Emit ::closed once modality is cleared
Otherwise, calling gtk_widget_grab_focus() on a widget when the
popover send ::closed won't work.
Diffstat (limited to 'gtk/gtkpopover.c')
-rw-r--r-- | gtk/gtkpopover.c | 4 |
1 files 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 |