docs: Explain the shortcutcontroller example a bit

Add a reference to the the syntax for shortcut actions
in builder files.
This commit is contained in:
Matthias Clasen 2020-07-23 12:43:46 -04:00
parent d1afe32762
commit 3108b8b4d3

View File

@ -50,7 +50,7 @@
* <property name='scope'>managed</property>
* <child>
* <object class='GtkShortcut'>
* <property name='trigger'>&lt;Control&gt;k</property>
* <property name='trigger'><![CDATA[<Control>k]]></property>
* <property name='action'>activate</property>
* </object>
* </child>
@ -58,6 +58,11 @@
* </child>
* </object>
* ]|
*
* This example creates a #GtkActivateAction for triggering the `activate`
* signal of the GtkButton. See gtk_shortcut_action_parse_string() for the syntax
* for other kinds of #GtkShortcutAction. See gtk_shortcut_trigger_parse_string()
* to learn more about the syntax for triggers.
**/
#include "config.h"