<!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::FileFilter 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.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm <span id="projectnumber">2.24.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related 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 id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li> <li class="navelem"><a class="el" href="classGtk_1_1FileFilter.html">FileFilter</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gtk::FileFilter Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gtk::FileFilter" --><!-- doxytag: inherits="Gtk::Object" --> <p>A filter for selecting a file subset. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gtk::FileFilter:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1FileFilter__inherit__graph.png" border="0" usemap="#Gtk_1_1FileFilter_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1FileFilter_inherit__map" id="Gtk_1_1FileFilter_inherit__map"> <area shape="rect" id="node2" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node6" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node8" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gtk::FileFilter:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1FileFilter__coll__graph.png" border="0" usemap="#Gtk_1_1FileFilter_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1FileFilter_coll__map" id="Gtk_1_1FileFilter_coll__map"> <area shape="rect" id="node2" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node4" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node6" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node8" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGtk_1_1FileFilter-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="nested-classes"></a> Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter_1_1Info.html">Info</a></td></tr> <tr><td colspan="2"><h2><a name="pub-types"></a> 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>< bool, <br class="typebreak"/> const <a class="el" href="classGtk_1_1FileFilter_1_1Info.html">Info</a>& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a4c3cb21b5cbdb93d6f9415bd59173436">SlotCustom</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">For instance, bool on_custom(const Gtk::FileFilter::Info& filter_info);. <a href="#a4c3cb21b5cbdb93d6f9415bd59173436"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a50eee8641cdbe65c4350d4ba4849743e">~FileFilter</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkFileFilter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a66e9c0496e9160dac00dc4084b7546bc">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a66e9c0496e9160dac00dc4084b7546bc"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GtkFileFilter* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a7d46093351ec372a672a3be88646005a">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a7d46093351ec372a672a3be88646005a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a542b0bc5fd456766db2b91c502a05603">FileFilter</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#ac192ae4b6a0d24ab00c2d2d434550813">set_name</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the human-readable name of the filter; this is the string that will be displayed in the file selector user interface if there is a selectable list of filters. <a href="#ac192ae4b6a0d24ab00c2d2d434550813"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#af2f9f2895ad22fe94a878f26c594658c">get_name</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the human-readable name for the filter. <a href="#af2f9f2895ad22fe94a878f26c594658c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#af0a289b2b4576672f4ce46de1a84f0be">add_mime_type</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& mime_type)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule allowing a given mime type to <em>filter</em>. <a href="#af0a289b2b4576672f4ce46de1a84f0be"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a9b49e4a03afffc2806d17abf33b26cad">add_pattern</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& pattern)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule allowing a shell style glob to a filter. <a href="#a9b49e4a03afffc2806d17abf33b26cad"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a7ed1bdf8a077b87b66efbc9fd308a367">add_pixbuf_formats</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a rule allowing image files in the formats supported by GdkPixbuf. <a href="#a7ed1bdf8a077b87b66efbc9fd308a367"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#ae42878237330a437191f61df28094208">add_custom</a> (<a class="el" href="group__gtkmmEnums.html#gaf8205a61123bc5013c12d13335623959">FileFilterFlags</a> needed, const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotCustom</a>& slot)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gtkmmEnums.html#gaf8205a61123bc5013c12d13335623959">FileFilterFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a82c0d157fded98f2d5a40a637227d120">get_needed</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the fields that need to be filled in for the structure passed to filter() <a href="#a82c0d157fded98f2d5a40a637227d120"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1FileFilter.html">Gtk::FileFilter</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1FileFilter.html#a1d316df58a9cd0b8b872bb159caa81ce">wrap</a> (GtkFileFilter* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </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="#a1d316df58a9cd0b8b872bb159caa81ce"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A filter for selecting a file subset. </p> <p>A <a class="el" href="classGtk_1_1FileFilter.html" title="A filter for selecting a file subset.">Gtk::FileFilter</a> can be used to restrict the files being shown in a <a class="el" href="classGtk_1_1FileChooser.html" title="Gtk::FileChooser is an interface that can be implemented by file selection widgets.">Gtk::FileChooser</a>. Files can be filtered based on their name (with <a class="el" href="classGtk_1_1FileFilter.html#a9b49e4a03afffc2806d17abf33b26cad" title="Adds a rule allowing a shell style glob to a filter.">add_pattern()</a>), on their mime type (with <a class="el" href="classGtk_1_1FileFilter.html#af0a289b2b4576672f4ce46de1a84f0be" title="Adds a rule allowing a given mime type to filter.">add_mime_type()</a>), or by a custom filter function (with <a class="el" href="classGtk_1_1FileFilter.html#ae42878237330a437191f61df28094208">add_custom()</a>).</p> <p>Filtering by mime types 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_1FileFilter.html" title="A filter for selecting a file subset.">Gtk::FileFilter</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_1FileChooser.html" title="Gtk::FileChooser is an interface that can be implemented by file selection widgets.">Gtk::FileChooser</a>. See <a class="el" href="classGtk_1_1FileChooser.html#af02ec2b5004b16fc0e65c96603087597" title="Adds filter to the list of filters that the user can select between.">Gtk::FileChooser::add_filter()</a>. But it is also possible to manually use a filter on a file with filter(). </p> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a4c3cb21b5cbdb93d6f9415bd59173436"></a><!-- doxytag: member="Gtk::FileFilter::SlotCustom" ref="a4c3cb21b5cbdb93d6f9415bd59173436" 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><bool, const <a class="el" href="classGtk_1_1FileFilter_1_1Info.html">Info</a>&> <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">Gtk::FileFilter::SlotCustom</a></td> </tr> </table> </div> <div class="memdoc"> <p>For instance, bool on_custom(const Gtk::FileFilter::Info& filter_info);. </p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a50eee8641cdbe65c4350d4ba4849743e"></a><!-- doxytag: member="Gtk::FileFilter::~FileFilter" ref="a50eee8641cdbe65c4350d4ba4849743e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::FileFilter::~FileFilter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a542b0bc5fd456766db2b91c502a05603"></a><!-- doxytag: member="Gtk::FileFilter::FileFilter" ref="a542b0bc5fd456766db2b91c502a05603" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::FileFilter::FileFilter </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ae42878237330a437191f61df28094208"></a><!-- doxytag: member="Gtk::FileFilter::add_custom" ref="ae42878237330a437191f61df28094208" args="(FileFilterFlags needed, const SlotCustom &slot)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::FileFilter::add_custom </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#gaf8205a61123bc5013c12d13335623959">FileFilterFlags</a> </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> & </td> <td class="paramname"><em>slot</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="af0a289b2b4576672f4ce46de1a84f0be"></a><!-- doxytag: member="Gtk::FileFilter::add_mime_type" ref="af0a289b2b4576672f4ce46de1a84f0be" args="(const Glib::ustring &mime_type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::FileFilter::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> & </td> <td class="paramname"><em>mime_type</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule allowing a given mime type to <em>filter</em>. </p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000173">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">mime_type</td><td>Name of a MIME type. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a9b49e4a03afffc2806d17abf33b26cad"></a><!-- doxytag: member="Gtk::FileFilter::add_pattern" ref="a9b49e4a03afffc2806d17abf33b26cad" args="(const Glib::ustring &pattern)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::FileFilter::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> & </td> <td class="paramname"><em>pattern</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a rule allowing a shell style glob to a filter. </p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000174">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pattern</td><td>A shell style glob. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a7ed1bdf8a077b87b66efbc9fd308a367"></a><!-- doxytag: member="Gtk::FileFilter::add_pixbuf_formats" ref="a7ed1bdf8a077b87b66efbc9fd308a367" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::FileFilter::add_pixbuf_formats </td> <td>(</td> <td class="paramname"></td><td>)</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_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000081">Since gtkmm 2.6:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="af2f9f2895ad22fe94a878f26c594658c"></a><!-- doxytag: member="Gtk::FileFilter::get_name" ref="af2f9f2895ad22fe94a878f26c594658c" 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::FileFilter::get_name </td> <td>(</td> <td class="paramname"></td><td>)</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_1FileFilter.html#ac192ae4b6a0d24ab00c2d2d434550813" title="Sets the human-readable name of the filter; this is the string that will be displayed in the file sel...">set_name()</a>.</p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000172">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The human-readable name of the filter, or <code>0</code>. This value is owned by GTK+ and must not be modified or freed. </dd></dl> </div> </div> <a class="anchor" id="a82c0d157fded98f2d5a40a637227d120"></a><!-- doxytag: member="Gtk::FileFilter::get_needed" ref="a82c0d157fded98f2d5a40a637227d120" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__gtkmmEnums.html#gaf8205a61123bc5013c12d13335623959">FileFilterFlags</a> Gtk::FileFilter::get_needed </td> <td>(</td> <td class="paramname"></td><td>)</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_1FileChooser.html" title="Gtk::FileChooser is an interface that can be implemented by file selection widgets.">Gtk::FileChooser</a>.</p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000175">Since gtkmm 2.4:</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="a66e9c0496e9160dac00dc4084b7546bc"></a><!-- doxytag: member="Gtk::FileFilter::gobj" ref="a66e9c0496e9160dac00dc4084b7546bc" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkFileFilter* Gtk::FileFilter::gobj </td> <td>(</td> <td class="paramname"></td><td>)</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="a7d46093351ec372a672a3be88646005a"></a><!-- doxytag: member="Gtk::FileFilter::gobj" ref="a7d46093351ec372a672a3be88646005a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GtkFileFilter* Gtk::FileFilter::gobj </td> <td>(</td> <td class="paramname"></td><td>)</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="ac192ae4b6a0d24ab00c2d2d434550813"></a><!-- doxytag: member="Gtk::FileFilter::set_name" ref="ac192ae4b6a0d24ab00c2d2d434550813" args="(const Glib::ustring &name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::FileFilter::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> & </td> <td class="paramname"><em>name</em></td><td>)</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 file selector user interface if there is a selectable list of filters. </p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000171">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The human-readable-name for the filter, or <code>0</code> to remove any existing name. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a1d316df58a9cd0b8b872bb159caa81ce"></a><!-- doxytag: member="Gtk::FileFilter::wrap" ref="a1d316df58a9cd0b8b872bb159caa81ce" args="(GtkFileFilter *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1FileFilter.html">Gtk::FileFilter</a>* wrap </td> <td>(</td> <td class="paramtype">GtkFileFilter * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <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 class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</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/filefilter.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>