summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcuttrigger.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-23 12:57:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-23 18:24:18 -0400
commit03601cb794b54be6124649f97f9568e6979c3287 (patch)
treed27842aa328230b56c4db32b422fa4e67f7b9041 /gtk/gtkshortcuttrigger.c
parent3108b8b4d3f6ddbc1f48b94b8693cac5fba9d493 (diff)
downloadgtk+-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.c4
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 `&lt;` instead of
+ * `<` and `&gt;` instead of `>`.
+ *
* Returns: (nullable) (transfer full): a new #GtkShortcutTrigger
* or %NULL on error
*/