Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 22e237efd6851989a23adf3360bb53d0 > files > 615

gtkmm2.4-doc-2.20.3-1mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gtk::RecentFilter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="classGtk_1_1RecentFilter.html">RecentFilter</a>
  </div>
</div>
<div class="contents">
<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" -->
<p><a class="el" href="classGtk_1_1RecentFilter.html" title="RecentFilter can be used to restrict the files being shown in a RecentChooser.">RecentFilter</a> can be used to restrict the files being shown in a <a class="el" href="classGtk_1_1RecentChooser.html" title="RecentChooser is an interface that can be implemented by widgets displaying the list...">RecentChooser</a>. <a href="#_details">More...</a></p>

<p>Inherits <a class="el" href="classGtk_1_1Object.html">Gtk::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gtk::RecentFilter:</div>
<div class="dynsection">
<div class="center"><img src="classGtk_1_1RecentFilter__coll__graph.png" border="0" usemap="#Gtk_1_1RecentFilter_coll__map" alt="Collaboration graph"/></div>
<map name="Gtk_1_1RecentFilter_coll__map" id="Gtk_1_1RecentFilter_coll__map">
<area shape="rect" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non&#45;widget objects such..." alt="" coords="21,237,109,267"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,160,111,189"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,125,112"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGtk_1_1RecentFilter-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html" title="A RecentFilter::Info class is used to pass information about the tested file to filter()...">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>
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt; bool, <br class="typebreak"/>
const <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a>&amp; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a2a46b4c386c3dbd4eca55197c51195ac">SlotCustom</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">For instance, bool on_custom(const Gtk::RecentFilter::Info&amp; filter_info);. <a href="#a2a46b4c386c3dbd4eca55197c51195ac"></a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#abdfdd0772778b3a99110bb26ab00b7e3">~RecentFilter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GtkRecentFilter*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#aee1b9930e4348748d8de7c3143c5878b">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#aee1b9930e4348748d8de7c3143c5878b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GtkRecentFilter*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a6bcd5dd239067d571651c0a71305e0fd">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a6bcd5dd239067d571651c0a71305e0fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a73339136367c38602f7871ba5517d3d5">RecentFilter</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a57c6905667c9881376891e4d4cb2ff38">set_name</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; name)</td></tr>
<tr><td class="mdescLeft">&#160;</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="#a57c6905667c9881376891e4d4cb2ff38"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a01831ed5541ef3d4a975cd832926cdd0">get_name</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the human-readable name for the filter. <a href="#a01831ed5541ef3d4a975cd832926cdd0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a230612101528ddfa56c9a9edcb5a39ca">add_mime_type</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; mime_type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a rule that allows resources based on their registered MIME type. <a href="#a230612101528ddfa56c9a9edcb5a39ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#ae1097e7d1f101a8c432840a415a77c75">add_pattern</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; pattern)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a rule that allows resources based on a pattern matching their display name. <a href="#ae1097e7d1f101a8c432840a415a77c75"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a8fd8c80a98a20d1fdf49e1f4f701df59">add_pixbuf_formats</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a rule allowing image files in the formats supported by GdkPixbuf. <a href="#a8fd8c80a98a20d1fdf49e1f4f701df59"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a79c9a997495c5972b77149b9696a3a0a">add_application</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; application)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a rule that allows resources based on the name of the application that has registered them. <a href="#a79c9a997495c5972b77149b9696a3a0a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a1f6013b83391b2e23e6bce1d3ea7ca38">add_group</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>&amp; group)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a rule that allows resources based on the name of the group to which they belong. <a href="#a1f6013b83391b2e23e6bce1d3ea7ca38"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a410af2c9fa2270ffa6f67e08625e6fb6">add_age</a> (int days)</td></tr>
<tr><td class="mdescLeft">&#160;</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="#a410af2c9fa2270ffa6f67e08625e6fb6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a0baa74334e0b4297e5b1381198c12791">add_custom</a> (<a class="el" href="group__gtkmmEnums.html#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> needed, const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotCustom</a>&amp; slot)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gtkmmEnums.html#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#aa4b001cae9f6a2821040e5cb1d8350de">get_needed</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the fields that need to be filled in for the structure passed to filter(). <a href="#aa4b001cae9f6a2821040e5cb1d8350de"></a><br/></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1RecentFilter.html">Gtk::RecentFilter</a>*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1RecentFilter.html#a7c4b917934a0ad8a5ba82790bbf580ba">wrap</a> (GtkRecentFilter* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a7c4b917934a0ad8a5ba82790bbf580ba"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="classGtk_1_1RecentFilter.html" title="RecentFilter can be used to restrict the files being shown in a RecentChooser.">RecentFilter</a> can be used to restrict the files being shown in a <a class="el" href="classGtk_1_1RecentChooser.html" title="RecentChooser is an interface that can be implemented by widgets displaying the list...">RecentChooser</a>. </p>
<p>Files can be filtered based on their name (with <a class="el" href="classGtk_1_1RecentFilter.html#ae1097e7d1f101a8c432840a415a77c75" title="Adds a rule that allows resources based on a pattern matching their display name...">add_pattern()</a>), on their mime type (with <a class="el" href="classGtk_1_1RecentFilter.html#a230612101528ddfa56c9a9edcb5a39ca" title="Adds a rule that allows resources based on their registered MIME type.">add_mime_type()</a>), on the application that has registered them (with <a class="el" href="classGtk_1_1RecentFilter.html#a79c9a997495c5972b77149b9696a3a0a" title="Adds a rule that allows resources based on the name of the application that has registered...">add_application()</a>), or by a custom filter function (with <a class="el" href="classGtk_1_1RecentFilter.html#a0baa74334e0b4297e5b1381198c12791">add_custom()</a>).</p>
<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" title="RecentFilter can be used to restrict the files being shown in a RecentChooser.">RecentFilter</a> allows wildcards for the subtype of a mime type, so you can e.g. filter for image/*.</p>
<p>Normally, filters are used by adding them to a <a class="el" href="classGtk_1_1RecentChooser.html" title="RecentChooser is an interface that can be implemented by widgets displaying the list...">RecentChooser</a>, see <a class="el" href="classGtk_1_1RecentChooser.html#a827e5cf870766ca4f2c66cb22b0d4d83" title="Adds filter to the list of Gtk::RecentFilter objects held by chooser.">RecentChooser::add_filter()</a>, but it is also possible to manually use a filter on a file with filter().</p>
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000248">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a2a46b4c386c3dbd4eca55197c51195ac"></a><!-- doxytag: member="Gtk::RecentFilter::SlotCustom" ref="a2a46b4c386c3dbd4eca55197c51195ac" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>&lt;bool, const <a class="el" href="classGtk_1_1RecentFilter_1_1Info.html">Info</a>&amp;&gt; <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">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>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abdfdd0772778b3a99110bb26ab00b7e3"></a><!-- doxytag: member="Gtk::RecentFilter::~RecentFilter" ref="abdfdd0772778b3a99110bb26ab00b7e3" 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>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a73339136367c38602f7871ba5517d3d5"></a><!-- doxytag: member="Gtk::RecentFilter::RecentFilter" ref="a73339136367c38602f7871ba5517d3d5" 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>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a410af2c9fa2270ffa6f67e08625e6fb6"></a><!-- doxytag: member="Gtk::RecentFilter::add_age" ref="a410af2c9fa2270ffa6f67e08625e6fb6" 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&#160;</td>
          <td class="paramname"> <em>days</em></td>
          <td>&#160;)&#160;</td>
          <td></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 class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000256">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>days</em>&#160;</td><td>Number of days. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a79c9a997495c5972b77149b9696a3a0a"></a><!-- doxytag: member="Gtk::RecentFilter::add_application" ref="a79c9a997495c5972b77149b9696a3a0a" 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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>application</em></td>
          <td>&#160;)&#160;</td>
          <td></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 class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000254">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>application</em>&#160;</td><td>An application name. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a0baa74334e0b4297e5b1381198c12791"></a><!-- doxytag: member="Gtk::RecentFilter::add_custom" ref="a0baa74334e0b4297e5b1381198c12791" 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#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a>&#160;</td>
          <td class="paramname"> <em>needed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotCustom</a> &amp;&#160;</td>
          <td class="paramname"> <em>slot</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1f6013b83391b2e23e6bce1d3ea7ca38"></a><!-- doxytag: member="Gtk::RecentFilter::add_group" ref="a1f6013b83391b2e23e6bce1d3ea7ca38" 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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>group</em></td>
          <td>&#160;)&#160;</td>
          <td></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 class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000255">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>group</em>&#160;</td><td>A group name. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a230612101528ddfa56c9a9edcb5a39ca"></a><!-- doxytag: member="Gtk::RecentFilter::add_mime_type" ref="a230612101528ddfa56c9a9edcb5a39ca" 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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>mime_type</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a rule that allows resources based on their registered MIME type. </p>
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000251">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl><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>&#160;</td><td>A MIME type. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae1097e7d1f101a8c432840a415a77c75"></a><!-- doxytag: member="Gtk::RecentFilter::add_pattern" ref="ae1097e7d1f101a8c432840a415a77c75" 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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>pattern</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a8fd8c80a98a20d1fdf49e1f4f701df59"></a><!-- doxytag: member="Gtk::RecentFilter::add_pixbuf_formats" ref="a8fd8c80a98a20d1fdf49e1f4f701df59" 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>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

