📄 gtkrecentchooser.html
字号:
</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4426967"></a><h3><a name="gtk-recent-chooser-get-limit"></a>gtk_recent_chooser_get_limit ()</h3><a class="indexterm" name="id4426983"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> gtk_recent_chooser_get_limit (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser);</pre><p>Gets the number of items returned by <a class="link" href="GtkRecentChooser.html#gtk-recent-chooser-get-items"><code class="function">gtk_recent_chooser_get_items()</code></a>and <a class="link" href="GtkRecentChooser.html#gtk-recent-chooser-get-uris"><code class="function">gtk_recent_chooser_get_uris()</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>chooser</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> A positive integer, or -1 meaning that all items are returned.</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4427083"></a><h3><a name="gtk-recent-chooser-set-show-tips"></a>gtk_recent_chooser_set_show_tips ()</h3><a class="indexterm" name="id4427099"></a><pre class="programlisting">void gtk_recent_chooser_set_show_tips (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> show_tips);</pre><p>Sets whether to show a tooltips containing the full path of eachrecently used resource in a <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a> widget.</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>chooser</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>show_tips</code></em> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if tooltips should be shown</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4427206"></a><h3><a name="gtk-recent-chooser-get-show-tips"></a>gtk_recent_chooser_get_show_tips ()</h3><a class="indexterm" name="id4427222"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_recent_chooser_get_show_tips (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser);</pre><p>Gets whether <em class="parameter"><code>chooser</code></em> should display tooltips containing the full pathof a recently user 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>chooser</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the recent chooser should show tooltips, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4427326"></a><h3><a name="gtk-recent-chooser-set-show-numbers"></a>gtk_recent_chooser_set_show_numbers ()</h3><a class="indexterm" name="id4427344"></a><a class="indexterm" name="id4427352"></a><pre class="programlisting">void gtk_recent_chooser_set_show_numbers (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> show_numbers);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_recent_chooser_set_show_numbers</code> has been deprecated since version 2.12 and should not be used in newly-written code. Use <a class="link" href="GtkRecentChooserMenu.html#gtk-recent-chooser-menu-set-show-numbers"><code class="function">gtk_recent_chooser_menu_set_show_numbers()</code></a> instead.</p></div><p>Whether to show recently used resources prepended by a unique number.</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>chooser</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>show_numbers</code></em> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to show numbers, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4427484"></a><h3><a name="gtk-recent-chooser-get-show-numbers"></a>gtk_recent_chooser_get_show_numbers ()</h3><a class="indexterm" name="id4427502"></a><a class="indexterm" name="id4427510"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_recent_chooser_get_show_numbers (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_recent_chooser_get_show_numbers</code> has been deprecated since version 2.12 and should not be used in newly-written code. use <a class="link" href="GtkRecentChooserMenu.html#gtk-recent-chooser-menu-get-show-numbers"><code class="function">gtk_recent_chooser_menu_get_show_numbers()</code></a> instead.</p></div><p>Returns whether <em class="parameter"><code>chooser</code></em> should display recently used resourcesprepended by a unique number.</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>chooser</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the recent chooser should show display numbers, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4427638"></a><h3><a name="GtkRecentSortType"></a>enum GtkRecentSortType</h3><a class="indexterm" name="id4427651"></a><pre class="programlisting">typedef enum{ GTK_RECENT_SORT_NONE = 0, GTK_RECENT_SORT_MRU, GTK_RECENT_SORT_LRU, GTK_RECENT_SORT_CUSTOM} GtkRecentSortType;</pre><p>Used to specify the sorting method to be applyed to the recentlyused resource list.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a name="GTK-RECENT-SORT-NONE:CAPS"></a><code class="literal">GTK_RECENT_SORT_NONE</code></span></p></td><td> Do not sort the returned list of recently used resources.</td></tr><tr><td><p><span class="term"><a name="GTK-RECENT-SORT-MRU:CAPS"></a><code class="literal">GTK_RECENT_SORT_MRU</code></span></p></td><td> Sort the returned list with the most recently used items first.</td></tr><tr><td><p><span class="term"><a name="GTK-RECENT-SORT-LRU:CAPS"></a><code class="literal">GTK_RECENT_SORT_LRU</code></span></p></td><td> Sort the returned list with the least recently used items first.</td></tr><tr><td><p><span class="term"><a name="GTK-RECENT-SORT-CUSTOM:CAPS"></a><code class="literal">GTK_RECENT_SORT_CUSTOM</code></span></p></td><td> Sort the returned list using a custom sorting function passed using <code class="function">gtk_recent_manager_set_sort_func()</code>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4427784"></a><h3><a name="gtk-recent-chooser-set-sort-type"></a>gtk_recent_chooser_set_sort_type ()</h3><a class="indexterm" name="id4427800"></a><pre class="programlisting">void gtk_recent_chooser_set_sort_type (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser, <a class="link" href="GtkRecentChooser.html#GtkRecentSortType">GtkRecentSortType</a> sort_type);</pre><p>Changes the sorting order of the recently used resources list displayed by<em class="parameter"><code>chooser</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>chooser</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></td></tr><tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -