install_action


Description:

[ CCode ( cname = "gtk_widget_class_install_action" ) ]
public class void install_action (string action_name, string? parameter_type, WidgetActionActivateFunc activate)

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:

this

a Widget

action_name

a prefixed action name, such as "clipboard.paste"

parameter_type

the parameter type, or null

activate

callback to use when the action is activated