gtk.RecentInfo — information found when looking up an entry of the recently used files list. (new in PyGTK 2.10)
class gtk.RecentInfo(gobject.GBoxed): |
|
Returns : | the URI of the resource. |
This method is available in PyGTK 2.10 and above.
Returns the URI of the resource.
|
Returns : | 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.
|
Returns : | the description of the resource. |
This method is available in PyGTK 2.10 and above.
Returns the (short) description of the resource.
|
Returns : | the MIME type of the resource. |
This method is available in PyGTK 2.10 and above.
Returns the MIME type of the resource.
|
Returns : | 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.
|
Returns : | 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.
|
Returns : | 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.
|
Returns : | 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.
|
app_name : | the name of the application that has registered this item |
Returns : | 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 application
If the command line contains any escape characters defined inside the storage specification, they will be expanded.
|
Returns : | 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.
|
Returns : | 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.
|
app_name : | a string containing an application name |
Returns : | 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.
|
Returns : | 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.
|
group_name : | the name of a group |
Returns : | 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.
|
size : | the size of the icon in pixels |
Returns : | 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.
|
Returns : | the short name as a UTF-8 string |
This 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".
|
Returns : | a UTF-8 string containing the resource's URI or None |
This method is available in PyGTK 2.10 and above.
Gets a displayable version of the resource's URI.
|
Returns : | 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.
|
Returns : | 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.
|
Returns : | TRUE if the resource exists |
This 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.
|
info_b : | a gtk.RecentInfo |
Returns : | 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.