Class method
Gtk.WidgetClass.install_action
Declaration [src]
void
gtk_widget_class_install_action (
WidgetClass* self,
const char* action_name,
const char* parameter_type
GtkWidgetActionActivateFunc activate,
)
Description [src]
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.
Parameters
action_name |
const char* |
a prefixed action name, such as “clipboard.paste” |
|
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string | |
parameter_type |
const char* |
the parameter type, or |
|
Can be NULL | |
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string | |
activate |
GtkWidgetActionActivateFunc |
callback to use when the action is activated |