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



commit 72d6e1505b8946e1b29cbcf4f5d3858077a46e78
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 1fdcfac3fc..9167b55b02 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]