main: Use root api for mnemonic activation

This commit is contained in:
Matthias Clasen
2019-03-03 22:23:17 -05:00
parent 2a1b5ef613
commit c7d6a3cc59

View File

@@ -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));