Gtk.Recent_Info.Gtk_Recent_Info-struct contains private data only, and should be accessed using the provided API.
Gtk.Recent_Info.Gtk_Recent_Info constains all the meta-data associated with an entry in the recently used files list.
function Create_App_Info
(Self : Gtk_Recent_Info;
App_Name : UTF8_String := "") return Glib.GApp_Info
Creates a Glib.GApp_Info for the specified Gtk.Recent_Info.Gtk_Recent_Info
the name of the application that should be mapped to a Glib.GApp_Info; if null is used then the default application for the MIME type is used
the newly created Glib.GApp_Info, or null. In case of error, Error will be set either with a GTK_RECENT_MANAGER_ERROR or a G_IO_ERROR
function Exists (Self : Gtk_Recent_Info) return Boolean
Checks whether the resource pointed by Info still exists. At the moment this check is done only on resources pointing to local files. Since: gtk+ 2.10
True if the resource exists
function From_Object (Object : System.Address) return Gtk_Recent_Info
function From_Object_Free (B : access Gtk_Recent_Info'Class) return Gtk_Recent_Info
function Get_Added (Self : Gtk_Recent_Info) return time_t
Gets the timestamp (seconds from system's Epoch) when the resource was added to the recently used resources list. Since: gtk+ 2.10
the number of seconds elapsed from system's Epoch when the resource was added to the list, or -1 on failure.
function Get_Age (Self : Gtk_Recent_Info) return Glib.Gint
Gets the number of days elapsed since the last update of the resource pointed by Info. Since: gtk+ 2.10
a positive integer containing the number of days elapsed since the time this resource was last modified
function Get_Description (Self : Gtk_Recent_Info) return UTF8_String
Gets the (short) description of the resource. Since: gtk+ 2.10
the description of the resource. The returned string is owned by the recent manager, and should not be freed.
function Get_Display_Name (Self : Gtk_Recent_Info) return UTF8_String
Gets the name of the resource. If none has been defined, the basename of the resource is obtained. Since: gtk+ 2.10
the display name of the resource. The returned string is owned by the recent manager, and should not be freed.
function Get_Gicon (Self : Gtk_Recent_Info) return Glib.G_Icon.G_Icon
Retrieves the icon associated to the resource MIME type. Since: gtk+ 2.22
a Glib.G_Icon.G_Icon containing the icon, or null. Use g_object_unref when finished using the icon
function Get_Icon
(Self : Gtk_Recent_Info;
Size : Glib.Gint) return Gdk.Pixbuf.Gdk_Pixbuf
Retrieves the icon of size Size associated to the resource MIME type. Since: gtk+ 2.10
the size of the icon in pixels
a Gdk.Pixbuf.Gdk_Pixbuf containing the icon, or null. Use g_object_unref when finished using the icon.
function Get_Mime_Type (Self : Gtk_Recent_Info) return UTF8_String
Gets the MIME type of the resource. Since: gtk+ 2.10
the MIME type of the resource. The returned string is owned by the recent manager, and should not be freed.
function Get_Modified (Self : Gtk_Recent_Info) return time_t
Gets the timestamp (seconds from system's Epoch) when the meta-data for the resource was last modified. Since: gtk+ 2.10
the number of seconds elapsed from system's Epoch when the resource was last modified, or -1 on failure.
function Get_Private_Hint (Self : Gtk_Recent_Info) return Boolean
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. Since: gtk+ 2.10
True if the private flag was found, False otherwise
function Get_Short_Name (Self : Gtk_Recent_Info) return UTF8_String
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". Since: gtk+ 2.10
A newly-allocated string in UTF-8 encoding free it with g_free
function Get_Type return Glib.GType
function Get_Uri (Self : Gtk_Recent_Info) return UTF8_String
Gets the URI of the resource. Since: gtk+ 2.10
the URI of the resource. The returned string is owned by the recent manager, and should not be freed.
function Get_Uri_Display (Self : Gtk_Recent_Info) return UTF8_String
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. Since: gtk+ 2.10
a newly allocated UTF-8 string containing the resource's URI or null. Use g_free when done using it.
function Get_Visited (Self : Gtk_Recent_Info) return time_t
Gets the timestamp (seconds from system's Epoch) when the meta-data for the resource was last visited. Since: gtk+ 2.10
the number of seconds elapsed from system's Epoch when the resource was last visited, or -1 on failure.
type Gtk_Recent_Info is new Glib.C_Boxed with null record;
function Has_Application
(Self : Gtk_Recent_Info;
App_Name : UTF8_String) return Boolean
Checks whether an application registered this resource using App_Name. Since: gtk+ 2.10
a string containing an application name
True if an application with name App_Name was found, False otherwise
function Has_Group
(Self : Gtk_Recent_Info;
Group_Name : UTF8_String) return Boolean
Checks whether Group_Name appears inside the groups registered for the recently used item Info. Since: gtk+ 2.10
name of a group
True if the group was found
function Is_Local (Self : Gtk_Recent_Info) return Boolean
Checks whether the resource is local or not by looking at the scheme of its URI. Since: gtk+ 2.10
True if the resource is local
function Last_Application (Self : Gtk_Recent_Info) return UTF8_String
Gets the name of the last application that have registered the recently used resource represented by Info. Since: gtk+ 2.10
an application name. Use g_free to free it.
function Match
(Self : Gtk_Recent_Info;
Info_B : Gtk_Recent_Info) return Boolean
Checks whether two Gtk.Recent_Info.Gtk_Recent_Info-struct point to the same resource. Since: gtk+ 2.10
a Gtk.Recent_Info.Gtk_Recent_Info
True if both Gtk.Recent_Info.Gtk_Recent_Info-struct point to the same resource, False otherwise
Null_Gtk_Recent_Info : constant Gtk_Recent_Info;
procedure Ref (Self : Gtk_Recent_Info)
Increases the reference count of Recent_Info by one. Since: gtk+ 2.10
subtype time_t is Long_Integer;
Type to interface with C's time_t type. To convert this to/from an Ada type, look at Ada.Calendar.Conversion_Operations and be sure to pay special attention to the ranges each type is capable of representing.
procedure Unref (Self : Gtk_Recent_Info)
Decreases the reference count of Info by one. If the reference count reaches zero, Info is deallocated, and the memory freed. Since: gtk+ 2.10