GObject.Object
Gtk.AccelGroup
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkAccelGroup |
Class : | AccelGroup |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
is_locked : gboolean
read only
|
Gtk.AccelGroup | |
parent : GObject.Object
read only
|
Gtk.AccelGroup | |
priv : Gtk.AccelGroupPrivate
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
(guint32 accel_quark, Object acceleratable, guint32 accel_key, ModifierType accel_mods)
:
gboolean
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 | |
connect
(guint32 accel_key, ModifierType accel_mods, AccelFlags accel_flags, Closure closure)
:
none
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
()
:
gboolean
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 |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
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.Menu
Property |
accel_group : Gtk.AccelGroup
The accel group holding accelerators for the menu.
|
Gtk.Menu
Method |
get_accel_group
()
:
Gtk.AccelGroup
Gets the GtkAccelGroup which holds global accelerators for the
menu. |
Gtk.Menu
Method |
set_accel_group
(AccelGroup accel_group)
:
none
Set the GtkAccelGroup which holds global accelerators for the
menu. |
Gtk.UIManager
Method |
get_accel_group
()
:
Gtk.AccelGroup
Returns the GtkAccelGroup associated with manager.
|
Gtk.Widget
Method |
add_accelerator
(String accel_signal, AccelGroup accel_group, guint32 accel_key, ModifierType accel_mods, AccelFlags accel_flags)
:
none
Installs an accelerator for this widget in accel_group that causes
The accel_group needs to be added to the widget's toplevel via gtk_window_add_accel_group(), and the signal must be of type G_RUN_ACTION. |
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().
|