libgnome-gnome-config.html

来自「最新gtk中文资料集」· HTML 代码 · 共 1,690 行 · 第 1/5 页

HTML
1,690
字号
<h3 class="title">Warning</h3><p><code class="literal">gnome_config_get_translated_string</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves the value of a configuration item as a string appropriate for thecurrent language. The returned value should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when nolonger needed.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to an item.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The value of the configuration item.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801254"></a><h3><a name="gnome-config-get-translated-string-with-default"></a>gnome_config_get_translated_string_with_default()</h3><a class="indexterm" name="id2801271"></a><pre class="programlisting">#define     gnome_config_get_translated_string_with_default(path,def)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_get_translated_string_with_default</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves the value of a configuration item as a string appropriate for thecurrent language. The returned value should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when nolonger needed.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to an item.</td></tr><tr><td><span class="term"><em class="parameter"><code>def</code></em>&#160;:</span></td><td> A pointer to a flag that will be set if the default value for the itemis returned.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The value of the configuration item or <em class="parameter"><code>def</code></em> if the configurationitem does not exist.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801367"></a><h3><a name="gnome-config-private-get-string"></a>gnome_config_private_get_string()</h3><a class="indexterm" name="id2801383"></a><pre class="programlisting">#define     gnome_config_private_get_string(path)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_private_get_string</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves the value of a configuration item from the user's privateconfiguration directory as a string. This value should be freed with<ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when no longer needed.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to an item in the user-private namespace.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The value of the configuration item as a string.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801458"></a><h3><a name="gnome-config-private-get-string-with-default"></a>gnome_config_private_get_string_with_default()</h3><a class="indexterm" name="id2801474"></a><pre class="programlisting">#define     gnome_config_private_get_string_with_default(path,def)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_private_get_string_with_default</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves the value of a configuration item from the user's privateconfiguration directory as a string. This value should be freed with<ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when no longer needed.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to an item in the user-private namespace.</td></tr><tr><td><span class="term"><em class="parameter"><code>def</code></em>&#160;:</span></td><td> A pointer to a flag that will be set if the default value for the itemis returned.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The value of the configuration item as a string, or <em class="parameter"><code>def</code></em> if theconfiguration key does not exist.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801571"></a><h3><a name="gnome-config-private-get-translated-string"></a>gnome_config_private_get_translated_string()</h3><a class="indexterm" name="id2801588"></a><pre class="programlisting">#define     gnome_config_private_get_translated_string(path)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_private_get_translated_string</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves the value of a configuration item as a string appropriate for thecurrent language. The returned value should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when nolonger needed.  The item is retrieved from the user's private configurationstorage area.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to an item in the user-private namespace.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The value of the configuration item.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801664"></a><h3><a name="gnome-config-private-get-translated-string-with-default"></a>gnome_config_private_get_translated_string_with_default()</h3><a class="indexterm" name="id2801680"></a><pre class="programlisting">#define     gnome_config_private_get_translated_string_with_default(path,def)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_private_get_translated_string_with_default</code> is deprecated and should not be used in newly-written code.</p></div><p>Retrieves the value of a configuration item as a string appropriate for thecurrent language. The returned value should be freed with <ahref="/usr/share/gtk-doc/html/glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> when nolonger needed.  The item is retrieved from the user's private configurationstorage area.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to an item in the user-private namespace.</td></tr><tr><td><span class="term"><em class="parameter"><code>def</code></em>&#160;:</span></td><td> A pointer to a flag that will be set if the default value for the itemis returned.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> The value of the configuration item or <em class="parameter"><code>def</code></em> if the configurationitem does not exist.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801779"></a><h3><a name="gnome-config-set-string"></a>gnome_config_set_string()</h3><a class="indexterm" name="id2801794"></a><pre class="programlisting">#define     gnome_config_set_string(path,new_value)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_set_string</code> is deprecated and should not be used in newly-written code.</p></div><p>Stores the string value <em class="parameter"><code>new_value</code></em> in the file/section/keydefined by the <em class="parameter"><code>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>path</code></em>&#160;:</span></td><td> A gnome configuration path to a key.</td></tr><tr><td><span class="term"><em class="parameter"><code>new_value</code></em>&#160;:</span></td><td> A string value to set.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801871"></a><h3><a name="gnome-config-set-translated-string"></a>gnome_config_set_translated_string()</h3><a class="indexterm" name="id2801887"></a><pre class="programlisting">#define     gnome_config_set_translated_string(path,value)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_set_translated_string</code> is deprecated and should not be used in newly-written code.</p></div><p>Stores the string value <em class="parameter"><code>value</code></em> in the file/section/key definedby the <em class="parameter"><code>path</code></em> on the proper section for the current language set byby the user.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to a key.</td></tr><tr><td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td><td> A string value to set.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2801965"></a><h3><a name="gnome-config-private-set-string"></a>gnome_config_private_set_string()</h3><a class="indexterm" name="id2801981"></a><pre class="programlisting">#define     gnome_config_private_set_string(path,new_value)</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gnome_config_private_set_string</code> is deprecated and should not be used in newly-written code.</p></div><p>Stores the string value <em class="parameter"><code>new_value</code></em> in the file/section/keydefined by the <em class="parameter"><code>path</code></em>. The configuration value is stored in the user'sprivate storage area.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td><td> A gnome configuration path to a key.</td></tr><tr><td><span class="term"><em class="parameter"><code>new_value</code></em>&#160;:</span></td><td> A string value to set.</td></tr></tbody></table></div></div><hr>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?