Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkRecentInfo |
Struct : | RecentInfo |
None |
Method / Constructor | Defined By | |
---|---|---|
create_app_info
(String app_name)
:
Gio.AppInfo
Creates a GAppInfo for the specified GtkRecentInfo
In case of error, error will be set either with a GTK_RECENT_MANAGER_ERROR or a G_IO_ERROR
Creates a GAppInfo for the specified GtkRecentInfo
In case of error, error will be set either with a GTK_RECENT_MANAGER_ERROR or a G_IO_ERROR
|
Gtk.RecentInfo | |
exists
()
:
gboolean
Checks whether the resource pointed by info still exists.
Checks whether the resource pointed by info still exists. At
the moment this check is done only on resources pointing to local files.
|
Gtk.RecentInfo | |
get_added
()
:
gint32
Gets the timestamp (seconds from system's Epoch) when the resource
was added to the recently used resources list.
Gets the timestamp (seconds from system's Epoch) when the resource
was added to the recently used resources list. the resource was added to the list, or -1 on failure.
|
Gtk.RecentInfo | |
get_age
()
:
gint32
Gets the number of days elapsed since the last update of the resource
pointed by info.
Gets the number of days elapsed since the last update of the resource
pointed by info. since the time this resource was last modified.
|
Gtk.RecentInfo | |
Gets the data regarding the application that has registered the resource
pointed by info.
Gets the data regarding the application that has registered the resource
pointed by info. If the command line contains any escape characters defined inside the storage specification, they will be expanded. resource inside the recently used list, or FALSE otherwise. The modified or freed
|
Gtk.RecentInfo | |
Gtk.RecentInfo | ||
get_description
()
:
String
Gets the (short) description of the resource.
Gets the (short) description of the resource.
is owned by the recent manager, and should not be freed.
|
Gtk.RecentInfo | |
get_display_name
()
:
String
Gets the name of the resource.
Gets the name of the resource. If none has been defined, the basename
of the resource is obtained. is owned by the recent manager, and should not be freed.
|
Gtk.RecentInfo | |
get_gicon
()
:
Gio.Icon
Retrieves the icon associated to the resource MIME type.
Retrieves the icon associated to the resource MIME type.
g_object_unref() when finished using the icon
|
Gtk.RecentInfo | |
Returns all groups registered for the recently used item info.
|
Gtk.RecentInfo | |
get_icon
(gint32 size)
:
GdkPixbuf.Pixbuf
Retrieves the icon of size size associated to the resource MIME type.
Retrieves the icon of size size associated to the resource MIME type.
or NULL. Use g_object_unref() when finished using the icon.
|
Gtk.RecentInfo | |
get_mime_type
()
:
String
Gets the MIME type of the resource.
Gets the MIME type of the resource.
is owned by the recent manager, and should not be freed.
|
Gtk.RecentInfo | |
get_modified
()
:
gint32
Gets the timestamp (seconds from system's Epoch) when the resource
was last modified.
Gets the timestamp (seconds from system's Epoch) when the resource
was last modified. the resource was last modified, or -1 on failure.
|
Gtk.RecentInfo | |
get_private_hint
()
:
gboolean
Gets the value of the "private" flag.
Gets the value of the "private" flag. Resources in the recently used
list that have this flag set to TRUE should only be displayed by the applications that have registered them.
|
Gtk.RecentInfo | |
get_short_name
()
:
String
Computes a valid UTF-8 string that can be used as the name of the item in a
menu or list.
Computes a valid UTF-8 string that can be used as the name of the item in a
menu or list. For example, calling this function on an item that refers to "file:///foo/bar.txt" will yield "bar.txt". g_free().
|
Gtk.RecentInfo | |
get_uri
()
:
String
Gets the URI of the resource.
Gets the URI of the resource.
owned by the recent manager, and should not be freed.
|
Gtk.RecentInfo | |
get_uri_display
()
:
String
Gets a displayable version of the resource's URI.
Gets a displayable version of the resource's URI. If the resource
is local, it returns a local path; if the resource is not local, it returns the UTF-8 encoded content of gtk_recent_info_get_uri(). resource's URI or NULL. Use g_free() when done using it.
|
Gtk.RecentInfo | |
get_visited
()
:
gint32
Gets the timestamp (seconds from system's Epoch) when the resource
was last visited.
Gets the timestamp (seconds from system's Epoch) when the resource
was last visited. the resource was last visited, or -1 on failure.
|
Gtk.RecentInfo | |
Checks whether an application registered this resource using app_name.
|
Gtk.RecentInfo | |
Checks whether group_name appears inside the groups registered for the
recently used item info. |
Gtk.RecentInfo | |
is_local
()
:
gboolean
Checks whether the resource is local or not by looking at the
scheme of its URI.
Checks whether the resource is local or not by looking at the
scheme of its URI.
|
Gtk.RecentInfo | |
last_application
()
:
String
Gets the name of the last application that have registered the
recently used resource represented by info.
Gets the name of the last application that have registered the
recently used resource represented by info.
|
Gtk.RecentInfo | |
match
(RecentInfo info_b)
:
gboolean
Checks whether two GtkRecentInfo structures point to the same
resource.
Checks whether two GtkRecentInfo structures point to the same
resource. resource, FALSE otherwise.
|
Gtk.RecentInfo |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.RecentChooser
Method |
get_current_item
()
:
Gtk.RecentInfo
Gets the GtkRecentInfo currently selected by chooser.
|
Gtk.RecentManager
Method |
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. |