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
the name of the application that should be mapped to a GAppInfo
; if %NULL is used then the default application for the MIME type is used
Checks whether the resource pointed by info
still exists.
At the moment this check is done only on resources pointing
to local files.
Gets the number of days elapsed since the last update
of the resource pointed by info
.
Gets the data regarding the application that has registered the resource
pointed by info
.
If the command line contains any escape characters defined inside the storage specification, they will be expanded.
the name of the application that has registered this item
Retrieves the list of applications that have registered this resource.
Gets the (short) description of the resource.
Gets the name of the resource.
If none has been defined, the basename of the resource is obtained.
Returns all groups registered for the recently used item info
.
The array of returned group names will be %NULL terminated, so length might optionally be %NULL.
Gets the MIME type of the resource.
Gets 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.
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”.
Gets the URI of the resource.
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 [methodGtk
.RecentInfo.get_uri].
Checks whether an application registered this resource using app_name
.
a string containing an application name
Checks whether group_name
appears inside the groups
registered for the recently used item info
.
name of a group
Checks whether the resource is local or not by looking at the scheme of its URI.
Gets the name of the last application that have registered the
recently used resource represented by info
.
Checks whether two GtkRecentInfo
point to the same resource.
a GtkRecentInfo
Increases the reference count of recent_info
by one.
Decreases the reference count of info
by one.
If the reference count reaches zero, info
is
deallocated, and the memory freed.
GtkRecentInfo
contains the metadata associated with an item in the recently used files list.