From 15eb3bbbf12d94d107483eb71acbf67352317c11 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 30 Mar 2020 20:09:29 -0400 Subject: shortcutcontroller: Document buildable support --- gtk/gtkshortcutcontroller.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gtk/gtkshortcutcontroller.c b/gtk/gtkshortcutcontroller.c index d18b6902f2..d7534001fe 100644 --- a/gtk/gtkshortcutcontroller.c +++ b/gtk/gtkshortcutcontroller.c @@ -36,6 +36,28 @@ * * #GtkShortcutController implements #GListModel for querying the shortcuts that * have been added to it. + * + * # GtkShortcutController as a GtkBuildable + * + * GtkShortcutControllers can be creates in ui files to set up shortcuts + * in the same place as the widgets. + * + * An example of a UI definition fragment with GtkShortcutController: + * |[ + * + * + * + * managed + * + * + * <Control>k + * activate + * + * + * + * + * + * ]| **/ #include "config.h" -- cgit v1.2.1