gtk.recent_info
Module for [RecentInfo] class
class RecentInfo
Types 1
classRecentInfo : gobject.boxed.Boxed
[gtk.recent_info.RecentInfo] contains the metadata associated with an item in the recently used files list.
Methods
RecentInfo self()Returns `this`, for use in `with` statements.gio.app_info.AppInfo createAppInfo(string appName = null)Creates a [gio.appinfo.AppInfo] for the specified [gtk.recentinfo.RecentInfo]bool exists()Checks whether the resource pointed by info still exists. At the moment this check is done only on resources pointing to local files. Returns: true if the resource existsglib.date_time.DateTime getAdded()Gets the time when the resource was added to the recently used resources list. Returns: a [glib.date_time.DateTime] for the time when the resource was addedint getAge()Gets the number of days elapsed since the last update of the resource pointed by info. Returns: a positive integer containing the number of days elapsed since the time this resource was last modifiedbool getApplicationInfo(string appName, out string appExec, out uint count, out glib.date_time.DateTime stamp)Gets the data regarding the application that has registered the resource pointed by info.string[] getApplications()Retrieves the list of applications that have registered this resource. Returns: a newly allocated null-terminated array of strings. Use [glib.global.strfreev] to free it.string getDescription()Gets the (short) description of the resource. Returns: the description of the resource. The returned string is owned by the recent manager, and should not be freed.string getDisplayName()Gets the name of the resource.gio.icon.Icon getGicon()Retrieves the icon associated to the resource MIME type. Returns: a [gio.icon.Icon] containing the iconstring[] getGroups()Returns all groups registered for the recently used item info.string getMimeType()Gets the MIME type of the resource. Returns: the MIME type of the resource. The returned string is owned by the recent manager, and should not be freed.glib.date_time.DateTime getModified()Gets the time when the meta-data for the resource was last modified. Returns: a [glib.date_time.DateTime] for the time when the resource was last modifiedbool getPrivateHint()Gets the value of the “private” flag.string getShortName()Computes a valid UTF-8 string that can be used as the name of the item in a menu or list.string getUri()Gets the URI of the resource. Returns: the URI of the resource. The returned string is owned by the recent manager, and should not be freed.string getUriDisplay()Gets a displayable version of the resource’s URI.glib.date_time.DateTime getVisited()Gets the time when the meta-data for the resource was last visited. Returns: a [glib.date_time.DateTime] for the time when the resource was last visitedbool hasApplication(string appName)Checks whether an application registered this resource using app_name.bool hasGroup(string groupName)Checks whether group_name appears inside the groups registered for the recently used item info.bool isLocal()Checks whether the resource is local or not by looking at the scheme of its URI. Returns: true if the resource is localstring lastApplication()Gets the name of the last application that have registered the recently used resource represented by info. Returns: an application name. Use [glib.global.gfree] to free it.bool match(gtk.recent_info.RecentInfo infoB)Checks whether two [gtk.recent_info.RecentInfo] point to the same resource.