GObject.Object
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 |
Properties | Defined By | |
---|---|---|
name : String
|
Gtk.ActionGroup | |
parent : GObject.Object
read only
|
Gtk.ActionGroup | |
priv : Gtk.ActionGroupPrivate
read only
|
Gtk.ActionGroup | |
sensitive : gboolean
|
Gtk.ActionGroup | |
visible : gboolean
|
Gtk.ActionGroup |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.ActionGroup
(Object properties)
Create a new Gtk.ActionGroup
Create a new Gtk.ActionGroup
|
||
Create a new Gtk.ActionGroup
Create a new Gtk.ActionGroup
|
||
add_action
(Action action)
:
none
Adds an action object to the action group.
Adds an action object to the action group. Note that this function
does not set up the accel path of the action, which can lead to problems if a user tries to modify the accelerator of a menuitem associated with the action. Therefore you must either set the accel path yourself with gtk_action_set_accel_path(), or use
|
Gtk.ActionGroup | |
Adds an action object to the action group and sets up the accelerator.
Adds an action object to the action group and sets up the accelerator.
If accelerator is NULL, attempts to use the accelerator associated with the stock_id of the action. Accel paths are set to
|
Gtk.ActionGroup | |
Adds a child to buildable.
Adds a child to buildable. type is an optional string
describing how the child should be added.
|
Gtk.Buildable | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name.
GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by
the buildable.
This is called at the end of each custom element handled by
the buildable.
|
Gtk.Buildable | |
This is called for each unknown element under <child>.
This is called for each unknown element under <child>.
if it doesn't.
|
Gtk.Buildable | |
get_action
(String action_name)
:
Gtk.Action
Looks up an action in the action group by name.
Looks up an action in the action group by name.
|
Gtk.ActionGroup | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_name
()
:
String
Gets the name of the action group.
Gets the name of the action group.
|
Gtk.ActionGroup | |
get_sensitive
()
:
gboolean
Returns TRUE if the group is sensitive.
Returns TRUE if the group is sensitive. The constituent actions
can only be logically sensitive (see gtk_action_is_sensitive()) if they are sensitive (see gtk_action_get_sensitive()) and their group is sensitive.
|
Gtk.ActionGroup | |
get_visible
()
:
gboolean
Returns TRUE if the group is visible.
Returns TRUE if the group is visible. The constituent actions
can only be logically visible (see gtk_action_is_visible()) if they are visible (see gtk_action_get_visible()) and their group is visible.
|
Gtk.ActionGroup | |
list_actions
()
:
Array
Lists the actions in the action group.
Lists the actions in the action group.
|
Gtk.ActionGroup | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a
GtkBuilder UI definition.
Called when the builder finishes the parsing of a
GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
remove_action
(Action action)
:
none
Removes an action object from the action group.
Removes an action object from the action group.
|
Gtk.ActionGroup | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
set_name
(String name)
:
none
Sets the name of the buildable object.
Sets the name of the buildable object.
|
Gtk.Buildable | |
set_sensitive
(gboolean sensitive)
:
none
Changes the sensitivity of action_group
Changes the sensitivity of action_group
|
Gtk.ActionGroup | |
Sets a function to be used for translating the label and tooltip of
GtkActionGroupEntrys added by gtk_action_group_add_actions().
Sets a function to be used for translating the label and tooltip of
GtkActionGroupEntrys added by gtk_action_group_add_actions(). If you're using gettext(), it is enough to set the translation domain with gtk_action_group_set_translation_domain().
|
Gtk.ActionGroup | |
set_translation_domain
(String domain)
:
none
Sets the translation domain and uses g_dgettext() for translating the
gtk_action_group_add_actions().
Sets the translation domain and uses g_dgettext() for translating the
gtk_action_group_add_actions(). If you're not using gettext() for localization, see gtk_action_group_set_translate_func().
|
Gtk.ActionGroup | |
set_visible
(gboolean visible)
:
none
Changes the visible of action_group.
Changes the visible of action_group.
|
Gtk.ActionGroup | |
Gtk.ActionGroup |
Event | Defined By | |
---|---|---|
The ::connect-proxy signal is emitted after connecting a proxy to
an action in the group.
The ::connect-proxy signal is emitted after connecting a proxy to
an action in the group. Note that the proxy may have been connected to a different action before. This is intended for simple customizations for which a custom action class would be too clumsy, e.g. showing tooltips for menuitems in the statusbar. GtkUIManager proxies the signal and provides global notification just before any action is connected to a proxy, which is probably more convenient to use.
|
Gtk.ActionGroup | |
The ::disconnect-proxy signal is emitted after disconnecting a proxy
from an action in the group.
The ::disconnect-proxy signal is emitted after disconnecting a proxy
from an action in the group. GtkUIManager proxies the signal and provides global notification just before any action is connected to a proxy, which is probably more convenient to use.
|
Gtk.ActionGroup | |
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.
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 | |
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.
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 |
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. |