gtk.bookmark_list

Module for [BookmarkList] class

Types 3

gtk.bookmark_list.BookmarkList is a list model that wraps glib.bookmark_file.BookmarkFile.

It presents a gio.list_model.ListModel and fills it asynchronously with the gio.file_info.FileInfos returned from that function.

The gio.file_info.FileInfos in the list have some attributes in the recent namespace added: recent::private (boolean) and recent:applications (stringv).

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
BookmarkList self() nothrowReturns `this`, for use in `with` statements.
BookmarkListGidBuilder builder() static nothrowGet builder for [gtk.bookmark_list.BookmarkList] Returns: New builder object
string attributes() @property nothrowGet `attributes` property. Returns: The attributes to query.
void attributes(string propval) @property nothrowSet `attributes` property. Params: propval = The attributes to query.
string filename() @property nothrowGet `filename` property. Returns: The bookmark file to load.
int ioPriority() @property nothrowGet `ioPriority` property. Returns: Priority used when loading.
void ioPriority(int propval) @property nothrowSet `ioPriority` property. Params: propval = Priority used when loading.
gobject.types.GType itemType() @property nothrowGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].
bool loading() @property nothrowGet `loading` property. Returns: true if files are being loaded.
uint nItems() @property nothrowGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].
string getAttributes() nothrowGets the attributes queried on the children. Returns: The queried attributes
string getFilename() nothrowReturns the filename of the bookmark file that this list is loading. Returns: the filename of the .xbel file
int getIoPriority() nothrowGets the IO priority to use while loading file. Returns: The IO priority.
bool isLoading() nothrowReturns true if the files are currently being loaded.
void setAttributes(string attributes = null) nothrowSets the attributes to be enumerated and starts the enumeration.
void setIoPriority(int ioPriority) nothrowSets the IO priority to use while loading files.
Constructors
this(void * ptr, Flag!"Take" take)
this(string filename = null, string attributes = null)Creates a new [gtk.bookmark_list.BookmarkList] with the given attributes.

Fluent builder implementation template for gtk.bookmark_list.BookmarkList

Methods
T attributes(string propval) nothrowSet `attributes` property. Params: propval = The attributes to query. Returns: Builder instance for fluent chaining
T filename(string propval) nothrowSet `filename` property. Params: propval = The bookmark file to load. Returns: Builder instance for fluent chaining
T ioPriority(int propval) nothrowSet `ioPriority` property. Params: propval = Priority used when loading. Returns: Builder instance for fluent chaining
Methods
BookmarkList build() nothrowCreate object from builder. Returns: New object