forked from AuroraMiddleware/gtk
popover: Emit ::closed once modality is cleared
Otherwise, calling gtk_widget_grab_focus() on a widget when the popover send ::closed won't work.
This commit is contained in:
parent
f999ac686b
commit
d74ca9f02c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user