⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gappinfo.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<td> a <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>content_type</code></em>&#160;:</span></p></td><td> a string.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></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> on error.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3217287"></a><h3><a name="g-app-info-get-all"></a>g_app_info_get_all ()</h3><a class="indexterm" name="id3217297"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>*              g_app_info_get_all                  (void);</pre><p>Gets a list of all of the applications currently registered on this system.</p><p>For desktop files, this includes applications that have <code class="literal">NoDisplay=true</code> set or are excluded from display by means of <code class="literal">OnlyShowIn</code> or<code class="literal">NotShowIn</code>. See <a class="link" href="GAppInfo.html#g-app-info-should-show"><code class="function">g_app_info_should_show()</code></a>.The returned list does not include applications which havethe <code class="literal">Hidden</code> key set.</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>&#160;:</span></p></td><td> a newly allocated <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of references to <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a>s.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3217384"></a><h3><a name="g-app-info-get-all-for-type"></a>g_app_info_get_all_for_type ()</h3><a class="indexterm" name="id3217395"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a>*              g_app_info_get_all_for_type         (const char *content_type);</pre><p>Gets a list of all <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> s for a given content type.</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>content_type</code></em>&#160;:</span></p></td><td> the content type to find a <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> for</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> s for given <em class="parameter"><code>content_type</code></em>   or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3217488"></a><h3><a name="g-app-info-get-default-for-type"></a>g_app_info_get_default_for_type ()</h3><a class="indexterm" name="id3217500"></a><pre class="programlisting"><a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>*           g_app_info_get_default_for_type     (const char *content_type,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> must_support_uris);</pre><p>Gets the <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> that correspond to a given content type.</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>content_type</code></em>&#160;:</span></p></td><td> the content type to find a <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> for</td></tr><tr><td><p><span class="term"><em class="parameter"><code>must_support_uris</code></em>&#160;:</span></p></td><td> if <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> is expected to    support URIs</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> for given <em class="parameter"><code>content_type</code></em> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3217623"></a><h3><a name="g-app-info-get-default-for-uri-scheme"></a>g_app_info_get_default_for_uri_scheme ()</h3><a class="indexterm" name="id3217636"></a><pre class="programlisting"><a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>*           g_app_info_get_default_for_uri_scheme                                                        (const char *uri_scheme);</pre><p>Gets the default application for launching applications using this URI scheme. A URI scheme is the initial part of the URI, up to but not including the ':', e.g. "http", "ftp" or "sip".</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>uri_scheme</code></em>&#160;:</span></p></td><td> a string containing a URI scheme.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> for given <em class="parameter"><code>uri_scheme</code></em> or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> on error.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3217715"></a><h3><a name="g-app-info-launch-default-for-uri"></a>g_app_info_launch_default_for_uri ()</h3><a class="indexterm" name="id3217728"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            g_app_info_launch_default_for_uri   (const char *uri,                                                         <a class="link" href="GAppInfo.html#GAppLaunchContext">GAppLaunchContext</a> *launch_context,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Utility function that launches the default application registered to handle the specified uri. Synchronous I/Ois done on the uri to detext the type of the file ifrequired.</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>uri</code></em>&#160;:</span></p></td><td> the uri to show</td></tr><tr><td><p><span class="term"><em class="parameter"><code>launch_context</code></em>&#160;:</span></p></td><td> an optional <a class="link" href="GAppInfo.html#GAppLaunchContext"><span class="type">GAppLaunchContext</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></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> on error.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3217852"></a><h3><a name="g-app-launch-context-get-display"></a>g_app_launch_context_get_display ()</h3><a class="indexterm" name="id3217864"></a><pre class="programlisting">char*               g_app_launch_context_get_display    (<a class="link" href="GAppInfo.html#GAppLaunchContext">GAppLaunchContext</a> *context,                                                         <a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a> *info,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a> *files);</pre><p>Gets the display string for the display. This is used to ensure newapplications are started on the same display as the launching application.</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>context</code></em>&#160;:</span></p></td><td> a <a class="link" href="GAppInfo.html#GAppLaunchContext"><span class="type">GAppLaunchContext</span></a>.  </td></tr><tr><td><p><span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a>. </td></tr><tr><td><p><span class="term"><em class="parameter"><code>files</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of files.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a display string for the display.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3217979"></a><h3><a name="g-app-launch-context-get-startup-notify-id"></a>g_app_launch_context_get_startup_notify_id ()</h3><a class="indexterm" name="id3217993"></a><pre class="programlisting">char*               g_app_launch_context_get_startup_notify_id                                                        (<a class="link" href="GAppInfo.html#GAppLaunchContext">GAppLaunchContext</a> *context,                                                         <a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a> *info,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList">GList</a> *files);</pre><p>Initiates startup notification for the applicaiont and returns theDESKTOP_STARTUP_ID for the launched operation, if supported.</p><p>Startup notification IDs are defined in the FreeDesktop.Org Startup Notifications standard, at <a class="ulink" href="http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt" target="_top">http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt</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>context</code></em>&#160;:</span></p></td><td> a <a class="link" href="GAppInfo.html#GAppLaun

⌨️ 快捷键说明

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