Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gtk.ActionGroup

Class Gtk.ActionGroup

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkActionGroup
Class : ActionGroup
Implements: Gtk.Buildable
Extends: GObject.Object
Actions are organised into groups. An action group is essentially a
map from names to GtkAction 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 nontrivial
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 GTK+ accelerator map. All actions are
assigned an accelerator path (which normally has the form
<Actions>/group-name/action-name)
and a shortcut is associated with this accelerator path. All menuitems
and toolitems take on this accelerator path. The GTK+ accelerator map
code makes sure that the correct shortcut is displayed next to the menu
item.

GtkActionGroup as GtkBuildable

The GtkActionGroup implementation of the GtkBuildable interface accepts
GtkAction objects as <child> elements in UI definitions.
Note that it is probably more common to define actions and action groups
in the code, since they are directly related to what the code can do.
The GtkActionGroup implementation of the GtkBuildable interface supports
a custom <accelerator> element, which has attributes named key and
modifiers and allows to specify accelerators. This is similar to the
<accelerator> element of GtkWidget, the main difference is that
it doesn't allow you to specify a signal.


A <b>GtkDialog</b> UI definition fragment.



About
gtk-about





]]>


Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gtk.Action
Property
action_group : Gtk.ActionGroup
Gtk.UIManager
Method
insert_action_group (ActionGroup action_group, gint32 pos) : none
Inserts an action group into the list of action groups associated
with manager.
Gtk.UIManager
Method
remove_action_group (ActionGroup action_group) : none
Removes an action group from the list of action groups associated
with manager.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:56 GMT+0800 (HKT)