KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/gtk-doc/html/gtk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/gtk-doc/html/gtk/gtk-Accelerator-Maps.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Accelerator Maps</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
<link rel="prev" href="gtk-Keyboard-Accelerators.html" title="Accelerator Groups">
<link rel="next" href="gtk-Clipboards.html" title="Clipboards">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part&#160;III.&#160;GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and 
         GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part&#160;V.&#160;GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk-Keyboard-Accelerators.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="gtkbase.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="gtk-Clipboards.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2589334" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2589884" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id2589787" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id2589812" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gtk-Accelerator-Maps"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2589334"></a><span class="refentrytitle">Accelerator Maps</span>
</h2>
<p>Accelerator Maps &#8212; Loadable keyboard accelerator specifications</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<a name="GtkAccelMap"></a><pre class="synopsis">

#include &lt;gtk/gtk.h&gt;


            <a href="gtk-Accelerator-Maps.html#GtkAccelMap-struct">GtkAccelMap</a>;
void        (<a href="gtk-Accelerator-Maps.html#GtkAccelMapForeach">*GtkAccelMapForeach</a>)           (<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> changed);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-add-entry">gtk_accel_map_add_entry</a>         (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="gtk-Accelerator-Maps.html#gtk-accel-map-lookup-entry">gtk_accel_map_lookup_entry</a>      (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelKey">GtkAccelKey</a> *key);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="gtk-Accelerator-Maps.html#gtk-accel-map-change-entry">gtk_accel_map_change_entry</a>      (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> replace);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-load">gtk_accel_map_load</a>              (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *file_name);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-save">gtk_accel_map_save</a>              (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *file_name);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-foreach">gtk_accel_map_foreach</a>           (<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             <a href="gtk-Accelerator-Maps.html#GtkAccelMapForeach">GtkAccelMapForeach</a> foreach_func);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-load-fd">gtk_accel_map_load_fd</a>           (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> fd);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-save-fd">gtk_accel_map_save_fd</a>           (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> fd);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-load-scanner">gtk_accel_map_load_scanner</a>      (<a
href="../glib/glib-Lexical-Scanner.html#GScanner"
>GScanner</a> *scanner);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-add-filter">gtk_accel_map_add_filter</a>        (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filter_pattern);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-foreach-unfiltered">gtk_accel_map_foreach_unfiltered</a>
                                            (<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             <a href="gtk-Accelerator-Maps.html#GtkAccelMapForeach">GtkAccelMapForeach</a> foreach_func);
<a href="gtk-Accelerator-Maps.html#GtkAccelMap">GtkAccelMap</a>* <a href="gtk-Accelerator-Maps.html#gtk-accel-map-get">gtk_accel_map_get</a>              (void);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-lock-path">gtk_accel_map_lock_path</a>         (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path);
void        <a href="gtk-Accelerator-Maps.html#gtk-accel-map-unlock-path">gtk_accel_map_unlock_path</a>       (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path);


</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2589787"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----GtkAccelMap
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2589812"></a><h2>Signals</h2>
<pre class="synopsis">

