RGtk2 (version 2.20.31)

gtkToggleActionNew: gtkToggleActionNew

Description

Creates a new GtkToggleAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtkActionGroupAddActionWithAccel.

Usage

gtkToggleActionNew(name = NULL, label = NULL, tooltip = NULL, stock.id = NULL)

Arguments

name
A unique name for the action
label
The label displayed in menu items and on buttons, or NULL. [ allow-none ]
tooltip
A tooltip for the action, or NULL. [ allow-none ]
stock.id
The stock icon to display in widgets representing the action, or NULL

Value

GtkToggleAction] a new GtkToggleAction

Details

Since 2.4