GObject.Object
Gtk.AccelGroup
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkAccelGroup |
Class : | AccelGroup |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
acceleratables : Array
read only
|
Gtk.AccelGroup | |
is_locked : Boolean
read only
|
Gtk.AccelGroup | |
lock_count : Number
read only
|
Gtk.AccelGroup | |
modifier_mask : Gdk.ModifierType
read only
|
Gtk.AccelGroup | |
modifier_mask : Gdk.ModifierType
read only
|
Gtk.AccelGroup | |
n_accels : Number
read only
|
Gtk.AccelGroup | |
parent : GObject.Object
read only
|
Gtk.AccelGroup | |
priv_accels : Gtk.AccelGroupEntry
read only
|
Gtk.AccelGroup |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.AccelGroup
(Object properties)
Create a new Gtk.AccelGroup
Create a new Gtk.AccelGroup
|
||
Finds the GtkAccelGroup to which closure is connected; see gtk_accel_group_connect().
Finds the GtkAccelGroup to which closure is connected; see gtk_accel_group_connect().
|
Gtk.AccelGroup | |
activate
(Number accel_quark, Object acceleratable, Number accel_key, ModifierType accel_mods)
:
Boolean
Finds the first accelerator in accel_group that matches accel_key and accel_mods, and activates it.
Finds the first accelerator in accel_group that matches accel_key and accel_mods, and activates it.
|
Gtk.AccelGroup | |
Installs an accelerator in this group.
Installs an accelerator in this group. When accel_group is being activated in response to a call to gtk_accel_groups_activate(), closure will be invoked if the accel_key and accel_mods from gtk_accel_groups_activate() match those of this connection. The signature used for the closure is that of GtkAccelGroupActivate. Note that, due to implementation details, a single closure can only be connected to one accelerator group.
|
Gtk.AccelGroup | |
Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see gtk_accel_map_add_entry()).
Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see gtk_accel_map_add_entry()). When accel_group is being activated in response to a call to gtk_accel_groups_activate(), closure will be invoked if the accel_key and for the path. The signature used for the closure is that of GtkAccelGroupActivate. Note that accel_path string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().
|
Gtk.AccelGroup | |
Removes an accelerator previously installed through gtk_accel_group_connect().
Removes an accelerator previously installed through gtk_accel_group_connect(). Since 2.20 closure can be NULL.
|
Gtk.AccelGroup | |
Removes an accelerator previously installed through gtk_accel_group_connect().
Removes an accelerator previously installed through gtk_accel_group_connect().
|
Gtk.AccelGroup | |
Finds the first entry in an accelerator group for which
Finds the first entry in an accelerator group for which
|
Gtk.AccelGroup | |
get_is_locked
()
:
Boolean
Locks are added and removed using gtk_accel_group_lock() and gtk_accel_group_unlock().
Locks are added and removed using gtk_accel_group_lock() and gtk_accel_group_unlock(). FALSE otherwise.
|
Gtk.AccelGroup | |
get_modifier_mask
()
:
Gdk.ModifierType
Gets a GdkModifierType representing the mask for this
Gets a GdkModifierType representing the mask for this
|
Gtk.AccelGroup | |
lock
()
:
none
Locks the given accelerator group.
Locks the given accelerator group. Locking an acelerator group prevents the accelerators contained within it to be changed during runtime. Refer to gtk_accel_map_change_entry() about runtime accelerator changes. If called more than once, accel_group remains locked until gtk_accel_group_unlock() has been called an equivalent number of times.
|
Gtk.AccelGroup | |
Queries an accelerator group for all entries matching accel_key and
Queries an accelerator group for all entries matching accel_key and
|
Gtk.AccelGroup | |
unlock
()
:
none
Undoes the last call to gtk_accel_group_lock() on this accel_group.
Undoes the last call to gtk_accel_group_lock() on this accel_group.
|
Gtk.AccelGroup |
Event | Defined By | |
---|---|---|
accel_activate (AccelGroup self, Object acceleratable, Number keyval, ModifierType modifier)
:
Boolean
The accel-activate signal is an implementation detail of GtkAccelGroup and not meant to be used by applications.
The accel-activate signal is an implementation detail of GtkAccelGroup and not meant to be used by applications.
|
Gtk.AccelGroup | |
The accel-changed signal is emitted when a GtkAccelGroupEntry is added to or removed from the accel group.
The accel-changed signal is emitted when a GtkAccelGroupEntry is added to or removed from the accel group. Widgets like GtkAccelLabel which display an associated accelerator should connect to this signal, and rebuild their visual representation if the accel_closure is theirs.
|
Gtk.AccelGroup |
Class / Namespace | Method / Signal / Properties |
---|---|
Gladeui.App
Method |
Gladeui.App.set_accel_group
(AccelGroup accel_group)
:
none
|
Gladeui.App
Method |
Gladeui.App.get_accel_group
()
:
Gtk.AccelGroup
|
Gtk.Action
Method |
set_accel_group
(AccelGroup accel_group)
:
none
Sets the GtkAccelGroup in which the accelerator for this action will be installed.
|
Gtk.ImageMenuItem
Property |
accel_group : Gtk.AccelGroup
The Accel Group to use for stock accelerator keys
|
Gtk.ImageMenuItem
Method |
Create a new Gtk.ImageMenuItem
|
Gtk.ImageMenuItem
Method |
set_accel_group
(AccelGroup accel_group)
:
none
Specifies an accel_group to add the menu items accelerator to (this only applies to stock items so a stock item must already be set, make sure to call gtk_image_menu_item_set_use_stock() and gtk_menu_item_set_label() with a valid stock item first).
|
Gtk.ItemFactory
Method |
new Gtk.ItemFactory.c_new
(Number container_type, String path, AccelGroup accel_group)
:
Gtk.ItemFactory
Create a new Gtk.ItemFactory
|
Gtk.ItemFactory
Method |
Gtk.ItemFactory.add_foreign
(Widget accel_widget, String full_path, AccelGroup accel_group, Number keyval, ModifierType modifiers)
:
none
Installs an accelerator for accel_widget in accel_group, that causes the ::activate signal to be emitted if the accelerator is activated.
|
Gtk.ItemFactory
Method |
Initializes an item factory.
|
Gtk.Menu
Property |
accel_group : Gtk.AccelGroup
The accel group holding accelerators for the menu.
|
Gtk.Menu
Method |
set_accel_group
(AccelGroup accel_group)
:
none
|
Gtk.Menu
Method |
get_accel_group
()
:
Gtk.AccelGroup
|
Gtk.UIManager
Method |
get_accel_group
()
:
Gtk.AccelGroup
Returns the GtkAccelGroup associated with self.
|
Gtk.Widget
Method |
add_accelerator
(String accel_signal, AccelGroup accel_group, Number accel_key, ModifierType accel_mods, AccelFlags accel_flags)
:
none
|
Gtk.Widget
Method |
Removes an accelerator from widget, previously installed with gtk_widget_add_accelerator().
|
Gtk.Widget
Method |
set_accel_path
(String accel_path, AccelGroup accel_group)
:
none
Given an accelerator group, accel_group, and an accelerator path, key binding that is defined for accel_path is pressed, widget will be activated.
|
Gtk.Window
Method |
add_accel_group
(AccelGroup accel_group)
:
none
Associate accel_group with window, such that calling gtk_accel_groups_activate() on window will activate accelerators in accel_group.
|
Gtk.Window
Method |
remove_accel_group
(AccelGroup accel_group)
:
none
Reverses the effects of gtk_window_add_accel_group().
|