"<a href="gtk-Accelerator-Maps.html#GtkAccelMap-changed">changed</a>"   void        user_function      (<a href="gtk-Accelerator-Maps.html#GtkAccelMap">GtkAccelMap</a>     *object,
                                            <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>           *accel_path,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>            accel_key,
                                            <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> *accel_mods,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>         user_data)       : Run last / Has details
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2589884"></a><h2>Description</h2>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id2589899"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2589909"></a><h3>
<a name="GtkAccelMap-struct"></a>GtkAccelMap</h3>
<a class="indexterm" name="id2589922"></a><pre class="programlisting">typedef struct _GtkAccelMap GtkAccelMap;</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2589937"></a><h3>
<a name="GtkAccelMapForeach"></a>GtkAccelMapForeach ()</h3>
<a class="indexterm" name="id2589950"></a><pre class="programlisting">void        (*GtkAccelMapForeach)           (<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> changed);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_key</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_mods</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>changed</code></em>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590080"></a><h3>
<a name="gtk-accel-map-add-entry"></a>gtk_accel_map_add_entry ()</h3>
<a class="indexterm" name="id2590093"></a><pre class="programlisting">void        gtk_accel_map_add_entry         (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods);</pre>
<p>
Registers a new accelerator with the global accelerator map.
This function should only be called once per <em class="parameter"><code>accel_path</code></em>
with the canonical <em class="parameter"><code>accel_key</code></em> and <em class="parameter"><code>accel_mods</code></em> for this path.
To change the accelerator during runtime programatically, use
<a href="gtk-Accelerator-Maps.html#gtk-accel-map-change-entry"><code class="function">gtk_accel_map_change_entry()</code></a>.
The accelerator path must consist of "&lt;WINDOWTYPE&gt;/Category1/Category2/.../Action",
where &lt;WINDOWTYPE&gt; should be a unique application-specific identifier, that
corresponds to the kind of window the accelerator is being used in, e.g. "Gimp-Image",
"Abiword-Document" or "Gnumeric-Settings".
The Category1/.../Action portion is most appropriately chosen by the action the
accelerator triggers, i.e. for accelerators on menu items, choose the item's menu path,
e.g. "File/Save As", "Image/View/Zoom" or "Edit/Select All".
So a full valid accelerator path may look like:
"&lt;Gimp-Toolbox&gt;/File/Dialogs/Tool Options...".</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td> valid accelerator path
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_key</code></em>&#160;:</span></td>
<td>  the accelerator key
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_mods</code></em>&#160;:</span></td>
<td> the accelerator modifiers
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590243"></a><h3>
<a name="gtk-accel-map-lookup-entry"></a>gtk_accel_map_lookup_entry ()</h3>
<a class="indexterm" name="id2590257"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_accel_map_lookup_entry      (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelKey">GtkAccelKey</a> *key);</pre>
<p>
Looks up the accelerator entry for <em class="parameter"><code>accel_path</code></em> and fills in <em class="parameter"><code>key</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td>  a valid accelerator path
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></td>
<td>         the accelerator key to be filled in (optional)
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>     <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>accel_path</code></em> is known, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590377"></a><h3>
<a name="gtk-accel-map-change-entry"></a>gtk_accel_map_change_entry ()</h3>
<a class="indexterm" name="id2590390"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_accel_map_change_entry      (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> replace);</pre>
<p>
Changes the <em class="parameter"><code>accel_key</code></em> and <em class="parameter"><code>accel_mods</code></em> currently associated with <em class="parameter"><code>accel_path</code></em>.
Due to conflicts with other accelerators, a change may not always be possible,
<em class="parameter"><code>replace</code></em> indicates whether other accelerators may be deleted to resolve such
conflicts. A change will only occur if all conflicts could be resolved (which
might not be the case if conflicting accelerators are locked). Successful
changes are indicated by a <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> return value.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td>  a valid accelerator path
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_key</code></em>&#160;:</span></td>
<td>   the new accelerator key
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_mods</code></em>&#160;:</span></td>
<td>  the new accelerator modifiers
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>replace</code></em>&#160;:</span></td>
<td>     <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if other accelerators may be deleted upon conflicts
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>     <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the accelerator could be changed, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590587"></a><h3>
<a name="gtk-accel-map-load"></a>gtk_accel_map_load ()</h3>
<a class="indexterm" name="id2590600"></a><pre class="programlisting">void        gtk_accel_map_load              (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *file_name);</pre>
<p>
Parses a file previously saved with <a href="gtk-Accelerator-Maps.html#gtk-accel-map-save"><code class="function">gtk_accel_map_save()</code></a> for
accelerator specifications, and propagates them accordingly.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>file_name</code></em>&#160;:</span></td>
<td> a file containing accelerator specifications,
  in the GLib file name encoding
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590664"></a><h3>
<a name="gtk-accel-map-save"></a>gtk_accel_map_save ()</h3>
<a class="indexterm" name="id2590676"></a><pre class="programlisting">void        gtk_accel_map_save              (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *file_name);</pre>
<p>
Saves current accelerator specifications (accelerator path, key
and modifiers) to <em class="parameter"><code>file_name</code></em>.
The file is written in a format suitable to be read back in by
<a href="gtk-Accelerator-Maps.html#gtk-accel-map-load"><code class="function">gtk_accel_map_load()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>file_name</code></em>&#160;:</span></td>
<td> the name of the file to contain accelerator specifications,
  in the GLib file name encoding
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590746"></a><h3>
<a name="gtk-accel-map-foreach"></a>gtk_accel_map_foreach ()</h3>
<a class="indexterm" name="id2590759"></a><pre class="programlisting">void        gtk_accel_map_foreach           (<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             <a href="gtk-Accelerator-Maps.html#GtkAccelMapForeach">GtkAccelMapForeach</a> foreach_func);</pre>
<p>
Loops over the entries in the accelerator map whose accel path 
doesn't match any of the filters added with <a href="gtk-Accelerator-Maps.html#gtk-accel-map-add-filter"><code class="function">gtk_accel_map_add_filter()</code></a>, 
and execute <em class="parameter"><code>foreach_func</code></em> on each. The signature of <em class="parameter"><code>foreach_func</code></em> is 
that of <a href="gtk-Accelerator-Maps.html#GtkAccelMapForeach"><span class="type">GtkAccelMapForeach</span></a>, the <em class="parameter"><code>changed</code></em> parameter indicates whether
this accelerator was changed during runtime (thus, would need
saving during an accelerator map dump).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>         data to be passed into <em class="parameter"><code>foreach_func</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>foreach_func</code></em>&#160;:</span></td>
<td> function to be executed for each accel map entry which
               is not filtered out
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590880"></a><h3>
<a name="gtk-accel-map-load-fd"></a>gtk_accel_map_load_fd ()</h3>
<a class="indexterm" name="id2590894"></a><pre class="programlisting">void        gtk_accel_map_load_fd           (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> fd);</pre>
<p>
Filedescriptor variant of <a href="gtk-Accelerator-Maps.html#gtk-accel-map-load"><code class="function">gtk_accel_map_load()</code></a>.
</p>
<p>
Note that the file descriptor will not be closed by this function.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>fd</code></em>&#160;:</span></td>
<td> a valid readable file descriptor
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2590959"></a><h3>
<a name="gtk-accel-map-save-fd"></a>gtk_accel_map_save_fd ()</h3>
<a class="indexterm" name="id2590972"></a><pre class="programlisting">void        gtk_accel_map_save_fd           (<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> fd);</pre>
<p>
Filedescriptor variant of <a href="gtk-Accelerator-Maps.html#gtk-accel-map-save"><code class="function">gtk_accel_map_save()</code></a>.
</p>
<p>
Note that the file descriptor will not be closed by this function.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>fd</code></em>&#160;:</span></td>
<td> a valid writable file descriptor
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2591037"></a><h3>
<a name="gtk-accel-map-load-scanner"></a>gtk_accel_map_load_scanner ()</h3>
<a class="indexterm" name="id2591051"></a><pre class="programlisting">void        gtk_accel_map_load_scanner      (<a
href="../glib/glib-Lexical-Scanner.html#GScanner"
>GScanner</a> *scanner);</pre>
<p>
<a
href="../glib/glib-Lexical-Scanner.html#GScanner"
><span class="type">GScanner</span></a> variant of <a href="gtk-Accelerator-Maps.html#gtk-accel-map-load"><code class="function">gtk_accel_map_load()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>scanner</code></em>&#160;:</span></td>
<td> a <a
href="../glib/glib-Lexical-Scanner.html#GScanner"
><span class="type">GScanner</span></a> which has already been provided with an input file
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2591126"></a><h3>
<a name="gtk-accel-map-add-filter"></a>gtk_accel_map_add_filter ()</h3>
<a class="indexterm" name="id2591139"></a><pre class="programlisting">void        gtk_accel_map_add_filter        (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filter_pattern);</pre>
<p>
Adds a filter to the global list of accel path filters.
</p>
<p>
Accel map entries whose accel path matches one of the filters
are skipped by <a href="gtk-Accelerator-Maps.html#gtk-accel-map-foreach"><code class="function">gtk_accel_map_foreach()</code></a>.
</p>
<p>
This function is intended for GTK+ modules that create their own
menus, but don't want them to be saved into the applications accelerator
map dump.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>filter_pattern</code></em>&#160;:</span></td>
<td> a pattern (see <a
href="../glib/glib-Glob-style-pattern-matching.html#GPatternSpec"
><span class="type">GPatternSpec</span></a>)
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2591221"></a><h3>
<a name="gtk-accel-map-foreach-unfiltered"></a>gtk_accel_map_foreach_unfiltered ()</h3>
<a class="indexterm" name="id2591234"></a><pre class="programlisting">void        gtk_accel_map_foreach_unfiltered
                                            (<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data,
                                             <a href="gtk-Accelerator-Maps.html#GtkAccelMapForeach">GtkAccelMapForeach</a> foreach_func);</pre>
<p>
Loops over all entries in the accelerator map, and execute
<em class="parameter"><code>foreach_func</code></em> on each. The signature of <em class="parameter"><code>foreach_func</code></em> is that of
<a href="gtk-Accelerator-Maps.html#GtkAccelMapForeach"><span class="type">GtkAccelMapForeach</span></a>, the <em class="parameter"><code>changed</code></em> parameter indicates whether
this accelerator was changed during runtime (thus, would need
saving during an accelerator map dump).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>         data to be passed into <em class="parameter"><code>foreach_func</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>foreach_func</code></em>&#160;:</span></td>
<td> function to be executed for each accel map entry
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2591344"></a><h3>
<a name="gtk-accel-map-get"></a>gtk_accel_map_get ()</h3>
<a class="indexterm" name="id2591359"></a><pre class="programlisting"><a href="gtk-Accelerator-Maps.html#GtkAccelMap">GtkAccelMap</a>* gtk_accel_map_get              (void);</pre>
<p>
Gets the singleton global <a href="gtk-Accelerator-Maps.html#GtkAccelMap"><span class="type">GtkAccelMap</span></a> object. This object
is useful only for notification of changes to the accelerator
map via the ::changed signal; it isn't a parameter to the
other accelerator map functions.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the global <a href="gtk-Accelerator-Maps.html#GtkAccelMap"><span class="type">GtkAccelMap</span></a> object

</td>
</tr></tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2591422"></a><h3>
<a name="gtk-accel-map-lock-path"></a>gtk_accel_map_lock_path ()</h3>
<a class="indexterm" name="id2591437"></a><pre class="programlisting">void        gtk_accel_map_lock_path         (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path);</pre>
<p>
Locks the given accelerator path. If the accelerator map doesn't yet contain
an entry for <em class="parameter"><code>accel_path</code></em>, a new one is created.
</p>
<p>
Locking an accelerator path prevents its accelerator from being changed 
during runtime. A locked accelerator path can be unlocked by 
<a href="gtk-Accelerator-Maps.html#gtk-accel-map-unlock-path"><code class="function">gtk_accel_map_unlock_path()</code></a>. Refer to <a href="gtk-Accelerator-Maps.html#gtk-accel-map-change-entry"><code class="function">gtk_accel_map_change_entry()</code></a> 
for information about runtime accelerator changes.
</p>
<p>
If called more than once, <em class="parameter"><code>accel_path</code></em> remains locked until
<a href="gtk-Accelerator-Maps.html#gtk-accel-map-unlock-path"><code class="function">gtk_accel_map_unlock_path()</code></a> has been called an equivalent number
of times.
</p>
<p>
Note that locking of individual accelerator paths is independent from 
locking the <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> containing them. For runtime accelerator
changes to be possible both the accelerator path and its <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a>
have to be unlocked.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td> a valid accelerator path
</td>
</tr></tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2591573"></a><h3>
<a name="gtk-accel-map-unlock-path"></a>gtk_accel_map_unlock_path ()</h3>
<a class="indexterm" name="id2591589"></a><pre class="programlisting">void        gtk_accel_map_unlock_path       (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path);</pre>
<p>
Undoes the last call to <a href="gtk-Accelerator-Maps.html#gtk-accel-map-lock-path"><code class="function">gtk_accel_map_lock_path()</code></a> on this <em class="parameter"><code>accel_path</code></em>.
Refer to <a href="gtk-Accelerator-Maps.html#gtk-accel-map-lock-path"><code class="function">gtk_accel_map_lock_path()</code></a> for information about accelerator path locking.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td> a valid accelerator path
</td>
</tr></tbody>
</table></div>
<p>Since  2.4
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2591673"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id2591683"></a><h3>
<a name="GtkAccelMap-changed"></a>The "changed" signal</h3>
<a class="indexterm" name="id2591694"></a><pre class="programlisting">void        user_function                  (<a href="gtk-Accelerator-Maps.html#GtkAccelMap">GtkAccelMap</a>     *object,
                                            <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>           *accel_path,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>            accel_key,
                                            <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> *accel_mods,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>         user_data)       : Run last / Has details</pre>
<p>
Notifies of a change in the global accelerator map.
The path is also used as the detail for the signal,
so it is possible to connect to
changed::<em class="replaceable"><code>accel_path</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>object</code></em>&#160;:</span></td>
<td> the global accel map object
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td> the path of the accelerator that changed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_key</code></em>&#160;:</span></td>
<td> the key value for the new accelerator
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_mods</code></em>&#160;:</span></td>
<td> the modifier mask for the new accelerator
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
</div>
</div>
</body>
</html>

Anon7 - 2021