GtkShortcutTrigger* gtk_shortcut_trigger_parse_string ( const char* string )
Tries to parse the given string into a trigger.
On success, the parsed trigger is returned.
When parsing failed,
NULL is returned.
The accepted strings are:
- a string parsed by gtk_accelerator_parse(), for a
- underscore, followed by a single character, for
- two valid trigger strings, separated by a
|character, for a
Note that you will have to escape the
> characters when specifying
triggers in XML files, such as GtkBuilder ui files. Use
< instead of
> instead of
The string to parse.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
|The caller of the function takes ownership of the data, and is responsible for freeing it.|
|The return value can be |