Action.this

this(void * ptr, Flag!"Take" take)
No documentation available for this declaration.
this(string name, string label = null, string tooltip = null, string stockId = null)

Creates a new #GtkAction object. To add the action to a #GtkActionGroup and set the accelerator for the action, call [gtk.action_group.ActionGroup.addActionWithAccel]. See the [UI Definition section][XML-UI] for information on allowed action names.

Parameters

nameA unique name for the action
labelthe label displayed in menu items and on buttons, or null
tooltipa tooltip for the action, or null
stockIdthe stock icon to display in widgets representing the action, or null

Returns

a new #GtkAction

Deprecated

Use #GAction instead, associating it to a widget with

#GtkActionable or creating a #GtkMenu with [gtk.menu.Menu.newFromModel]