Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gtk.AccelGroup

Class Gtk.AccelGroup

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkAccelGroup
Class : AccelGroup
Extends: GObject.Object
A GtkAccelGroup represents a group of keyboard accelerators,
typically attached to a toplevel GtkWindow (with
gtk_window_add_accel_group()). Usually you won't need to create a
GtkAccelGroup directly; instead, when using GtkUIManager, GTK+
automatically sets up the accelerators for your menus in the ui
manager's GtkAccelGroup.
Note that accelerators are different from
mnemonics. Accelerators are shortcuts for
activating a menu item; they appear alongside the menu item they're a
shortcut for. For example "Ctrl+Q" might appear alongside the "Quit"
menu item. Mnemonics are shortcuts for GUI elements such as text
entries or buttons; they appear as underlined characters. See
gtk_label_new_with_mnemonic(). Menu items can have both accelerators
and mnemonics, of course.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
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
new Gtk.ImageMenuItem.from_stock (String stock_id, AccelGroup accel_group) : Gtk.Widget
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
remove_accelerator (AccelGroup accel_group, guint32 accel_key, ModifierType accel_mods) : gboolean
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().
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:53 GMT+0800 (HKT)