[gtk/wip/otte/matthiasc/popup2: 22/92] main: Use root api for mnemonic activation
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/matthiasc/popup2: 22/92] main: Use root api for mnemonic activation
- Date: Fri, 19 Apr 2019 16:07:07 +0000 (UTC)
commit a43546283f980468b9cd6b8b67ea4cb514a3cfc1
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]