diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-23 12:57:08 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-23 18:24:18 -0400 |
commit | 03601cb794b54be6124649f97f9568e6979c3287 (patch) | |
tree | d27842aa328230b56c4db32b422fa4e67f7b9041 /gtk/gtkshortcuttrigger.c | |
parent | 3108b8b4d3f6ddbc1f48b94b8693cac5fba9d493 (diff) | |
download | gtk+-03601cb794b54be6124649f97f9568e6979c3287.tar.gz |
docs: Improve shortcut trigger docs
Point out the need to escape <> in xml.
Diffstat (limited to 'gtk/gtkshortcuttrigger.c')
-rw-r--r-- | gtk/gtkshortcuttrigger.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkshortcuttrigger.c b/gtk/gtkshortcuttrigger.c index 65e3164b5b..8364932c59 100644 --- a/gtk/gtkshortcuttrigger.c +++ b/gtk/gtkshortcuttrigger.c @@ -122,6 +122,10 @@ gtk_shortcut_trigger_trigger (GtkShortcutTrigger *self, * - two valid trigger strings, separated by a `|` character, for a * #GtkAlternativeTrigger: `<Control>q|<Control>w` * + * Note that you will have to escape the `<` and `>` characters when specifying + * triggers in XML files, such as GtkBuilder ui files. Use `<` instead of + * `<` and `>` instead of `>`. + * * Returns: (nullable) (transfer full): a new #GtkShortcutTrigger * or %NULL on error */ |