~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtkfilefilter.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.FileFilter</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkfilechooserwidget.html" title="gtk.FileChooserWidget"><link rel="next" href="class-gtkfileselection.html" title="gtk.FileSelection"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.FileFilter</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkfilechooserwidget.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkfileselection.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkfilefilter"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.FileFilter</h2><p>gtk.FileFilter — a filter for selecting a file subset (new in PyGTK
2
 
    2.4)</p></div><div class="refsect1" lang="en"><a name="id3480392"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.FileFilter</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a></span></span>):
3
 
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkfilefilter.html#constructor-gtkfilefilter" title="Constructor">gtk.FileFilter</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--set-name" title="gtk.FileFilter.set_name">set_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--get-name" title="gtk.FileFilter.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-mime-type" title="gtk.FileFilter.add_mime_type">add_mime_type</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mime_type</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-pattern" title="gtk.FileFilter.add_pattern">add_pattern</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pattern</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-custom" title="gtk.FileFilter.add_custom">add_custom</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>needed</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>data</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--get-needed" title="gtk.FileFilter.get_needed">get_needed</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--filter" title="gtk.FileFilter.filter">filter</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filter_info</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-pixbuf-formats" title="gtk.FileFilter.add_pixbuf_formats">add_pixbuf_formats</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3480625"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
2
    2.4)</p></div><div class="refsect1" lang="en"><a name="id3681202"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.FileFilter</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a></span></span>):
 
3
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkfilefilter.html#constructor-gtkfilefilter" title="Constructor">gtk.FileFilter</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--set-name" title="gtk.FileFilter.set_name">set_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--get-name" title="gtk.FileFilter.get_name">get_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-mime-type" title="gtk.FileFilter.add_mime_type">add_mime_type</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>mime_type</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-pattern" title="gtk.FileFilter.add_pattern">add_pattern</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pattern</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-custom" title="gtk.FileFilter.add_custom">add_custom</a></span>(<span class="methodparam"><span class="parameter"><em class="parameter"><code>needed</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>func</code></em></span></span>, <span class="methodparam"><span class="parameter"><em class="parameter"><code>data</code></em></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--get-needed" title="gtk.FileFilter.get_needed">get_needed</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--filter" title="gtk.FileFilter.filter">filter</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filter_info</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkfilefilter.html#method-gtkfilefilter--add-pixbuf-formats" title="gtk.FileFilter.add_pixbuf_formats">add_pixbuf_formats</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3681436"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
4
4
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
5
5
    +-- <a class="link" href="class-gtkfilefilter.html" title="gtk.FileFilter">gtk.FileFilter</a>
6
 
</pre></div><div class="refsect1" lang="en"><a name="properties-gtkfilefilter"></a><h2>gtk.FileFilter Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkfilefilter"></a><h2>gtk.FileFilter Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p></div><div class="refsect1" lang="en"><a name="id3480688"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p>A <a class="link" href="class-gtkfilefilter.html" title="gtk.FileFilter"><code class="classname">gtk.FileFilter</code></a>
 
6
</pre></div><div class="refsect1" lang="en"><a name="properties-gtkfilefilter"></a><h2>gtk.FileFilter Properties</h2><p><a class="link" href="class-gtkobject.html#properties-gtkobject" title="gtk.Object Properties">gtk.Object Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkfilefilter"></a><h2>gtk.FileFilter Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p></div><div class="refsect1" lang="en"><a name="id3681498"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This widget is available in PyGTK 2.4 and above.</p></div><p>A <a class="link" href="class-gtkfilefilter.html" title="gtk.FileFilter"><code class="classname">gtk.FileFilter</code></a>
7
7
    is an object that filters files based on a set of rules that it
8
8
    contains. The categories of information that <a class="link" href="class-gtkfilefilter.html" title="gtk.FileFilter"><code class="classname">gtk.FileFilter</code></a>
9
9
    uses to accept or reject the file are given by the <a class="xref" href="gtk-constants.html#gtk-filefilter-flags-constants" title="GTK FileFilter Flags Constants">GTK FileFilter Flags Constants</a>:</p><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><code class="literal">gtk.FILE_FILTER_FILENAME</code></span></p></td><td>The full path name of the file.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.FILE_FILTER_URI</code></span></p></td><td>The URI of the file.</td></tr><tr><td><p><span class="term"><code class="literal">gtk.FILE_FILTER_DISPLAY_NAME</code></span></p></td><td>The simple name of the file as displayed in a file
33
33
methods. To create a filter that accepts any file, use:</p><pre class="programlisting">
34
34
  filter = gtk.FileFilter()
35
35
  filter.add_pattern("*")
36
 
</pre><p></p></div><div class="refsect1" lang="en"><a name="id3480994"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkfilefilter--set-name"></a><h3>gtk.FileFilter.set_name</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_name</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>the human-readable-name for the
 
36
</pre><p></p></div><div class="refsect1" lang="en"><a name="id3681805"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkfilefilter--set-name"></a><h3>gtk.FileFilter.set_name</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_name</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>name</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>name</code></strong> :</span></p></td><td>the human-readable-name for the
37
37
filter.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">set_name</code>() method sets the
38
38
human-readable name of the filter to the string in
39
39
<em class="parameter"><code>name</code></em>. The string in <em class="parameter"><code>name</code></em> will