Action.this
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
name | A unique name for the action |
label | the label displayed in menu items and on buttons, or null |
tooltip | a tooltip for the action, or null |
stockId | the 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]