</div>
</div>
<a class="anchor" id="a01831ed5541ef3d4a975cd832926cdd0"></a><!-- doxytag: member="Gtk::RecentFilter::get_name" ref="a01831ed5541ef3d4a975cd832926cdd0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::RecentFilter::get_name </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the human-readable name for the filter. </p>
<p>See <a class="el" href="classGtk_1_1RecentFilter.html#a57c6905667c9881376891e4d4cb2ff38" title="Sets the human-readable name of the filter; this is the string that will be displayed...">set_name()</a>.</p>
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000250">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl class="return"><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>

</div>
</div>
<a class="anchor" id="aa4b001cae9f6a2821040e5cb1d8350de"></a><!-- doxytag: member="Gtk::RecentFilter::get_needed" ref="aa4b001cae9f6a2821040e5cb1d8350de" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gtkmmEnums.html#ga367108566a3e735eccbfd86db71ac02a">RecentFilterFlags</a> Gtk::RecentFilter::get_needed </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the fields that need to be filled in for the structure passed to filter(). </p>
<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" title="RecentChooser is an interface that can be implemented by widgets displaying the list...">Gtk::RecentChooser</a>.</p>
<dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000257">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Bitfield of flags indicating needed fields when calling filter(). </dd></dl>

</div>
</div>
<a class="anchor" id="a6bcd5dd239067d571651c0a71305e0fd"></a><!-- doxytag: member="Gtk::RecentFilter::gobj" ref="a6bcd5dd239067d571651c0a71305e0fd" 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>&#160;)&#160;</td>
          <td> 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#a5a0e5941619df9ec0cc52feccad99005">Gtk::Object</a>.</p>

</div>
</div>
<a class="anchor" id="aee1b9930e4348748d8de7c3143c5878b"></a><!-- doxytag: member="Gtk::RecentFilter::gobj" ref="aee1b9930e4348748d8de7c3143c5878b" 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>&#160;)&#160;</td>
          <td><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#ae3541ec02d1b7cd56cfabe7295f8948f">Gtk::Object</a>.</p>

</div>
</div>
<a class="anchor" id="a57c6905667c9881376891e4d4cb2ff38"></a><!-- doxytag: member="Gtk::RecentFilter::set_name" ref="a57c6905667c9881376891e4d4cb2ff38" 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" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"> <em>name</em></td>
          <td>&#160;)&#160;</td>
          <td></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 class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000249">Since gtkmm 2.10:</a></b></dt><dd></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&#160;</td><td>Then human readable name of <em>filter</em>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a7c4b917934a0ad8a5ba82790bbf580ba"></a><!-- doxytag: member="Gtk::RecentFilter::wrap" ref="a7c4b917934a0ad8a5ba82790bbf580ba" 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 *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</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>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gtkmm/recentfilter.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:59 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>