Managing Recently Used Files
gtkRecentManagerAddFull(object, uri, recent.data)
gtkRecentManagerRemoveItem(object, uri, .errwarn = TRUE)
gtkRecentManagerLookupItem(object, uri, .errwarn = TRUE)
gtkRecentManagerMoveItem(object, uri, new.uri, .errwarn = TRUE)
gtkRecentManagerPurgeItems(object, .errwarn = TRUE)
GtkRecentManager provides a facility for adding, removing and
looking up recently used files. Each recently used file is
identified by its URI, and has meta-data associated to it, like
the names and command lines of the applications that have
registered it, the number of time each application has registered
the same file, the mime type of the file and whether the file
should be displayed only by the applications that have
GtkRecentManager acts like a database of all the recently
used files. You can create new
GtkRecentManager objects, but
it is more efficient to use the standard recent manager for
GdkScreen so that informations about the recently used
files is shared with other people using them. In case the
default screen is being used, adding a new recently used
file is as simple as:
manager <- gtkRecentManagerGetDefault() manager$addItem(file_uri)
1 2 3 4 5
Recently used files are supported since GTK+ 2.10.
Acts as a database of information about the list of recently
used files. Normally, you retrieve the recent manager for a
particular screen using
and it will contain information about current recent manager
for that screen.
Contains informations found when looking up an entry of the recently used files list.
Meta-data to be passed to
registering a recently used resource.
GtkRecentData is a transparent-type.
[character] a UTF-8 encoded string, containing the name of the recently
used resource to be displayed, or
[character] a UTF-8 encoded string, containing a short description of
the resource, or
[character] the MIME type of the resource;
[character] the name of the application that is registering this recently used resource;
[character] command line used to launch this resource; may contain the "%f" and "%u" escape characters which will be expanded to the resource file path and URI respectively when the command line is retrieved;
[character] a vector of strings containing groups names;
[logical] whether this resource should be displayed only by the applications that have registered it or not.
gtkRecentManager is the equivalent of
Error codes for GtkRecentManager operations
the URI specified does not exists in the recently used resources list.
the URI specified is not valid.
the supplied string is not UTF-8 encoded.
no application has registered the specified item.
failure while reading the recently used resources file.
failure while writing the recently used resources file.
Emitted when the current recently used resources manager changes its contents. Since 2.10
the recent manager
user data set when the signal handler was connected.
filename[character : * : Read / Write / Construct Only]
The full path to the file to be used to store and read the recently used resources list Default value: NULL Since 2.10
limit[integer : Read / Write]
The maximum number of items to be returned by the
Allowed values: >= -1 Default value: -1 Since 2.10
size[integer : Read]
The size of the recently used resources list. Allowed values: >= -1 Default value: 0 Since 2.10
Derived by RGtkGen from GTK+ documentation
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.