[gtk/wip/matthiasc/popup2: 32/58] main: Use root api for mnemonic activation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup2: 32/58] main: Use root api for mnemonic activation
- Date: Wed, 20 Mar 2019 02:56:57 +0000 (UTC)
commit f24d49df34b0b6ced650b0eabefbf372e554523d
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 7404ed6b60..cfba36b522 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1820,8 +1820,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]