[gtk/wip/matthiasc/popup4: 18/79] main: Use root api for mnemonic activation



commit e31e5f7cd6a1db30bce3a481a21dfb0bb92e49f4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 3 22:23:17 2019 -0500

    main: Use root api for mnemonic activation

 gtk/gtkmain.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 7ce4880c7d..261015a0f0 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1857,8 +1857,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))
+          gtk_root_activate_key (GTK_ROOT (target_widget), (GdkEventKey *) event))
         goto cleanup;
 
       focus_widget = gtk_root_get_focus (GTK_ROOT (target_widget));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]