GObject.Object
Gtk.RecentManager
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkRecentManager |
Class : | RecentManager |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
filename : String
|
Gtk.RecentManager | |
limit : Number
|
Gtk.RecentManager | |
parent_instance : GObject.Object
read only
|
Gtk.RecentManager | |
priv : Gtk.RecentManagerPrivate
read only
|
Gtk.RecentManager | |
size : Number
read only
|
Gtk.RecentManager |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.RecentManager
(Object properties)
Create a new Gtk.RecentManager
Create a new Gtk.RecentManager
|
||
Gtk.RecentManager.get_default
()
:
Gtk.RecentManager
Gets a unique instance of GtkRecentManager, that you can share in your application without caring about memory management.
Gets a unique instance of GtkRecentManager, that you can share in your application without caring about memory management. The returned instance will be freed when you application terminates.
|
Gtk.RecentManager | |
Gets the recent manager object associated with screen; if this function has not previously been called for the given screen, a new recent manager object will be created and associated with the screen.
Gets the recent manager object associated with screen; if this function has not previously been called for the given screen, a new recent manager object will be created and associated with the screen. Recent manager objects are fairly expensive to create, so using this function is usually a better choice than calling gtk_recent_manager_new() and setting the screen yourself; by using this function a single recent manager object will be shared between users. screen. This recent manager is associated to the with the screen and can be used as long as the screen is open. Do not ref or unref it. not be used in newly written code. Calling this function is equivalent to calling gtk_recent_manager_get_default().
|
Gtk.RecentManager | |
Adds a new resource, pointed by uri, into the recently used resources list, using the metadata specified inside the GtkRecentData structure passed in recent_data.
Adds a new resource, pointed by uri, into the recently used resources list, using the metadata specified inside the GtkRecentData structure passed in recent_data. The passed URI will be used to identify this resource inside the list. In order to register the new recently used resource, metadata about the resource must be passed as well as the URI; the metadata is stored in a GtkRecentData structure, which must contain the MIME type of the resource pointed by the URI; the name of the application that is registering the item, and a command line to be used when launching the item. Optionally, a GtkRecentData structure might contain a UTF-8 string to be used when viewing the item instead of the last component of the URI; a short description of the item; whether the item should be considered private - that is, should be displayed only by the applications that have registered it. recently used resources list, FALSE otherwise.
|
Gtk.RecentManager | |
Adds a new resource, pointed by uri, into the recently used resources list.
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_add_full(). See gtk_recent_manager_add_full() if you want to explicitly define the metadata for the resource pointed by uri. to the recently used resources list
|
Gtk.RecentManager | |
get_items
()
:
Array
Gets the list of recently used resources.
Gets the list of recently used resources. newly allocated GtkRecentInfo objects. Use gtk_recent_info_unref() on each item inside the list, and then free the list itself using g_list_free().
|
Gtk.RecentManager | |
get_limit
()
:
Number
Gets the maximum number of items that the gtk_recent_manager_get_items() function should return.
Gets the maximum number of items that the gtk_recent_manager_get_items() function should return.
|
Gtk.RecentManager | |
Gtk.RecentManager | ||
lookup_item
(String uri)
:
Gtk.RecentInfo
Searches for a URI inside the recently used resources list, and returns a structure containing informations about the resource like its MIME type, or its display name.
Searches for a URI inside the recently used resources list, and returns a structure containing informations about the resource like its MIME type, or its display name. about the resource pointed by uri, or NULL if the URI was not registered in the recently used resources list. Free with gtk_recent_info_unref().
|
Gtk.RecentManager | |
Changes the location of a recently used resource from uri to new_uri.
Changes the location of a recently used resource from uri to new_uri. Please note that this function will not affect the resource pointed by the URIs, but only the URI used in the recently used resources list.
|
Gtk.RecentManager | |
purge_items
()
:
Number
Purges every item from the recently used resources list.
Purges every item from the recently used resources list. recently used resources list.
|
Gtk.RecentManager | |
Removes a resource pointed by uri from the recently used resources list handled by a recent manager.
|
Gtk.RecentManager | |
set_limit
(Number limit)
:
none
Sets the maximum number of item that the gtk_recent_manager_get_items() function should return.
Sets the maximum number of item that the gtk_recent_manager_get_items() function should return. If limit is set to -1, then return all the items.
|
Gtk.RecentManager | |
set_screen
(Screen screen)
:
none
Sets the screen for a recent manager; the screen is used to track the user's currently configured recently used documents storage.
Sets the screen for a recent manager; the screen is used to track the user's currently configured recently used documents storage. not be used in newly written code. Calling this function has no effect.
|
Gtk.RecentManager |
Event | Defined By | |
---|---|---|
changed (RecentManager self)
:
none
|
Gtk.RecentManager |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.RecentAction
Method |
new Gtk.RecentAction.for_manager
(String name, String label, String tooltip, String stock_id, RecentManager manager)
:
Gtk.RecentAction
Create a new Gtk.RecentAction
|
Gtk.RecentChooser
Property |
recent_manager : Gtk.RecentManager
The GtkRecentManager instance used by the GtkRecentChooser to display the list of recently used resources.
|
Gtk.RecentChooserMenu
Method |
Create a new Gtk.RecentChooserMenu
|
Gtk.RecentChooserWidget
Method |
Create a new Gtk.RecentChooserWidget
|