RecentManager.addItem

Adds a new resource, pointed by uri, into the recently used resources list.

This function automatically retrieves some of the needed metadata and setting other metadata to common default values; it then feeds the data to gtk.recent_manager.RecentManager.addFull.

See gtk.recent_manager.RecentManager.addFull if you want to explicitly define the metadata for the resource pointed by uri.

class RecentManager
bool
addItem
(
string uri
)

Parameters

uri string

a valid URI

Return Value

Type: bool

true if the new item was successfully added to the recently used resources list