gtk.RecentInfoinformation found when looking up an entry of the recently
used files list. (new in PyGTK 2.10)Synopsisgtk.RecentInfogobject.GBoxedget_uriget_display_nameget_descriptionget_mime_typeget_addedget_modifiedget_visitedget_private_hintget_application_infoapp_nameget_applicationslast_applicationhas_applicationapp_nameget_groupshas_groupgroup_nameget_iconsizeget_short_nameget_uri_displayget_ageis_localexistsmatchinfo_bDescriptionA gtk.RecentInfo
contains the information about an entry in a gtk.RecentManager.Methodsgtk.RecentInfo.get_uriget_uriReturns :the URI of the resource.This method is available in PyGTK 2.10 and above.Returns the URI of the resource.gtk.RecentInfo.get_display_nameget_display_nameReturns :the display name of the
resource.This method is available in PyGTK 2.10 and above.Returns the name of the resource. If none has been defined, the
basename of the resource is obtained.gtk.RecentInfo.get_descriptionget_descriptionReturns :the description of the
resource.This method is available in PyGTK 2.10 and above.Returns the (short) description of the resource.gtk.RecentInfo.get_mime_typeget_mime_typeReturns :the MIME type of the
resource.This method is available in PyGTK 2.10 and above.Returns the MIME type of the resource.gtk.RecentInfo.get_addedget_addedReturns :the number of seconds elapsed from system's
Epoch when the resource was added to the list, or -1 on
failure.This method is available in PyGTK 2.10 and above.Returns the timestamp (seconds from system's Epoch) when the
resource was added to the recently used resources list.gtk.RecentInfo.get_modifiedget_modifiedReturns :the number of seconds elapsed from system's
Epoch when the resource was last modified, or -1 on
failure.This method is available in PyGTK 2.10 and above.Returns the timestamp (seconds from system's Epoch) when the
resource was last modified.gtk.RecentInfo.get_visitedget_visitedReturns :the number of seconds elapsed from system's
Epoch when the resource was last visited, or -1 on
failure.This method is available in PyGTK 2.10 and above.Returns the timestamp (seconds from system's Epoch) when the
resource was last visited.gtk.RecentInfo.get_private_hintget_private_hintReturns :True if the private flag was
found.This method is available in PyGTK 2.10 and above.Returns the value of the "private" flag. Resources in the
recently used list that have this flag set to True
should only be displayed by the applications that have registered
them.gtk.RecentInfo.get_application_infoget_application_infoapp_nameapp_name :the name of the application that has registered
this itemReturns :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 app_name has registered this resource
inside the recently used list, or None
otherwise.This method is available in PyGTK 2.10 and above.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 applicationIf the command line contains any escape characters defined
inside the storage specification, they will be expanded.gtk.RecentInfo.get_applicationsget_applicationslengthReturns :a list of application name
strings.This method is available in PyGTK 2.10 and above.Returns the list of applications that have registered this
resource.gtk.RecentInfo.last_applicationlast_applicationReturns :an application name.This method is available in PyGTK 2.10 and above.Returns the name of the last application that has registered the
recently used resource.gtk.RecentInfo.has_applicationhas_applicationapp_nameapp_name :a string containing an application
nameReturns :True if an application with
the name app_name was found,
False otherwise.This method is available in PyGTK 2.10 and above.Checks whether an application registered this resource using
app_name.gtk.RecentInfo.get_groupsget_groupslengthReturns :a list of group names.This method is available in PyGTK 2.10 and above.Returns a list containing the names of all groups registered
for the recently used item.gtk.RecentInfo.has_grouphas_groupgroup_namegroup_name :the name of a groupReturns :True if the group was
found.This method is available in PyGTK 2.10 and above.Checks whether group_name appears inside
the groups registered for the recently used item.gtk.RecentInfo.get_iconget_iconsizesize :the size of the icon in
pixelsReturns :a gtk.gdk.Pixbuf
containing the icon, or
None.This method is available in PyGTK 2.10 and above.Retrieves the icon of size size
associated to the resource MIME type.gtk.RecentInfo.get_short_nameget_short_nameReturns :the short name as a UTF-8 stringThis method is available in PyGTK 2.10 and above.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".gtk.RecentInfo.get_uri_displayget_uri_displayReturns :a UTF-8 string containing the resource's URI or
NoneThis method is available in PyGTK 2.10 and above.Gets a displayable version of the resource's URI.gtk.RecentInfo.get_ageget_ageReturns :a positive integer containing the number of
days elapsed since the time this resource was last
modified.This method is available in PyGTK 2.10 and above.Returns the number of days elapsed since the last update of the
resource.gtk.RecentInfo.is_localis_localReturns :True if the resource is
local.This method is available in PyGTK 2.10 and above.Checks whether the resource is local or not by looking at the
scheme of its URI.gtk.RecentInfo.existsexistsReturns :True if the resource
existsThis method is available in PyGTK 2.10 and above.Checks whether the resource still exists. At the moment this
check is done only on resources pointing to local files.gtk.RecentInfo.matchmatchinfo_binfo_b :a gtk.RecentInfoReturns :True if
info_b matches this recent
info.This method is available in PyGTK 2.10 and above.Checks if info_b matches this recent
info.