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
gio.app_info.AppInfo createAppInfo(string appName = null)Creates a [gio.app_info.AppInfo] for the specified [gtk.recent_info.RecentInfo]bool exists() nothrowChecks 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() nothrowGets 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() nothrowGets 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) nothrowGets the data regarding the application that has registered the resource pointed by info.string[] getApplications() nothrowRetrieves 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() nothrowGets 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.gio.icon.Icon getGicon() nothrowRetrieves the icon associated to the resource MIME type. Returns: a [gio.icon.Icon] containing the iconstring getMimeType() nothrowGets 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() nothrowGets 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 modifiedstring getShortName() nothrowComputes a valid UTF-8 string that can be used as the name of the item in a menu or list.string getUri() nothrowGets 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.glib.date_time.DateTime getVisited() nothrowGets 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) nothrowChecks whether an application registered this resource using app_name.bool hasGroup(string groupName) nothrowChecks whether group_name appears inside the groups registered for the recently used item info.bool isLocal() nothrowChecks whether the resource is local or not by looking at the scheme of its URI. Returns: true if the resource is localstring lastApplication() nothrowGets 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) nothrowChecks whether two [gtk.recent_info.RecentInfo] point to the same resource.