parse_string


Description:

public static ShortcutAction? parse_string (string str)

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`, for `GtkNothingAction`
  • `activate`, for `GtkActivateAction`
  • `mnemonic-activate`, for `GtkMnemonicAction`
  • `action(NAME)`, for a `GtkNamedAction` for the action named `NAME`
  • `signal(NAME)`, for a `GtkSignalAction` for the signal `NAME`

Parameters:

string

the string to parse

Returns:

a new `GtkShortcutAction`




2022 vala-language.org