main: Use root api for mnemonic activation
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user