?? gtk-accelerator-maps.html
字號:
>gint</a> fd);</pre><p>Filedescriptor variant of <a class="link" 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><p><span class="term"><em class="parameter"><code>fd</code></em> :</span></p></td><td> a valid writable file descriptor</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3167144"></a><h3><a name="gtk-accel-map-load-scanner"></a>gtk_accel_map_load_scanner ()</h3><a class="indexterm" name="id3167158"></a><pre class="programlisting">void gtk_accel_map_load_scanner (<ahref="/usr/share/gtk-doc/html/glib/glib-Lexical-Scanner.html#GScanner">GScanner</a> *scanner);</pre><p><ahref="/usr/share/gtk-doc/html/glib/glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> variant of <a class="link" 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><p><span class="term"><em class="parameter"><code>scanner</code></em> :</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/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="id3167234"></a><h3><a name="gtk-accel-map-add-filter"></a>gtk_accel_map_add_filter ()</h3><a class="indexterm" name="id3167247"></a><pre class="programlisting">void gtk_accel_map_add_filter (const <ahref="/usr/share/gtk-doc/html/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 filtersare skipped by <a class="link" 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 ownmenus, but don't want them to be saved into the applications acceleratormap dump.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>filter_pattern</code></em> :</span></p></td><td> a pattern (see <ahref="/usr/share/gtk-doc/html/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="id3167329"></a><h3><a name="gtk-accel-map-foreach-unfiltered"></a>gtk_accel_map_foreach_unfiltered ()</h3><a class="indexterm" name="id3167342"></a><pre class="programlisting">void gtk_accel_map_foreach_unfiltered (<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> data, <a class="link" 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 class="link" href="gtk-Accelerator-Maps.html#GtkAccelMapForeach"><span class="type">GtkAccelMapForeach</span></a>, the <em class="parameter"><code>changed</code></em> parameter indicates whetherthis accelerator was changed during runtime (thus, would needsaving during an accelerator map dump).</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td><td> data to be passed into <em class="parameter"><code>foreach_func</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>foreach_func</code></em> :</span></p></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="id3167451"></a><h3><a name="gtk-accel-map-get"></a>gtk_accel_map_get ()</h3><a class="indexterm" name="id3167467"></a><pre class="programlisting"><a class="link" href="gtk-Accelerator-Maps.html#GtkAccelMap">GtkAccelMap</a>* gtk_accel_map_get (void);</pre><p>Gets the singleton global <a class="link" href="gtk-Accelerator-Maps.html#GtkAccelMap"><span class="type">GtkAccelMap</span></a> object. This objectis useful only for notification of changes to the acceleratormap via the ::changed signal; it isn't a parameter to theother accelerator map functions.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the global <a class="link" href="gtk-Accelerator-Maps.html#GtkAccelMap"><span class="type">GtkAccelMap</span></a> object</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3167532"></a><h3><a name="gtk-accel-map-lock-path"></a>gtk_accel_map_lock_path ()</h3><a class="indexterm" name="id3167547"></a><pre class="programlisting">void gtk_accel_map_lock_path (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *accel_path);</pre><p>Locks the given accelerator path. If the accelerator map doesn't yet containan 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 class="link" href="gtk-Accelerator-Maps.html#gtk-accel-map-unlock-path"><code class="function">gtk_accel_map_unlock_path()</code></a>. Refer to <a class="link" 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 class="link" 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 numberof times.</p><p>Note that locking of individual accelerator paths is independent from locking the <a class="link" href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> containing them. For runtime acceleratorchanges to be possible both the accelerator path and its <a class="link" 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><p><span class="term"><em class="parameter"><code>accel_path</code></em> :</span></p></td><td> a valid accelerator path</td></tr></tbody></table></div><p class="since">Since 2.4</p></div><hr><div class="refsect2" lang="en"><a name="id3167685"></a><h3><a name="gtk-accel-map-unlock-path"></a>gtk_accel_map_unlock_path ()</h3><a class="indexterm" name="id3167701"></a><pre class="programlisting">void gtk_accel_map_unlock_path (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *accel_path);</pre><p>Undoes the last call to <a class="link" 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 class="link" 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><p><span class="term"><em class="parameter"><code>accel_path</code></em> :</span></p></td><td> a valid accelerator path</td></tr></tbody></table></div><p class="since">Since 2.4</p></div></div><div class="refsect1" lang="en"><a name="id3167788"></a><h2>Signal Details</h2><div class="refsect2" lang="en"><a name="id3167798"></a><h3><a name="GtkAccelMap-changed"></a>The <code class="literal">"changed"</code> signal</h3><a class="indexterm" name="id3167814"></a><pre class="programlisting">void user_function (<a class="link" href="gtk-Accelerator-Maps.html#GtkAccelMap">GtkAccelMap</a> *object, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *accel_path, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> accel_key, <ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkModifierType">GdkModifierType</a> accel_mods, <ahref="/usr/share/gtk-doc/html/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 tochanged::<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><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td><td> the global accel map object</td><tr><td><p><span class="term"><em class="parameter"><code>accel_path</code></em> :</span></p></td><td> the path of the accelerator that changed</td></tr><tr><td><p><span class="term"><em class="parameter"><code>accel_key</code></em> :</span></p></td><td> the key value for the new accelerator</td></tr><tr><td><p><span class="term"><em class="parameter"><code>accel_mods</code></em> :</span></p></td><td> the modifier mask for the new accelerator</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div><p>Since 2.4</p></div></div><div class="refsect1" lang="en"><a name="id3167966"></a><div class="refsect2" lang="en"><a name="id3167967"></a></div><hr><div class="refsect2" lang="en"><a name="id3167968"></a></div></div></div></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -