Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gtk.Action

Class Gtk.Action

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkAction
Class : Action
Implements: Gtk.Buildable
Extends: GObject.Object
Actions represent operations that the user can be perform, along with
some information how it should be presented in the interface. Each action
provides methods to create icons, menu items and toolbar items
representing itself.
As well as the callback that is called when the action gets activated,
the following also gets associated with the action:

a name (not translated, for path lookup)
a label (translated, for display)
an accelerator
whether label indicates a stock id
a tooltip (optional, translated)
a toolbar label (optional, shorter than label)

The action will also have some state information:

visible (shown/hidden)
sensitive (enabled/disabled)

Apart from regular actions, there are toggle
actions, which can be toggled between two states and linkend="GtkRadioAction">radio actions, of which only one in a group
can be in the "active" state. Other actions can be implemented as GtkAction
subclasses.
Each action can have one or more proxy widgets. To act as an action proxy,
widget needs to implement GtkActivatable interface. Proxies mirror the state
of the action and should change when the action's state changes. Properties
that are always mirrored by proxies are GtkAction:sensitive and
GtkAction:visible. GtkAction:gicon, GtkAction:icon-name, GtkAction:label,
GtkAction:short-label and GtkAction:stock-id properties are only mirorred
if proxy widget has GtkActivatable:use-action-appearance property set to
TRUE.
When the proxy is activated, it should activate its action.
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.ActionGroup
Signal
connect_proxy (ActionGroup self, Action action, Widget proxy) : none
The ::connect-proxy signal is emitted after connecting a proxy to
an action in the group.
Gtk.ActionGroup
Signal
disconnect_proxy (ActionGroup self, Action action, Widget proxy) : none
The ::disconnect-proxy signal is emitted after disconnecting a proxy
from an action in the group.
Gtk.ActionGroup
Signal
post_activate (ActionGroup self, Action action) : none
The ::post-activate signal is emitted just after the action in the
This is intended for GtkUIManager to proxy the signal and provide global
notification just after any action is activated.
Gtk.ActionGroup
Signal
pre_activate (ActionGroup self, Action action) : none
The ::pre-activate signal is emitted just before the action in the
This is intended for GtkUIManager to proxy the signal and provide global
notification just before any action is activated.
Gtk.ActionGroup
Method
add_action (Action action) : none
Adds an action object to the action group.
Gtk.ActionGroup
Method
add_action_with_accel (Action action, String accelerator) : none
Adds an action object to the action group and sets up the accelerator.
Gtk.ActionGroup
Method
get_action (String action_name) : Gtk.Action
Looks up an action in the action group by name.
Gtk.ActionGroup
Method
remove_action (Action action) : none
Removes an action object from the action group.
Gtk.Activatable
Property
related_action : Gtk.Action
The action that this activatable will activate and receive
updates from for various states and possibly appearance.
Gtk.Activatable
Method
do_set_related_action (Action action) : none
This is a utility function for GtkActivatable implementors.
Gtk.Activatable
Method
get_related_action () : Gtk.Action
Gets the related GtkAction for activatable.
Gtk.Activatable
Method
set_related_action (Action action) : none
Sets the related action on the activatable object.
Gtk.Activatable
Method
sync_action_properties (Action action) : none
This is called to update the activatable completely, this is called
internally when the GtkActivatable::related-action property is set
or unset and by the implementing class when
GtkActivatable::use-action-appearance changes.
Gtk.UIManager
Signal
connect_proxy (UIManager self, Action action, Widget proxy) : none
The ::connect-proxy signal is emitted after connecting a proxy to
an action in the group.
Gtk.UIManager
Signal
disconnect_proxy (UIManager self, Action action, Widget proxy) : none
The ::disconnect-proxy signal is emitted after disconnecting a proxy
from an action in the group.
Gtk.UIManager
Signal
post_activate (UIManager self, Action action) : none
The ::post-activate signal is emitted just after the action
is activated.
Gtk.UIManager
Signal
pre_activate (UIManager self, Action action) : none
The ::pre-activate signal is emitted just before the action
is activated.
Gtk.UIManager
Method
get_action (String path) : Gtk.Action
Looks up an action by following a path.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:56 GMT+0800 (HKT)