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

📄 gtkrecentmanager.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
Gets the list of recently used resources.</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>manager</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a list of newly allocated <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a> objects. Use  <a class="link" href="GtkRecentManager.html#gtk-recent-info-unref"><code class="function">gtk_recent_info_unref()</code></a> on each item inside the list, and then  free the list itself using <ahref="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4413909"></a><h3><a name="gtk-recent-manager-purge-items"></a>gtk_recent_manager_purge_items ()</h3><a class="indexterm" name="id4413925"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_recent_manager_purge_items      (<a class="link" href="GtkRecentManager.html" title="GtkRecentManager">GtkRecentManager</a> *manager,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Purges every item from the recently used resources list.</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>manager</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html" title="GtkRecentManager"><span class="type">GtkRecentManager</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> a return location for a <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the number of items that have been removed from the  recently used resources list.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4414043"></a><h3><a name="gtk-recent-info-ref"></a>gtk_recent_info_ref ()</h3><a class="indexterm" name="id4414059"></a><pre class="programlisting"><a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a>*      gtk_recent_info_ref                 (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *info);</pre><p>Increases the reference count of <em class="parameter"><code>recent_info</code></em> by one.</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>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the recent info object with its reference count increased  by one.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4414142"></a><h3><a name="gtk-recent-info-unref"></a>gtk_recent_info_unref ()</h3><a class="indexterm" name="id4414157"></a><pre class="programlisting">void                gtk_recent_info_unref               (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *info);</pre><p>Decreases the reference count of <em class="parameter"><code>info</code></em> by one.  If the referencecount reaches zero, <em class="parameter"><code>info</code></em> is deallocated, and the memory freed.</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>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4414236"></a><h3><a name="gtk-recent-info-get-uri"></a>gtk_recent_info_get_uri ()</h3><a class="indexterm" name="id4414252"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_recent_info_get_uri             (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *info);</pre><p>Gets the URI of the resource.</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>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the URI of the resource.  The returned string is  owned by the recent manager, and should not be freed.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4414331"></a><h3><a name="gtk-recent-info-get-display-name"></a>gtk_recent_info_get_display_name ()</h3><a class="indexterm" name="id4414347"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_recent_info_get_display_name    (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *info);</pre><p>Gets the name of the resource.  If none has been defined, the basenameof the resource is obtained.</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>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the display name of the resource.  The returned string  is owned by the recent manager, and should not be freed.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4414427"></a><h3><a name="gtk-recent-info-get-description"></a>gtk_recent_info_get_description ()</h3><a class="indexterm" name="id4414443"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_recent_info_get_description     (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *info);</pre><p>Gets the (short) description of the resource.</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>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the description of the resource.  The returned string  is owned by the recent manager, and should not be freed.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4414523"></a><h3><a name="gtk-recent-info-get-mime-type"></a>gtk_recent_info_get_mime_type ()</h3><a class="indexterm" name="id4414539"></a><pre class="programlisting">const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*        gtk_recent_info_get_mime_type       (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *info);</pre><p>Gets the MIME type of the resource.</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>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the MIME type of the resource.  The returned string  is owned by the recent manager, and should not be freed.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4414618"></a><h3><a name="gtk-recent-info-get-added"></a>gtk_recent_info_get_added ()</h3><a class="indexterm" name="id4414634"></a><pre class="programlisting">time_t              gtk_recent_info_get_added           (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *info);</pre><p>Gets the timestamp (seconds from system's Epoch) when the resourcewas added to the recently used resources list.</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>info</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the number of seconds elapsed from

⌨️ 快捷键说明

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