RecentInfo
Object Hierarchy:
Description:
[ CCode ( ref_function = "gtk_recent_info_ref" , type_id = "gtk_recent_info_get_type ()" , unref_function = "gtk_recent_info_unref" ) ]
[ Compact ]
[ Version ( since = "2.10" ) ]
public class RecentInfo
RecentInfo-struct contains private data only, and should be accessed using the provided API.
RecentInfo constains all the meta-data associated with an entry in the recently used files list.
Content:
Methods:
- public unowned RecentInfo @ref ()
Increases the reference count of recent_info
by one.
- public AppInfo? create_app_info (string? app_name) throws Error
Creates a AppInfo for the specified
RecentInfo
- public bool exists ()
Checks whether the resource pointed by this
still exists.
- public time_t get_added ()
Gets the timestamp (seconds from system’s Epoch) when the resource
was added to the recently used resources list.
- public int get_age ()
Gets the number of days elapsed since the last update of the resource
pointed by this.
- public bool get_application_info (string app_name, out unowned string app_exec, out uint count, out time_t time_)
Gets the data regarding the application that has registered the
resource pointed by this.
- public string[] get_applications ()
Retrieves the list of applications that have registered this resource.
- public unowned string get_description ()
Gets the (short) description of the resource.
- public unowned string get_display_name ()
Gets the name of the resource.
- public Icon? get_gicon ()
Retrieves the icon associated to the resource MIME type.
- public string[] get_groups ()
Returns all groups registered for the recently used item
this.
- public Pixbuf? get_icon (int size)
Retrieves the icon of size size
associated to the
resource MIME type.
- public unowned string get_mime_type ()
Gets the MIME type of the resource.
- public time_t get_modified ()
Gets the timestamp (seconds from system’s Epoch) when the meta-data
for the resource was last modified.
- public bool get_private_hint ()
Gets the value of the “private” flag.
- public string get_short_name ()
Computes a valid UTF-8 string that can be used as the name of the item
in a menu or list.
- public unowned string get_uri ()
Gets the URI of the resource.
- public string? get_uri_display ()
Gets a displayable version of the resource’s URI.
- public time_t get_visited ()
Gets the timestamp (seconds from system’s Epoch) when the meta-data
for the resource was last visited.
- public bool has_application (string app_name)
Checks whether an application registered this resource using
app_name
.
- public bool has_group (string group_name)
Checks whether group_name
appears inside the groups
registered for the recently used item this.
- public bool is_local ()
Checks whether the resource is local or not by looking at the scheme
of its URI.
- public string last_application ()
Gets the name of the last application that have registered the
recently used resource represented by this.
- public bool match (RecentInfo info_b)
Checks whether two RecentInfo-struct point
to the same resource.
- public void unref ()
Decreases the reference count of this
by one.