Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 9411cff4bc6d4e61b29ae81cd24665af > files > 638

gtkmm2.4-doc-2.12.7-1mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>gtkmm 2.4: Gtk::RecentFilter Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
    <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
  <a class="qindex" href="../../index.html">Main Page</a> &nbsp;
  <a href="group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html"> Namespaces</a> &nbsp;
  <a href="../../tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>
<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1RecentFilter.html">RecentFilter</a></div>
<h1>Gtk::RecentFilter Class Reference<br>
<small>
[<a class="el" href="group__RecentFiles.html">RecentFiles</a>]</small>
</h1><!-- doxytag: class="Gtk::RecentFilter" --><!-- doxytag: inherits="Gtk::Object" -->Inheritance diagram for Gtk::RecentFilter:<p><center><img src="classGtk_1_1RecentFilter__inherit__graph.png" border="0" usemap="#Gtk_1_1RecentFilter__inherit__map" alt="Inheritance graph"></center>
<map name="Gtk_1_1RecentFilter__inherit__map">
<area href="classGtk_1_1Object.html" shape="rect" coords="23,238,113,265" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Object.html" shape="rect" coords="21,161,115,188" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html" shape="rect" coords="5,84,131,110" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classsigc_1_1trackable.html" shape="rect" coords="12,6,124,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1RecentFilter-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="classGtk_1_1RecentFilter.html">RecentFilter</a> can be used to restrict the files being shown in a <a class="el" href="classGtk_1_1RecentChooser.html">RecentChooser</a>. 
<p>
Files can be filtered based on their name (with <a class="el" href="classGtk_1_1RecentFilter.html#e1097e7d1f101a8c432840a415a77c75">add_pattern()</a>), on their mime type (with <a class="el" href="classGtk_1_1RecentFilter.html#230612101528ddfa56c9a9edcb5a39ca">add_mime_type()</a>), on the application that has registered them (with <a class="el" href="classGtk_1_1RecentFilter.html#79c9a997495c5972b77149b9696a3a0a">add_application()</a>), or by a custom filter function (with <a class="el" href="classGtk_1_1RecentFilter.html#0baa74334e0b4297e5b1381198c12791">add_custom()</a>).<p>
Filtering by mime type handles aliasing and subclassing of mime types; e.g. a filter for text/plain also matches a file with mime type application/rtf, since application/rtf is a subclass of text/plain. Note that <a class="el" href="classGtk_1_1RecentFilter.html">RecentFilter</a> allows wildcards for the subtype of a mime type, so you can e.g. filter for image/*.<p>
Normally, filters are used by adding them to a <a class="el" href="classGtk_1_1RecentChooser.html">RecentChooser</a>, see <a class="el" href="classGtk_1_1RecentChooser.html#827e5cf870766ca4f2c66cb22b0d4d83">RecentChooser::add_filter()</a>, but it is also possible to manually use a filter on a file with filter().<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000293">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>

<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef sigc::slot&lt; bool,<br>
 const <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a>&amp; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#2a46b4c386c3dbd4eca55197c51195ac">SlotCustom</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For instance, bool on_custom(const Gtk::RecentFilter::Info&amp; filter_info);.  <a href="#2a46b4c386c3dbd4eca55197c51195ac"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#410af2c9fa2270ffa6f67e08625e6fb6">add_age</a> (int days)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a rule that allows resources based on their age - that is, the number of days elapsed since they were last modified.  <a href="#410af2c9fa2270ffa6f67e08625e6fb6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#79c9a997495c5972b77149b9696a3a0a">add_application</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; application)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a rule that allows resources based on the name of the application that has registered them.  <a href="#79c9a997495c5972b77149b9696a3a0a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#0baa74334e0b4297e5b1381198c12791">add_custom</a> (<a class="el" href="group__gtkmmEnums.html#g367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> needed, const <a class="el" href="classGtk_1_1RecentFilter.html#2a46b4c386c3dbd4eca55197c51195ac">SlotCustom</a>&amp; slot)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#1f6013b83391b2e23e6bce1d3ea7ca38">add_group</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; group)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a rule that allows resources based on the name of the group to which they belong.  <a href="#1f6013b83391b2e23e6bce1d3ea7ca38"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#230612101528ddfa56c9a9edcb5a39ca">add_mime_type</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; mime_type)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a rule that allows resources based on their registered MIME type.  <a href="#230612101528ddfa56c9a9edcb5a39ca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#e1097e7d1f101a8c432840a415a77c75">add_pattern</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; pattern)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a rule that allows resources based on a pattern matching their display name.  <a href="#e1097e7d1f101a8c432840a415a77c75"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#8fd8c80a98a20d1fdf49e1f4f701df59">add_pixbuf_formats</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a rule allowing image files in the formats supported by GdkPixbuf.  <a href="#8fd8c80a98a20d1fdf49e1f4f701df59"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#1b63fb994aa6c10b2f7c71c05cb5fb66">get_name</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the human-readable name for the filter.  <a href="#1b63fb994aa6c10b2f7c71c05cb5fb66"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__gtkmmEnums.html#g367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#c28c2738e9f32f9dad8474e17acca1f4">get_needed</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the fields that need to be filled in for the structure passed to gtk_recent_filter_filter().  <a href="#c28c2738e9f32f9dad8474e17acca1f4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GtkRecentFilter*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#9ba32b675238ec8f28d73ac381edf23c">gobj</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GtkObject.  <a href="#9ba32b675238ec8f28d73ac381edf23c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GtkRecentFilter*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#ee1b9930e4348748d8de7c3143c5878b">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GtkObject.  <a href="#ee1b9930e4348748d8de7c3143c5878b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#73339136367c38602f7871ba5517d3d5">RecentFilter</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#57c6905667c9881376891e4d4cb2ff38">set_name</a> (const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the human-readable name of the filter; this is the string that will be displayed in the recently used resources selector user interface if there is a selectable list of filters.  <a href="#57c6905667c9881376891e4d4cb2ff38"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#bdfdd0772778b3a99110bb26ab00b7e3">~RecentFilter</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGtk_1_1RecentFilter.html">Gtk::RecentFilter</a>*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#7c4b917934a0ad8a5ba82790bbf580ba">wrap</a> (GtkRecentFilter* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#7c4b917934a0ad8a5ba82790bbf580ba"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">RecentFilter::Info</a> class is used to pass information about the tested file to filter().  <a href="classGtk_1_1RecentFilter_1_1Info.html#_details">More...</a><br></td></tr>
</table>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="2a46b4c386c3dbd4eca55197c51195ac"></a><!-- doxytag: member="Gtk::RecentFilter::SlotCustom" ref="2a46b4c386c3dbd4eca55197c51195ac" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef sigc::slot&lt;bool, const <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a>&amp;&gt; <a class="el" href="classGtk_1_1RecentFilter.html#2a46b4c386c3dbd4eca55197c51195ac">Gtk::RecentFilter::SlotCustom</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
For instance, bool on_custom(const Gtk::RecentFilter::Info&amp; filter_info);. 
<p>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="bdfdd0772778b3a99110bb26ab00b7e3"></a><!-- doxytag: member="Gtk::RecentFilter::~RecentFilter" ref="bdfdd0772778b3a99110bb26ab00b7e3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gtk::RecentFilter::~RecentFilter           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="73339136367c38602f7871ba5517d3d5"></a><!-- doxytag: member="Gtk::RecentFilter::RecentFilter" ref="73339136367c38602f7871ba5517d3d5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gtk::RecentFilter::RecentFilter           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="410af2c9fa2270ffa6f67e08625e6fb6"></a><!-- doxytag: member="Gtk::RecentFilter::add_age" ref="410af2c9fa2270ffa6f67e08625e6fb6" args="(int days)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::add_age           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>days</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a rule that allows resources based on their age - that is, the number of days elapsed since they were last modified. 
<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000301">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>days</em>&nbsp;</td><td>Number of days. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="79c9a997495c5972b77149b9696a3a0a"></a><!-- doxytag: member="Gtk::RecentFilter::add_application" ref="79c9a997495c5972b77149b9696a3a0a" args="(const Glib::ustring &amp;application)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::add_application           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>application</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a rule that allows resources based on the name of the application that has registered them. 
<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000299">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>application</em>&nbsp;</td><td>An application name. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="0baa74334e0b4297e5b1381198c12791"></a><!-- doxytag: member="Gtk::RecentFilter::add_custom" ref="0baa74334e0b4297e5b1381198c12791" args="(RecentFilterFlags needed, const SlotCustom &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::add_custom           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#g367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a>&nbsp;</td>
          <td class="paramname"> <em>needed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGtk_1_1RecentFilter.html#2a46b4c386c3dbd4eca55197c51195ac">SlotCustom</a>&amp;&nbsp;</td>
          <td class="paramname"> <em>slot</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="1f6013b83391b2e23e6bce1d3ea7ca38"></a><!-- doxytag: member="Gtk::RecentFilter::add_group" ref="1f6013b83391b2e23e6bce1d3ea7ca38" args="(const Glib::ustring &amp;group)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::add_group           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>group</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a rule that allows resources based on the name of the group to which they belong. 
<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000300">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>group</em>&nbsp;</td><td>A group name. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="230612101528ddfa56c9a9edcb5a39ca"></a><!-- doxytag: member="Gtk::RecentFilter::add_mime_type" ref="230612101528ddfa56c9a9edcb5a39ca" args="(const Glib::ustring &amp;mime_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::add_mime_type           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>mime_type</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a rule that allows resources based on their registered MIME type. 
<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000296">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mime_type</em>&nbsp;</td><td>A MIME type. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e1097e7d1f101a8c432840a415a77c75"></a><!-- doxytag: member="Gtk::RecentFilter::add_pattern" ref="e1097e7d1f101a8c432840a415a77c75" args="(const Glib::ustring &amp;pattern)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::add_pattern           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pattern</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a rule that allows resources based on a pattern matching their display name. 
<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000297">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pattern</em>&nbsp;</td><td>A file pattern. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="8fd8c80a98a20d1fdf49e1f4f701df59"></a><!-- doxytag: member="Gtk::RecentFilter::add_pixbuf_formats" ref="8fd8c80a98a20d1fdf49e1f4f701df59" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::add_pixbuf_formats           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a rule allowing image files in the formats supported by GdkPixbuf. 
<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000298">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="1b63fb994aa6c10b2f7c71c05cb5fb66"></a><!-- doxytag: member="Gtk::RecentFilter::get_name" ref="1b63fb994aa6c10b2f7c71c05cb5fb66" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::RecentFilter::get_name           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the human-readable name for the filter. 
<p>
See gtk_recent_filter_set_name(). <dl class="return" compact><dt><b>Returns:</b></dt><dd>The name of the filter, or <code>0</code>. The returned string is owned by the filter object and should not be freed.</dd></dl>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000295">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="c28c2738e9f32f9dad8474e17acca1f4"></a><!-- doxytag: member="Gtk::RecentFilter::get_needed" ref="c28c2738e9f32f9dad8474e17acca1f4" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gtkmmEnums.html#g367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> Gtk::RecentFilter::get_needed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the fields that need to be filled in for the structure passed to gtk_recent_filter_filter(). 
<p>
This function will not typically be used by applications; it is intended principally for use in the implementation of <a class="el" href="classGtk_1_1RecentChooser.html">Gtk::RecentChooser</a>. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Bitfield of flags indicating needed fields when calling gtk_recent_filter_filter()</dd></dl>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000302">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="9ba32b675238ec8f28d73ac381edf23c"></a><!-- doxytag: member="Gtk::RecentFilter::gobj" ref="9ba32b675238ec8f28d73ac381edf23c" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GtkRecentFilter* Gtk::RecentFilter::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GtkObject. 
<p>

<p>
Reimplemented from <a class="el" href="classGtk_1_1Object.html#8ae143fd31a1b55f1df0231231074fe6">Gtk::Object</a>.
</div>
</div><p>
<a class="anchor" name="ee1b9930e4348748d8de7c3143c5878b"></a><!-- doxytag: member="Gtk::RecentFilter::gobj" ref="ee1b9930e4348748d8de7c3143c5878b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GtkRecentFilter* Gtk::RecentFilter::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GtkObject. 
<p>

<p>
Reimplemented from <a class="el" href="classGtk_1_1Object.html#e3541ec02d1b7cd56cfabe7295f8948f">Gtk::Object</a>.
</div>
</div><p>
<a class="anchor" name="57c6905667c9881376891e4d4cb2ff38"></a><!-- doxytag: member="Gtk::RecentFilter::set_name" ref="57c6905667c9881376891e4d4cb2ff38" args="(const Glib::ustring &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gtk::RecentFilter::set_name           </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the human-readable name of the filter; this is the string that will be displayed in the recently used resources selector user interface if there is a selectable list of filters. 
<p>
<dl compact><dt><b><a class="el" href="newin2p10s.html#_newin2p10s000294">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>Then human readable name of <em>filter</em> . </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="7c4b917934a0ad8a5ba82790bbf580ba"></a><!-- doxytag: member="Gtk::RecentFilter::wrap" ref="7c4b917934a0ad8a5ba82790bbf580ba" args="(GtkRecentFilter *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGtk_1_1RecentFilter.html">Gtk::RecentFilter</a>* wrap           </td>
          <td>(</td>
          <td class="paramtype">GtkRecentFilter *&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&nbsp;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="recentfilter_8h.html">recentfilter.h</a></ul>
</div>
<!-- end main content -->

<hr><address><small>
Generated for gtkmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 &copy;&nbsp;1997-2001</small></address>
</body>
</html>