Package: gtk
Class gtk:recent-manager
Superclassesgobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails The gtk:recent-manager object 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 registered it. The recently used files list is
per user. The gtk:recent-manager object acts like a database of all the recently used files. You can create new gtk:recent-manager objects, but it is more efficient to use the default manager created by GTK. Adding a new recently used file is as simple as: (let ((uri "file:///home/ ... uri to add ...") (manager (gtk:recent-manager-default))) (gtk:recent-manager-add-item manager uri) ... )The gtk:recent-manager will try to gather all the needed information from the file itself through GIO. Looking up the meta-data associated with a recently used file given its URI requires calling the gtk:recent-manager-lookup-item function: (let* ((uri "file:///home/ ... uri to look up ...") (manager (gtk:recent-manager-default)) (info (gtk:recent-manager-lookup-item manager uri))) (when info ;; Use the object ... ))In order to retrieve the list of recently used files, you can use the gtk:recent-manager-items function, which returns a list of gtk:recent-info instances. Note that the maximum age of the recently used files list is controllable through the gtk-recent-files-max-age setting of the gtk:settings class. Signal DetailsThe "changed" signallambda (manager) :run-first
| Returned bySlot Access FunctionsInherited Slot Access Functions |
2025-1-6