summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcuttrigger.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-04-04 11:38:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-04-04 12:22:43 -0400
commitec854fc503dd56dce11ed5c264ed27e78ccd19ef (patch)
treeb7a612f550534f9a5e187ba215fe9be246835fc4 /gtk/gtkshortcuttrigger.c
parente75e975a38af5ea6205c244c9431066cd5fdc3db (diff)
downloadgtk+-ec854fc503dd56dce11ed5c264ed27e78ccd19ef.tar.gz
shortcuts: documentation fixes
Update symbol lists, and add examples for parsing triggers and actions.
Diffstat (limited to 'gtk/gtkshortcuttrigger.c')
-rw-r--r--gtk/gtkshortcuttrigger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkshortcuttrigger.c b/gtk/gtkshortcuttrigger.c
index 8be4bd3349..722a41fafd 100644
--- a/gtk/gtkshortcuttrigger.c
+++ b/gtk/gtkshortcuttrigger.c
@@ -118,10 +118,10 @@ gtk_shortcut_trigger_trigger (GtkShortcutTrigger *self,
* The accepted strings are:
*
* - `never`, for #GtkNeverTrigger
- * - a string parsed by gtk_accelerator_parse(), for a #GtkKeyvalTrigger
- * - underscore, followed by a single character, for #GtkMnemonicTrigger
+ * - a string parsed by gtk_accelerator_parse(), for a #GtkKeyvalTrigger, e.g. `<Control>C`
+ * - underscore, followed by a single character, for MnemonicTrigger, e.g. `_l`
* - two valid trigger strings, separated by a `|` character, for a
- * #GtkAlternativeTrigger
+ * #GtkAlternativeTrigger: `<Control>q|<Control>w`
*
* Returns: (nullable) (transfer full): a new #GtkShortcutTrigger
* or %NULL on error