ToggleAction.this

Warning gtk_toggle_action_new is deprecated and should not be used in newly-written code. 3.10 Creates a new GtkToggleAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel(). Since 2.4

  1. this(GtkToggleAction* gtkToggleAction)
  2. this(string name, string label, string tooltip, StockID stockId)
  3. this(string name, string label, string tooltip, string stockId)
    class ToggleAction
    this
    (
    string name
    ,
    string label
    ,
    string tooltip
    ,
    string stockId
    )

Parameters

name string

A unique name for the action

label string

The label displayed in menu items and on buttons, or NULL. [allow-none]

tooltip string

A tooltip for the action, or NULL. [allow-none]

stockId string

The stock icon to display in widgets representing the action, or NULL. [allow-none]

Throws

ConstructionException GTK+ fails to create the object.

Meta