docs: Improve shortcut trigger docs

Point out the need to escape <> in xml.
This commit is contained in:
Matthias Clasen 2020-07-23 12:57:08 -04:00
parent 3108b8b4d3
commit 03601cb794

View File

@ -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
*/