[gtk/shortcuts-rebased-again: 144/159] window: Document default.activate



commit 4ef9d40db26306cddc8c7b843219dd2b4c3c718d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 23 14:08:25 2019 -0400

    window: Document default.activate

 gtk/gtkwindow.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f806070a38..b5dd3c128d 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1156,13 +1156,21 @@ gtk_window_class_init (GtkWindowClass *klass)
                   G_TYPE_BOOLEAN,
                   0);
 
-  /*
-   * Key bindings
-   */
+  /* Actions */
 
+  /**
+   * GtkWindow|default.activate:
+   *
+   * The default.activate action activates the default
+   * widget in the window.
+   */
   gtk_widget_class_install_action (widget_class, "default.activate", NULL,
                                    gtk_window_activate_default_activate);
 
+  /*
+   * Key bindings
+   */
+
   gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_space, 0,
                                        "activate-focus", NULL);
   gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_KP_Space, 0,


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