[gtk/wip/matthiasc/popup: 60/63] main: Use root api for mnemonic activation



commit 0a8babde25c63cf43b5a42960e8bb9ae49a489cb
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 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 176ddcad5e..41fa33e7c0 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1456,8 +1456,7 @@ update_pointer_focus_state (GtkWindow *toplevel,
     return old_target;
 
   gdk_event_get_coords (event, &x, &y);
-  gtk_window_update_pointer_focus (toplevel, device, sequence,
-                                   new_target, x, y);
+  gtk_window_update_pointer_focus (toplevel, device, sequence, new_target, x, y);
 
   return old_target;
 }
@@ -1768,8 +1767,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]