Contains the metadata associated with an item in the recently used files list.
Creates a <GAppInfo> for the specified
<GtkRecentInfo>
In case of error, error will be set either with a
GTK_RECENT_MANAGER_ERROR or a G_IO_ERROR
Passed: a <GtkRecentInfo>.
Passed, or left out: a string, or #f.
the name of the application that should be mapped to a
<GAppInfo>; if #f is used then the
default application for the MIME type is used
Returned: a <GAppInfo>, or #f.
the newly created <GAppInfo>
Checks whether the resource pointed by self still exists. At the moment this check is done only on resources pointing to local files.
Passed: a <GtkRecentInfo>.
Returned: a boolean.
#t if the resource exists
Gets the time when the resource was added to the recently used resources list.
Passed: a <GtkRecentInfo>.
Returned: a <GDateTime>.
a <GDateTime> for the time when the resource
was added
Gets the number of days elapsed since the last update of the resource pointed by self.
Passed: a <GtkRecentInfo>.
Returned: a 32-bit integer.
a positive integer containing the number of days elapsed since the time this resource was last modified
Gets the data regarding the application that has registered the resource pointed by self.
If the command line contains any escape characters defined inside the storage specification, they will be expanded.
Passed: a <GtkRecentInfo>.
Passed: a string.
the name of the application that has registered this item
Returned: a boolean.
#t if an application with app-name has registered this
resource inside the recently used list, or #f otherwise. The
app-exec string is owned by the
<GtkRecentInfo> and should not be modified or
freed
Returned: a string.
return location for the string containing the command line
Returned: an unsigned 32-bit integer.
return location for the number of times this item was registered
Returned: a <GDateTime>.
return location for the time this item was last registered for this application
Retrieves the list of applications that have registered this resource.
Passed: a <GtkRecentInfo>.
Returned: a vector, each a string.
a newly allocated #f-terminated array of strings. Use
strfreev to free it.
Not returned: it is the length of %return.
return location for the length of the returned list
Gets the (short) description of the resource.
Passed: a <GtkRecentInfo>.
Returned: a string.
the description of the resource. The returned string is owned by the recent manager, and should not be freed.
Gets the name of the resource.
If none has been defined, the basename of the resource is obtained.
Passed: a <GtkRecentInfo>.
Returned: a string.
the display name of the resource. The returned string is owned by the recent manager, and should not be freed.
Retrieves the icon associated to the resource MIME type.
Passed: a <GtkRecentInfo>.
Returned: a <GIcon>, or #f.
a <GIcon> containing the icon
Returns all groups registered for the recently used item self.
The array of returned group names will be #f terminated, so
length might optionally be #f.
Passed: a <GtkRecentInfo>.
Returned: a vector, each a string.
a newly allocated #f terminated array of strings. Use
strfreev to free it.
Not returned: it is the length of %return.
return location for the number of groups returned
Gets the MIME type of the resource.
Passed: a <GtkRecentInfo>.
Returned: a string.
the MIME type of the resource. The returned string is owned by the recent manager, and should not be freed.
Gets the time when the meta-data for the resource was last modified.
Passed: a <GtkRecentInfo>.
Returned: a <GDateTime>.
a <GDateTime> for the time when the resource
was last modified
Gets the value of the “private” flag.
Resources in the recently used list that have this flag set to #t
should only be displayed by the applications that have registered them.
Passed: a <GtkRecentInfo>.
Returned: a boolean.
#t if the private flag was found, #f otherwise
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”.
Passed: a <GtkRecentInfo>.
Returned: a string.
A newly-allocated string in UTF-8 encoding free it with
byte-array:free
Gets the URI of the resource.
Passed: a <GtkRecentInfo>.
a tkRecentInfo
Returned: a string.
the URI of the resource. The returned string is owned by the recent manager, and should not be freed.
Gets a displayable version of the resource’s URI.
If the resource is local, it returns a local path; if the resource is
not local, it returns the UTF-8 encoded content of recent-info:get-uri.
Passed: a <GtkRecentInfo>.
Returned: a string, or #f.
a newly allocated UTF-8 string containing the resource’s URI or
#f. Use byte-array:free when done using
it.
Gets the time when the meta-data for the resource was last visited.
Passed: a <GtkRecentInfo>.
Returned: a <GDateTime>.
a <GDateTime> for the time when the resource
was last visited
Checks whether an application registered this resource using app-name.
Passed: a <GtkRecentInfo>.
Passed: a string.
a string containing an application name
Returned: a boolean.
#t if an application with name app-name was found,
#f otherwise
Checks whether group-name appears inside the groups registered for the recently used item self.
Passed: a <GtkRecentInfo>.
Passed: a string.
name of a group
Returned: a boolean.
#t if the group was found
Checks whether the resource is local or not by looking at the scheme of its URI.
Passed: a <GtkRecentInfo>.
Returned: a boolean.
#t if the resource is local
Gets the name of the last application that have registered the recently used resource represented by self.
Passed: a <GtkRecentInfo>.
Returned: a string.
an application name. Use byte-array:free to
free it.
Checks whether two <GtkRecentInfo> point to the
same resource.
Passed: a <GtkRecentInfo>.
Passed: a <GtkRecentInfo>.
Returned: a boolean.
#t if both <GtkRecentInfo> point to the
same resource, #f otherwise
Increases the reference count of recent-info by one.
Passed: a <GtkRecentInfo>.
Returned: a <GtkRecentInfo>.
the recent info object with its reference count increased by one
Decreases the reference count of self by one.
If the reference count reaches zero, self is deallocated, and the memory freed.
Passed: a <GtkRecentInfo>.