<TypeSignatureLanguage="C#"Value="public class AccelGroup : GLib.Object, IWrapper, IDisposable"Maintainer="RJS"/>
<AssemblyInfo>
<AssemblyName>gtk-sharp</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<Attributes/>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <linklocation="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<Docs>
<summary>Groups of global keyboard accelerators for an entire GtkWindow</summary>
<remarks>
<para>
A GtkAccelGroup represents a group of keyboard accelerators, typically attached to a toplevel GtkWindow (with Gtk.Window.AddAccelGroup ()). Usually you won't need to create a Gtk.AccelGroup directly; instead, when using Gtk.ItemFactory, Gtk# automatically sets up the accelerators for your menus in the item factory's Gtk.AccelGroup.
</para>
<para>
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.NewWithMnemonic (). Menu items can have both accelerators and mnemonics, of course.
<summary>Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see <seecref="M:Gtk.AccelMap.AddEntry ()"/>)). When the group is being activated in response to a call to <seecref="M:Gtk.AccelGroup.Activate ()"/>, 'closure' will be invoked if the accel_key and accel_mods from <seecref="M:Gtk.AccelGroup.Activate ()"/> match the key and modifiers for the path.</summary>
<paramname="accel_path">Path used for determining key and modifiers.</param>
<paramname="closure">Closure to be executed upon accelerator activation</param>
<summary>Locks the given accelerator group.</summary>
<remarks>Locking an accelerator group prevents the accelerators contained within it to be changed during runtime. Refer to <seecref="M:Gtk.AccelMap.ChangeEntry ()"/> about runtime accelerator changes. If called more than once, accel_group remains locked until <seecref="M:Gtk.AccelGroup.Unlock ()"/> has been called an equivalent number of times.
<summary>Installs an accelerator in this group. When accel_group is being activated in response to a call to <seecref="M:Gtk.AccelGroup.Activate ()"/>, closure will be invoked if the accel_key and accel_mods from <seecref="M:Gtk.AccelGroup.Activate ()"/> match those of this connection. The signature used for the closure is that of <seecref="M:Gtk.AccelGroup.Activate ()"/>.</summary>
<paramname="accel_key">Key value of the accelerator.</param>
<paramname="accel_mods">Modifier combination of the accelerator.</param>
<paramname="accel_flags">A flag mask to configure this accelerator.</param>
<paramname="closure">Closure to be executed upon accelerator activation.</param>
<remarks>Note that, due to implementation details, a single closure can only be connected to one accelerator group.</remarks>
<returns>Creates a new instance of AccelGroup, using the GLib-provided type</returns>
<remarks>
<para>This is a constructor used by derivative types of <seecref="T:Gtk.AccelGroup"/> that would have their own GLib type assigned to it. This is not typically used by C# code.</para>
<returns>Creates a new instance of AccelGroup, using the GLib-provided type</returns>
<remarks>
<para>This is a constructor used by derivative types of <seecref="T:Gtk.AccelGroup"/> that would have their own GLib type assigned to it. This is not typically used by C# code.</para>