| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
GTK2
GTK2.ActionGroup

# Class GTK2.ActionGroup

Description

  Actions are organized into groups. An action group is essentially a map from names to GTK2.Action objects.

  All actions that would make sense to use in a particular context should be in a single group. Multiple action groups may be used for a particular user interface. In fact, it is expected that most non-trivial applications will make use of multiple groups. For example, in an application that can edit multiple documents, one group holding global actions (e.g. quit, about, new), and one group per document holding actions that act on that document (eg. save, cut/copy/paste, etc). Each window's menus would be constructed from a combination of two action groups.

  Accelerators are handled by the GTK2+ accelerator map. All actions are assigned an accelerator path (which normally has the form &lt;Actions&gt;/group-name/action-name) and a shortcut is associated with this accelerator path. All menuitems and toolitems take on this accelerator path. The GTK2+ accelerator map code makes sure that the correct shortcut is displayed next to the menu item. Properties: string name int sensitive int visible

  Signals: connect_proxy

  disconnect_proxy

  post_activate

  pre_activate

Inherit Object

  inherit G.Object : Object