[gtk/shortcuts-rebased-again: 112/171] window: Use gtk_widget_class_bind_action



commit a9c054817910af2f635a6d138eb1df06242eab3a
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 19 01:32:42 2019 +0000

    window: Use gtk_widget_class_bind_action
    
    Use gtk_widget_class_bind_action for default.activate.

 gtk/gtkwindow.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index ad38f915f1..5491560546 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1190,12 +1190,12 @@ gtk_window_class_init (GtkWindowClass *klass)
   gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_KP_Space, 0,
                                        "activate-focus", NULL);
   
-  gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_Return, 0,
-                                       "activate-default", NULL);
-  gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_ISO_Enter, 0,
-                                       "activate-default", NULL);
-  gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_KP_Enter, 0,
-                                       "activate-default", NULL);
+  gtk_widget_class_bind_action (widget_class, GDK_KEY_Return, 0,
+                                "default.activate", NULL);
+  gtk_widget_class_bind_action (widget_class, GDK_KEY_ISO_Enter, 0,
+                                "default.activate", NULL);
+  gtk_widget_class_bind_action (widget_class, GDK_KEY_KP_Enter, 0,
+                                "default.activate", NULL);
 
   gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_I, GDK_CONTROL_MASK|GDK_SHIFT_MASK,
                                        "enable-debugging", "(b)", FALSE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]