Creates a Gio.AppInfo for the specified Gtk.RecentInfo
Optionalapp_name: stringthe name of the application that should be mapped to a Gio.AppInfo; if null is used then the default application for the MIME type is used
the newly created Gio.AppInfo, or null. In case of error, error will be set either with a GTK_RECENT_MANAGER_ERROR or a G_IO_ERROR
Checks whether the resource pointed by info still exists.
At the moment this check is done only on resources pointing
to local files.
true if the resource exists
Gets the timestamp (seconds from system’s Epoch) when the resource was added to the recently used resources list.
the number of seconds elapsed from system’s Epoch when the resource was added to the list, or -1 on failure.
Gets the number of days elapsed since the last update
of the resource pointed by info.
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 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
true if an application with app_name has registered this resource inside the recently used list, or false otherwise. The app_exec string is owned by the Gtk.RecentInfo and should not be modified or freed
Retrieves the list of applications that have registered this resource.
a newly allocated null-terminated array of strings. Use g_strfreev() to free it.
Gets the (short) description of the resource.
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.
the display name of the resource. The returned string is owned by the recent manager, and should not be freed.
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.
a newly allocated null terminated array of strings. Use g_strfreev() to free it.
Retrieves the icon of size size associated to the resource MIME type.
the size of the icon in pixels
a GdkPixbuf.Pixbuf containing the icon, or null. Use g_object_unref() when finished using the icon.
Gets the MIME type of the resource.
the MIME type of the resource. The returned string is owned by the recent manager, and should not be freed.
Gets the timestamp (seconds from system’s Epoch) when the meta-data for the resource was last modified.
the number of seconds elapsed from system’s Epoch when the resource was last modified, or -1 on failure.
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.
true if the private flag was found, false 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”.
A newly-allocated string in UTF-8 encoding free it with g_free()
Gets the URI of the resource.
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 gtk_recent_info_get_uri().
a newly allocated UTF-8 string containing the resource’s URI or null. Use g_free() when done using it.
Gets the timestamp (seconds from system’s Epoch) when the meta-data for the resource was last visited.
the number of seconds elapsed from system’s Epoch when the resource was last visited, or -1 on failure.
Checks whether an application registered this resource using app_name.
a string containing an application name
true if an application with name app_name was found, false otherwise
Checks whether group_name appears inside the groups
registered for the recently used item info.
name of a group
true if the group was found
Checks whether the resource is local or not by looking at the scheme of its URI.
true if the resource is local
Gets the name of the last application that have registered the
recently used resource represented by info.
an application name. Use g_free() to free it.
Checks whether two Gtk.RecentInfo-struct point to the same resource.
true if both Gtk.RecentInfo-struct point to the same resource, false otherwise
Increases the reference count of recent_info by one.
the recent info object with its reference count increased by one
Decreases the reference count of info by one. If the reference
count reaches zero, info is deallocated, and the memory freed.
Gtk.RecentInfo-struct contains private data only, and should be accessed using the provided API.
Gtk.RecentInfo constains all the meta-data associated with an entry in the recently used files list.
Since
2.10