Method
IdeActionMixininstall_action
Declaration
void
ide_action_mixin_install_action (
IdeActionMixin* mixin,
const char* action_name,
const char* parameter_type,
IdeActionActivateFunc activate
)
Description
This should be called at class initialization time to specify actions to be added for all instances of this class.
Actions installed by this function are stateless. The only state they have is whether they are enabled or not.
This method is not directly available to language bindings.
Parameters
action_name
-
Type:
const char*
A prefixed action name, such as “clipboard.paste”
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. parameter_type
-
Type:
const char*
The parameter type.
The argument can be NULL
.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. activate
-
Type:
IdeActionActivateFunc
Callback to use when the action is activated.