Constructor
Gtk.ShortcutAction.parse_string
Declaration [src]
GtkShortcutAction*
gtk_shortcut_action_parse_string (
const char* string
)
Description [src]
Tries to parse the given string into an action.
On success, the parsed action is returned. When parsing
failed, NULL
is returned.
The accepted strings are:
nothing
, forGtkNothingAction
activate
, forGtkActivateAction
mnemonic-activate
, forGtkMnemonicAction
action(NAME)
, for aGtkNamedAction
for the action namedNAME
signal(NAME)
, for aGtkSignalAction
for the signalNAME
Parameters
string |
const char* |
the string to parse |
|
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string |
Return value
Returns: GtkShortcutAction |
|
a new |
|
Ownership of the data is transferred to the caller | |
Can be NULL |