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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.RecentInfo</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.1"><link rel="home" 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-gtkrecentfilter.html" title="gtk.RecentFilter"><link rel="next" href="class-gtkrecentmanager.html" title="gtk.RecentManager"></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.RecentInfo</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkrecentfilter.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkrecentmanager.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.RecentInfo"><a name="class-gtkrecentinfo"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.RecentInfo</h2><p>gtk.RecentInfo — information found when looking up an entry of the recently
      used files list. (new in PyGTK 2.10)</p></div><div class="refsect1" title="Synopsis"><a name="id3968971"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.RecentInfo</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-uri" title="gtk.RecentInfo.get_uri">get_uri</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-display-name" title="gtk.RecentInfo.get_display_name">get_display_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-description" title="gtk.RecentInfo.get_description">get_description</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-mime-type" title="gtk.RecentInfo.get_mime_type">get_mime_type</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-added" title="gtk.RecentInfo.get_added">get_added</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-modified" title="gtk.RecentInfo.get_modified">get_modified</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-visited" title="gtk.RecentInfo.get_visited">get_visited</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-private-hint" title="gtk.RecentInfo.get_private_hint">get_private_hint</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-application-info" title="gtk.RecentInfo.get_application_info">get_application_info</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>app_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-applications" title="gtk.RecentInfo.get_applications">get_applications</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--last-application" title="gtk.RecentInfo.last_application">last_application</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--has-application" title="gtk.RecentInfo.has_application">has_application</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>app_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-groups" title="gtk.RecentInfo.get_groups">get_groups</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--has-group" title="gtk.RecentInfo.has_group">has_group</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-icon" title="gtk.RecentInfo.get_icon">get_icon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-short-name" title="gtk.RecentInfo.get_short_name">get_short_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-uri-display" title="gtk.RecentInfo.get_uri_display">get_uri_display</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--get-age" title="gtk.RecentInfo.get_age">get_age</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--is-local" title="gtk.RecentInfo.is_local">is_local</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--exists" title="gtk.RecentInfo.exists">exists</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkrecentinfo.html#method-gtkrecentinfo--match" title="gtk.RecentInfo.match">match</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>info_b</code></strong></span></span>)</code><br></pre></td></tr></table></div><div class="refsect1" title="Description"><a name="id3969448"></a><h2>Description</h2><p>A <a class="link" href="class-gtkrecentinfo.html" title="gtk.RecentInfo"><code class="classname">gtk.RecentInfo</code></a>
    contains the information about an entry in a <a class="link" href="class-gtkrecentmanager.html" title="gtk.RecentManager"><code class="classname">gtk.RecentManager</code></a>.</p></div><div class="refsect1" title="Methods"><a name="id3969475"></a><h2>Methods</h2><div class="refsect2" title="gtk.RecentInfo.get_uri"><a name="method-gtkrecentinfo--get-uri"></a><h3>gtk.RecentInfo.get_uri</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_uri</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the URI of the resource.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the URI of the resource.</p></div><div class="refsect2" title="gtk.RecentInfo.get_display_name"><a name="method-gtkrecentinfo--get-display-name"></a><h3>gtk.RecentInfo.get_display_name</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_display_name</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the display name of the
          resource.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the name of the resource. If none has been defined, the
      basename of the resource is obtained.</p></div><div class="refsect2" title="gtk.RecentInfo.get_description"><a name="method-gtkrecentinfo--get-description"></a><h3>gtk.RecentInfo.get_description</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_description</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the description of the
          resource.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the (short) description of the resource.</p></div><div class="refsect2" title="gtk.RecentInfo.get_mime_type"><a name="method-gtkrecentinfo--get-mime-type"></a><h3>gtk.RecentInfo.get_mime_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_mime_type</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the MIME type of the
          resource.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the MIME type of the resource.</p></div><div class="refsect2" title="gtk.RecentInfo.get_added"><a name="method-gtkrecentinfo--get-added"></a><h3>gtk.RecentInfo.get_added</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_added</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the number of seconds elapsed from system's
          Epoch when the resource was added to the list, or -1 on
          failure.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the timestamp (seconds from system's Epoch) when the
      resource was added to the recently used resources list.</p></div><div class="refsect2" title="gtk.RecentInfo.get_modified"><a name="method-gtkrecentinfo--get-modified"></a><h3>gtk.RecentInfo.get_modified</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_modified</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the number of seconds elapsed from system's
          Epoch when the resource was last modified, or -1 on
          failure.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the timestamp (seconds from system's Epoch) when the
      resource was last modified.</p></div><div class="refsect2" title="gtk.RecentInfo.get_visited"><a name="method-gtkrecentinfo--get-visited"></a><h3>gtk.RecentInfo.get_visited</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_visited</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the number of seconds elapsed from system's
          Epoch when the resource was last visited, or -1 on
          failure.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the timestamp (seconds from system's Epoch) when the
      resource was last visited.</p></div><div class="refsect2" title="gtk.RecentInfo.get_private_hint"><a name="method-gtkrecentinfo--get-private-hint"></a><h3>gtk.RecentInfo.get_private_hint</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_private_hint</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the private flag was
          found.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the value of the "private" flag.  Resources in the
      recently used list that have this flag set to <code class="literal">True</code>
      should only be displayed by the applications that have registered
      them.</p></div><div class="refsect2" title="gtk.RecentInfo.get_application_info"><a name="method-gtkrecentinfo--get-application-info"></a><h3>gtk.RecentInfo.get_application_info</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_application_info</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>app_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>app_name</code></strong> :</span></p></td><td>the name of the application that has registered
          this item</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a 3-tuple (containing the command line, the
          number of times this item was registered and the timestamp this
          item was last registered for this application) if an application
          named <em class="parameter"><code>app_name</code></em> has registered this resource
          inside the recently used list, or <code class="literal">None</code>
          otherwise.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns a 3-tuple containg the data regarding the application
      that has registered this resource. The 3-tuple contains the command
      line, the number of times this item was registered and the timestamp
      this item was last registered for this application</p><p>If the command line contains any escape characters defined
      inside the storage specification, they will be expanded.</p></div><div class="refsect2" title="gtk.RecentInfo.get_applications"><a name="method-gtkrecentinfo--get-applications"></a><h3>gtk.RecentInfo.get_applications</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_applications</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>length</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a list of application name
          strings.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the list of applications that have registered this
      resource.</p></div><div class="refsect2" title="gtk.RecentInfo.last_application"><a name="method-gtkrecentinfo--last-application"></a><h3>gtk.RecentInfo.last_application</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">last_application</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>an application name.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the name of the last application that has registered the
      recently used resource.</p></div><div class="refsect2" title="gtk.RecentInfo.has_application"><a name="method-gtkrecentinfo--has-application"></a><h3>gtk.RecentInfo.has_application</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">has_application</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>app_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>app_name</code></strong> :</span></p></td><td>a string containing an application
          name</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if an application with
          the name <em class="parameter"><code>app_name</code></em> was found,
          <code class="literal">False</code> otherwise.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Checks whether an application registered this resource using
      <em class="parameter"><code>app_name</code></em>.</p></div><div class="refsect2" title="gtk.RecentInfo.get_groups"><a name="method-gtkrecentinfo--get-groups"></a><h3>gtk.RecentInfo.get_groups</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_groups</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>length</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"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a list of group names.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns a list containing the names of all groups registered
      for the recently used item.</p></div><div class="refsect2" title="gtk.RecentInfo.has_group"><a name="method-gtkrecentinfo--has-group"></a><h3>gtk.RecentInfo.has_group</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">has_group</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>group_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>group_name</code></strong> :</span></p></td><td>the name of a group</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the group was
          found.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Checks whether <em class="parameter"><code>group_name</code></em> appears inside
      the groups registered for the recently used item.</p></div><div class="refsect2" title="gtk.RecentInfo.get_icon"><a name="method-gtkrecentinfo--get-icon"></a><h3>gtk.RecentInfo.get_icon</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_icon</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</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>size</code></strong> :</span></p></td><td>the size of the icon in
          pixels</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>
          containing the icon, or
          <code class="literal">None</code>.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Retrieves the icon of size <em class="parameter"><code>size</code></em>
      associated to the resource MIME type.</p></div><div class="refsect2" title="gtk.RecentInfo.get_short_name"><a name="method-gtkrecentinfo--get-short-name"></a><h3>gtk.RecentInfo.get_short_name</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_short_name</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the short name as a UTF-8 string</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Computes a valid UTF-8 string that can be used as the name of
      the item in a menu or list.  For example, calling this function on an
      item that refers to "file:///foo/bar.txt" will yield "bar.txt".</p></div><div class="refsect2" title="gtk.RecentInfo.get_uri_display"><a name="method-gtkrecentinfo--get-uri-display"></a><h3>gtk.RecentInfo.get_uri_display</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_uri_display</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a UTF-8 string containing the resource's URI or
          <code class="literal">None</code></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Gets a displayable version of the resource's URI.</p></div><div class="refsect2" title="gtk.RecentInfo.get_age"><a name="method-gtkrecentinfo--get-age"></a><h3>gtk.RecentInfo.get_age</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_age</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a positive integer containing the number of
          days elapsed since the time this resource was last
          modified.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Returns the number of days elapsed since the last update of the
      resource.</p></div><div class="refsect2" title="gtk.RecentInfo.is_local"><a name="method-gtkrecentinfo--is-local"></a><h3>gtk.RecentInfo.is_local</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">is_local</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the resource is
          local.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Checks whether the resource is local or not by looking at the
      scheme of its URI.</p></div><div class="refsect2" title="gtk.RecentInfo.exists"><a name="method-gtkrecentinfo--exists"></a><h3>gtk.RecentInfo.exists</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">exists</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if the resource
          exists</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Checks whether the resource still exists. At the moment this
      check is done only on resources pointing to local files.</p></div><div class="refsect2" title="gtk.RecentInfo.match"><a name="method-gtkrecentinfo--match"></a><h3>gtk.RecentInfo.match</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">match</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>info_b</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>info_b</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkrecentinfo.html" title="gtk.RecentInfo"><code class="classname">gtk.RecentInfo</code></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if
          <em class="parameter"><code>info_b</code></em> matches this recent
          info.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>Checks if <em class="parameter"><code>info_b</code></em> matches this recent
      info.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkrecentfilter.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="class-gtkrecentmanager.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.RecentFilter </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.RecentManager</td></tr></table></div></body></html>