Action.this

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.

More...
  1. this(void* ptr, Flag!"Take" take)
  2. this(string name, string label, string tooltip, string stockId)
    class Action
    this
    (
    string name
    ,
    string label = null
    ,
    string tooltip = null
    ,
    string stockId = null
    )

Parameters

name string

A unique name for the action

label string

the label displayed in menu items and on buttons, or null

tooltip string

a tooltip for the action, or null

stockId string

the stock icon to display in widgets representing the action, or null

Return Value

a new #GtkAction

Detailed Description

Deprecated: Use #GAction instead, associating it to a widget with #GtkActionable or creating a #GtkMenu with gtk.menu.Menu.newFromModel