📄 gtkrecentfilter.html
字号:
(<a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter">GtkRecentFilter</a> *filter);</pre><p>Adds a rule allowing image files in the formats supportedby GdkPixbuf.</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>filter</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter"><span class="type">GtkRecentFilter</span></a></td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4444907"></a><h3><a name="gtk-recent-filter-add-application"></a>gtk_recent_filter_add_application ()</h3><a class="indexterm" name="id4444924"></a><pre class="programlisting">void gtk_recent_filter_add_application (<a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter">GtkRecentFilter</a> *filter, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *application);</pre><p>Adds a rule that allows resources based on the name of the applicationthat has registered them.</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>filter</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter"><span class="type">GtkRecentFilter</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td><td> an application name</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4445012"></a><h3><a name="gtk-recent-filter-add-group"></a>gtk_recent_filter_add_group ()</h3><a class="indexterm" name="id4445028"></a><pre class="programlisting">void gtk_recent_filter_add_group (<a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter">GtkRecentFilter</a> *filter, const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *group);</pre><p>Adds a rule that allows resources based on the name of the groupto which they belong</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>filter</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter"><span class="type">GtkRecentFilter</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td><td> a group name</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4445116"></a><h3><a name="gtk-recent-filter-add-age"></a>gtk_recent_filter_add_age ()</h3><a class="indexterm" name="id4445132"></a><pre class="programlisting">void gtk_recent_filter_add_age (<a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter">GtkRecentFilter</a> *filter, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> days);</pre><p>Adds a rule that allows resources based on their age - that is, the numberof days elapsed since they were last modified.</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>filter</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter"><span class="type">GtkRecentFilter</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>days</code></em> :</span></p></td><td> number of days</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4445221"></a><h3><a name="gtk-recent-filter-add-custom"></a>gtk_recent_filter_add_custom ()</h3><a class="indexterm" name="id4445237"></a><pre class="programlisting">void gtk_recent_filter_add_custom (<a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter">GtkRecentFilter</a> *filter, <a class="link" href="GtkRecentFilter.html#GtkRecentFilterFlags">GtkRecentFilterFlags</a> needed, <a class="link" href="GtkRecentFilter.html#GtkRecentFilterFunc">GtkRecentFilterFunc</a> func, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> data, <ahref="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify">GDestroyNotify</a> data_destroy);</pre><p>Adds a rule to a filter that allows resources based on a custom callbackfunction. The bitfield <em class="parameter"><code>needed</code></em> which is passed in provides informationabout what sorts of information that the filter function needs;this allows GTK+ to avoid retrieving expensive information whenit isn't needed by the filter.</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>filter</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter"><span class="type">GtkRecentFilter</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>needed</code></em> :</span></p></td><td> bitfield of flags indicating the information that the custom filter function needs.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td><td> callback function; if the function returns <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then the file will be displayed.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td><td> data to pass to <em class="parameter"><code>func</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>data_destroy</code></em> :</span></p></td><td> function to call to free <em class="parameter"><code>data</code></em> when it is no longer needed.</td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4445427"></a><h3><a name="gtk-recent-filter-get-needed"></a>gtk_recent_filter_get_needed ()</h3><a class="indexterm" name="id4445443"></a><pre class="programlisting"><a class="link" href="GtkRecentFilter.html#GtkRecentFilterFlags">GtkRecentFilterFlags</a> gtk_recent_filter_get_needed (<a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter">GtkRecentFilter</a> *filter);</pre><p>Gets the fields that need to be filled in for the structurepassed to <a class="link" href="GtkRecentFilter.html#gtk-recent-filter-filter"><code class="function">gtk_recent_filter_filter()</code></a></p><p>This function will not typically be used by applications; itis intended principally for use in the implementation of<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></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>filter</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter"><span class="type">GtkRecentFilter</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> bitfield of flags indicating needed fields when calling <a class="link" href="GtkRecentFilter.html#gtk-recent-filter-filter"><code class="function">gtk_recent_filter_filter()</code></a></td></tr></tbody></table></div><p class="since">Since 2.10</p></div><hr><div class="refsect2" lang="en"><a name="id4445556"></a><h3><a name="gtk-recent-filter-filter"></a>gtk_recent_filter_filter ()</h3><a class="indexterm" name="id4445572"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> gtk_recent_filter_filter (<a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter">GtkRecentFilter</a> *filter, const <a class="link" href="GtkRecentFilter.html#GtkRecentFilterInfo">GtkRecentFilterInfo</a> *filter_info);</pre><p>Tests whether a file should be displayed according to <em class="parameter"><code>filter</code></em>.The <a class="link" href="GtkRecentFilter.html#GtkRecentFilterInfo"><span class="type">GtkRecentFilterInfo</span></a> structure <em class="parameter"><code>filter_info</code></em> should includethe fields returned from <a class="link" href="GtkRecentFilter.html#gtk-recent-filter-get-needed"><code class="function">gtk_recent_filter_get_needed()</code></a>.</p><p>This function will not typically be used by applications; itis intended principally for use in the implementation of<a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></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>filter</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html" title="GtkRecentFilter"><span class="type">GtkRecentFilter</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>filter_info</code></em> :</span></p></td><td> a <a class="link" href="GtkRecentFilter.html#GtkRecentFilterInfo"><span class="type">GtkRecentFilterInfo</span></a> structure containing information about a recently used resource</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 file should be displayed</td></tr></tbody></table></div><p class="since">Since 2.10</p></div></div><div class="refsect1" lang="en"><a name="id4445736"></a><h2>See Also</h2><p><a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser"><span class="type">GtkRecentChooser</span></a></p></div><div class="refsect1" lang="en"><a name="id4445754"></a><div class="refsect2" lang="en"><a name="id4445756"></a></div><hr><div class="refsect2" lang="en"><a name="id4445757"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -