GObject.Object
Gtk.RecentManager
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkRecentManager |
Class : | RecentManager |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
filename : String
The full path to the file to be used to store and read the recently
used resources list The full path to the file to be used to store and read the recently
used resources list |
Gtk.RecentManager | |
parent_instance : GObject.Object
read only
|
Gtk.RecentManager | |
priv : Gtk.RecentManagerPrivate
read only
|
Gtk.RecentManager | |
size : gint32
read only
The size of the recently used resources list.
The size of the recently used resources list.
|
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.
|
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 | |
Checks whether there is a recently used resource registered
with uri inside the recent manager. |
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
()
:
gint32
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.
Removes a resource pointed by uri from the recently used resources
list handled by a recent manager. removed by the recently used resources list, and FALSE otherwise.
|
Gtk.RecentManager |
Event | Defined By | |
---|---|---|
changed (RecentManager self)
:
none
Emitted when the current recently used resources manager changes its
contents, either by calling gtk_recent_manager_add_item() or by another application.
Emitted when the current recently used resources manager changes its
contents, either by calling gtk_recent_manager_add_item() or by another application.
|
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.Action
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
|