A list model that wraps GBookmarkFile.
It presents a GListModel and fills it asynchronously with the GFileInfos returned from that function.
The GFileInfos in the list have some attributes in the recent namespace added: recent::private (boolean) and recent:applications (stringv).
function "+"
(Widget : access Gtk_Bookmark_List_Record'Class)
return Glib.List_Model.Glist_Model
function "-"
(Interf : Glib.List_Model.Glist_Model)
return Gtk_Bookmark_List
Attributes_Property : constant Glib.Properties.Property_String;
The attributes to query.
Filename_Property : constant Glib.Properties.Property_String;
The bookmark file to load.
function Get_Attributes
(Self : not null access Gtk_Bookmark_List_Record) return UTF8_String
Gets the attributes queried on the children.
The queried attributes
function Get_Filename
(Self : not null access Gtk_Bookmark_List_Record) return UTF8_String
Returns the filename of the bookmark file that this list is loading.
the filename of the .xbel file
function Get_Io_Priority
(Self : not null access Gtk_Bookmark_List_Record) return Glib.Gint
Gets the IO priority to use while loading file.
The IO priority.
function Get_Item
(Self : not null access Gtk_Bookmark_List_Record;
Position : Guint) return Glib.Object.GObject
function Get_Item_Type
(Self : not null access Gtk_Bookmark_List_Record) return GType
function Get_N_Items
(Self : not null access Gtk_Bookmark_List_Record) return Guint
function Get_Type return Glib.GType
type Gtk_Bookmark_List is access all Gtk_Bookmark_List_Record'Class;
function Gtk_Bookmark_List_New
(Filename : UTF8_String := "";
Attributes : UTF8_String := "") return Gtk_Bookmark_List
Creates a new GtkBookmarkList with the given Attributes.
The bookmark file to load
The attributes to query
type Gtk_Bookmark_List_Record is new GObject_Record with null record;
procedure Gtk_New
(Self : out Gtk_Bookmark_List;
Filename : UTF8_String := "";
Attributes : UTF8_String := "")
Creates a new GtkBookmarkList with the given Attributes. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
The bookmark file to load
The attributes to query
package Implements_Glist_Model is new Glib.Types.Implements
(Glib.List_Model.Glist_Model, Gtk_Bookmark_List_Record, Gtk_Bookmark_List);
procedure Initialize
(Self : not null access Gtk_Bookmark_List_Record'Class;
Filename : UTF8_String := "";
Attributes : UTF8_String := "")
Creates a new GtkBookmarkList with the given Attributes. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
The bookmark file to load
The attributes to query
Io_Priority_Property : constant Glib.Properties.Property_Int;
Priority used when loading.
function Is_Loading
(Self : not null access Gtk_Bookmark_List_Record) return Boolean
Returns True if the files are currently being loaded. Files will be added to Self from time to time while loading is going on. The order in which are added is undefined and may change in between runs.
True if Self is loading
Item_Type_Property : constant Glib.Properties.Property_Boxed;
Type: GType The type of items. See [methodGio.ListModel.get_item_type].
procedure Items_Changed
(Self : not null access Gtk_Bookmark_List_Record;
Position : Guint;
Removed : Guint;
Added : Guint)
Loading_Property : constant Glib.Properties.Property_Boolean;
True if files are being loaded.
N_Items_Property : constant Glib.Properties.Property_Uint;
The number of items. See [methodGio.ListModel.get_n_items].
procedure Set_Attributes
(Self : not null access Gtk_Bookmark_List_Record;
Attributes : UTF8_String := "")
Sets the Attributes to be enumerated and starts the enumeration. If Attributes is null, no attributes will be queried, but a list of GFileInfos will still be created.
the attributes to enumerate
procedure Set_Io_Priority
(Self : not null access Gtk_Bookmark_List_Record;
Io_Priority : Glib.Gint)
Sets the IO priority to use while loading files. The default IO priority is G_PRIORITY_DEFAULT.
IO priority to use