[gtk/wip/otte/matthiasc/popup2: 8/92] main: guard window-specific code paths
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/matthiasc/popup2: 8/92] main: guard window-specific code paths
- Date: Fri, 19 Apr 2019 16:05:57 +0000 (UTC)
commit 6bc2a7c862c0445fe9ac01c69c5637bce6edcfdd
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 3 17:42:36 2019 -0500
main: guard window-specific code paths
This was overlooked when I first tried to
make things for GtkRoot.
gtk/gtkmain.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index d2dc80e3ac..b6d46f59b8 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1854,6 +1854,7 @@ gtk_main_do_event (GdkEvent *event)
GtkWidget *focus_widget;
if (event->any.type == GDK_KEY_PRESS &&
+ GTK_IS_WINDOW (target_widget) &&
gtk_window_activate_key (GTK_WINDOW (target_widget), (GdkEventKey *) event))
goto cleanup;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]