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

📄 gtkrecentchooser.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<td><p><span class="term"><em class="parameter"><code>sort_type</code></em>&#160;:</span></p></td><td> sort order that the chooser should use</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4427895"></a><h3><a name="gtk-recent-chooser-get-sort-type"></a>gtk_recent_chooser_get_sort_type ()</h3><a class="indexterm" name="id4427911"></a><pre class="programlisting"><a class="link" href="GtkRecentChooser.html#GtkRecentSortType">GtkRecentSortType</a>   gtk_recent_chooser_get_sort_type    (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser);</pre><p>Gets the value set by <a class="link" href="GtkRecentChooser.html#gtk-recent-chooser-set-sort-type"><code class="function">gtk_recent_chooser_set_sort_type()</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>&#160;:</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>&#160;:</span></p></td><td> the sorting order of the <em class="parameter"><code>chooser</code></em>.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4428004"></a><h3><a name="GtkRecentSortFunc"></a>GtkRecentSortFunc ()</h3><a class="indexterm" name="id4428018"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                (*GtkRecentSortFunc)                (<a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *a,                                                         <a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a> *b,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data);</pre><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>a</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>b</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4428117"></a><h3><a name="gtk-recent-chooser-set-sort-func"></a>gtk_recent_chooser_set_sort_func ()</h3><a class="indexterm" name="id4428133"></a><pre class="programlisting">void                gtk_recent_chooser_set_sort_func    (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser,                                                         <a class="link" href="GtkRecentChooser.html#GtkRecentSortFunc">GtkRecentSortFunc</a> sort_func,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> sort_data,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify">GDestroyNotify</a> data_destroy);</pre><p>Sets the comparison function used when sorting to be <em class="parameter"><code>sort_func</code></em>.  Ifthe <em class="parameter"><code>chooser</code></em> has the sort type set to <a class="link" href="GtkRecentChooser.html#GTK-RECENT-SORT-CUSTOM:CAPS"><span class="type">GTK_RECENT_SORT_CUSTOM</span></a> thenthe chooser will sort using this function.</p><p>To the comparison function will be passed two <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a> structs and<em class="parameter"><code>sort_data</code></em>;  <em class="parameter"><code>sort_func</code></em> should return a positive integer if the firstitem comes before the second, zero if the two items are equal anda negative integer if the first item comes after the second.</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>&#160;:</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>sort_func</code></em>&#160;:</span></p></td><td> the comparison function</td></tr><tr><td><p><span class="term"><em class="parameter"><code>sort_data</code></em>&#160;:</span></p></td><td> user data to pass to <em class="parameter"><code>sort_func</code></em>, 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"><em class="parameter"><code>data_destroy</code></em>&#160;:</span></p></td><td> destroy notifier for <em class="parameter"><code>sort_data</code></em>, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4428349"></a><h3><a name="gtk-recent-chooser-set-current-uri"></a>gtk_recent_chooser_set_current_uri ()</h3><a class="indexterm" name="id4428365"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_recent_chooser_set_current_uri  (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *uri,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError">GError</a> **error);</pre><p>Sets <em class="parameter"><code>uri</code></em> as the current URI for <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>&#160;:</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>uri</code></em>&#160;:</span></p></td><td> a URI</td></tr><tr><td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td><td> 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> <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the URI was found.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4428524"></a><h3><a name="gtk-recent-chooser-get-current-uri"></a>gtk_recent_chooser_get_current_uri ()</h3><a class="indexterm" name="id4428541"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a>*              gtk_recent_chooser_get_current_uri  (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser);</pre><p>Gets the URI currently selected 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>&#160;:</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>&#160;:</span></p></td><td> a newly allocated string holding a URI.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4428623"></a><h3><a name="gtk-recent-chooser-get-current-item"></a>gtk_recent_chooser_get_current_item ()</h3><a class="indexterm" name="id4428639"></a><pre class="programlisting"><a class="link" href="GtkRecentManager.html#GtkRecentInfo">GtkRecentInfo</a>*      gtk_recent_chooser_get_current_item (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser);</pre><p>Gets the <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a> currently selected 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>&#160;:</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>&#160;:</span></p></td><td> a <a class="link" href="GtkRecentManager.html#GtkRecentInfo"><span class="type">GtkRecentInfo</span></a>.  Use <a class="link" href="GtkRecentManager.html#gtk-recent-info-unref"><code class="function">gtk_recent_info_unref()</code></a> when  when you have finished using it.</td></tr></tbody></table></div><p class="since">Since  2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4428749"></a><h3><a name="gtk-recent-chooser-select-uri"></a>gtk_recent_chooser_select_uri ()</h3><a class="indexterm" name="id4428765"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_recent_chooser_select_uri       (<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a> *chooser,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gc

⌨️ 快捷键说明

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