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 ]
public class RecentInfo
`GtkRecentInfo` contains the metadata associated with an item 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 `GAppInfo` for the specified `GtkRecentInfo`
- public bool exists ()
Checks whether the resource pointed by this
still exists.
- public unowned DateTime get_added ()
Gets the time 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 unowned DateTime stamp)
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 unowned string get_mime_type ()
Gets the MIME type of the resource.
- public unowned DateTime get_modified ()
Gets the time 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 unowned DateTime get_visited ()
Gets the time 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 `GtkRecentInfo` point to the same resource.
- public void unref ()
Decreases the reference count of this
by one.