📄 libgnome-gnome-help.html
字号:
href="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to default to empty string.(app_id) of the specified <em class="parameter"><code>program</code></em>.</td></tr><tr><td><span class="term"><em class="parameter"><code>file_name</code></em> :</span></td><td> The name of the help document to display.</td></tr><tr><td><span class="term"><em class="parameter"><code>link_id</code></em> :</span></td><td> Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. If set, refers to an anchor or section id within therequested document.</td></tr><tr><td><span class="term"><em class="parameter"><code>envp</code></em> :</span></td><td> child's environment, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to inherit parent's.</td></tr><tr><td><span class="term"><em class="parameter"><code>error</code></em> :</span></td><td> A <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> instance that will hold the specifics of any error whichoccurs during processing, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise (in which case <em class="parameter"><code>error</code></em> willcontain the actual error).</td></tr></tbody></table></div><p>Since 2.2</p></div><hr><div class="refsect2" lang="en"><a name="id2816188"></a><h3><a name="gnome-help-display-desktop"></a>gnome_help_display_desktop ()</h3><a class="indexterm" name="id2816202"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gnome_help_display_desktop (<a href="libgnome-gnome-program.html#GnomeProgram">GnomeProgram</a> *program, const char *doc_id, const char *file_name, const char *link_id, <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Displays the GNOME system help file specified by <em class="parameter"><code>file_name</code></em> at location<em class="parameter"><code>link_id</code></em> in the preferred help browser of the user. This is done by creatinga "ghelp" URI, by looking for <em class="parameter"><code>file_name</code></em> in the system help domain(<a href="libgnome-gnome-program.html#GNOME-FILE-DOMAIN-HELP:CAPS"><span class="type">GNOME_FILE_DOMAIN_HELP</span></a>) and it's app_id. This domain is determined whenthe library is compiled. If a matching file cannot be found, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> isreturned and <em class="parameter"><code>error</code></em> is set.</p><p>Please note that this only displays system help. To display help filesfor an application, you will want to use <a href="libgnome-gnome-help.html#gnome-help-display"><code class="function">gnome_help_display()</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>program</code></em> :</span></td><td> The current application object, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> for the default one.</td></tr><tr><td><span class="term"><em class="parameter"><code>doc_id</code></em> :</span></td><td> The name of the help file relative to the system's help domain(<a href="libgnome-gnome-program.html#GNOME-FILE-DOMAIN-HELP:CAPS"><span class="type">GNOME_FILE_DOMAIN_HELP</span></a>).</td></tr><tr><td><span class="term"><em class="parameter"><code>file_name</code></em> :</span></td><td> The name of the help document to display.</td></tr><tr><td><span class="term"><em class="parameter"><code>link_id</code></em> :</span></td><td> Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. If set, refers to an anchor or section id within therequested document.</td></tr><tr><td><span class="term"><em class="parameter"><code>error</code></em> :</span></td><td> A <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> instance that will hold the specifics of any error whichoccurs during processing, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise (in which case <em class="parameter"><code>error</code></em> willcontain the actual error).</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2816492"></a><h3><a name="gnome-help-display-desktop-with-env"></a>gnome_help_display_desktop_with_env ()</h3><a class="indexterm" name="id2816508"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gnome_help_display_desktop_with_env (<a href="libgnome-gnome-program.html#GnomeProgram">GnomeProgram</a> *program, const char *doc_id, const char *file_name, const char *link_id, char **envp, <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Like <a href="libgnome-gnome-help.html#gnome-help-display-desktop"><code class="function">gnome_help_display_desktop()</code></a>, but the the contents of <em class="parameter"><code>envp</code></em>will become the url viewer's environment rather than inheritingfrom the parents environment.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>program</code></em> :</span></td><td> The current application object, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> for the default one.</td></tr><tr><td><span class="term"><em class="parameter"><code>doc_id</code></em> :</span></td><td> The name of the help file relative to the system's help domain(<a href="libgnome-gnome-program.html#GNOME-FILE-DOMAIN-HELP:CAPS"><span class="type">GNOME_FILE_DOMAIN_HELP</span></a>).</td></tr><tr><td><span class="term"><em class="parameter"><code>file_name</code></em> :</span></td><td> The name of the help document to display.</td></tr><tr><td><span class="term"><em class="parameter"><code>link_id</code></em> :</span></td><td> Can be <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a>. If set, refers to an anchor or section id within therequested document.</td></tr><tr><td><span class="term"><em class="parameter"><code>envp</code></em> :</span></td><td> child's environment, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to inherit parent's.</td></tr><tr><td><span class="term"><em class="parameter"><code>error</code></em> :</span></td><td> A <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> instance that will hold the specifics of any error whichoccurs during processing, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise (in which case <em class="parameter"><code>error</code></em> willcontain the actual error).</td></tr></tbody></table></div><p>Since 2.2</p></div><hr><div class="refsect2" lang="en"><a name="id2816789"></a><h3><a name="gnome-help-display-uri"></a>gnome_help_display_uri ()</h3><a class="indexterm" name="id2816802"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gnome_help_display_uri (const char *help_uri, <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Displays <em class="parameter"><code>help_uri</code></em> in the user's preferred viewer. You should never need tocall this function directly in code, since it is just a wrapper for<a href="libgnome-gnome-url.html#gnome-url-show"><code class="function">gnome_url_show()</code></a> and consequently the viewer used to display the resultsdepends upon the scheme of the URI (so it is not strictly a help-onlyfunction).</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>help_uri</code></em> :</span></td><td> The URI to display.</td></tr><tr><td><span class="term"><em class="parameter"><code>error</code></em> :</span></td><td> A <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> instance that will hold the specifics of any error whichoccurs during processing, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise (in which case <em class="parameter"><code>error</code></em> willcontain the actual error).</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2816952"></a><h3><a name="gnome-help-display-uri-with-env"></a>gnome_help_display_uri_with_env ()</h3><a class="indexterm" name="id2816968"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gnome_help_display_uri_with_env (const char *help_uri, char **envp, <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Like <a href="libgnome-gnome-help.html#gnome-help-display-uri"><code class="function">gnome_help_display_uri()</code></a>, but the the contents of <em class="parameter"><code>envp</code></em>will become the help viewer's environment rather than inheritingfrom the parents environment.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>help_uri</code></em> :</span></td><td> The URI to display.</td></tr><tr><td><span class="term"><em class="parameter"><code>envp</code></em> :</span></td><td> child's environment, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to inherit parent's.</td></tr><tr><td><span class="term"><em class="parameter"><code>error</code></em> :</span></td><td> A <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> instance that will hold the specifics of any error whichoccurs during processing, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise (in which case <em class="parameter"><code>error</code></em> willcontain the actual error).</td></tr></tbody></table></div><p>Since 2.2</p></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -