[gtk/wip/matthiasc/popup2: 30/93] 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: 30/93] main: Use root api for mnemonic activation
- Date: Mon, 25 Mar 2019 00:57:25 +0000 (UTC)
commit 36c9a7ad4c79e13b13122b5c7818ca0a93489bd0
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 b6d46f59b8..ba457fffbd 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1854,8 +1854,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]