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.FileInfo]s returned from that function.

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

Methods
GType _gType() @property
BookmarkList self()Returns `this`, for use in `with` statements.
BookmarkListGidBuilder builder()Get builder for [gtk.bookmark_list.BookmarkList] Returns: New builder object
string attributes() @propertyGet `attributes` property. Returns: The attributes to query.
void attributes(string propval) @propertySet `attributes` property. Params: propval = The attributes to query.
string filename() @propertyGet `filename` property. Returns: The bookmark file to load.
int ioPriority() @propertyGet `ioPriority` property. Returns: Priority used when loading.
void ioPriority(int propval) @propertySet `ioPriority` property. Params: propval = Priority used when loading.
gobject.types.GType itemType() @propertyGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].
bool loading() @propertyGet `loading` property. Returns: true if files are being loaded.
uint nItems() @propertyGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].
string getAttributes()Gets the attributes queried on the children. Returns: The queried attributes
string getFilename()Returns the filename of the bookmark file that this list is loading. Returns: the filename of the .xbel file
int getIoPriority()Gets the IO priority to use while loading file. Returns: The IO priority.
bool isLoading()Returns true if the files are currently being loaded.
void setAttributes(string attributes = null)Sets the attributes to be enumerated and starts the enumeration.
void setIoPriority(int ioPriority)Sets 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.
Methods
T attributes(string propval)Set `attributes` property. Params: propval = The attributes to query. Returns: Builder instance for fluent chaining
T filename(string propval)Set `filename` property. Params: propval = The bookmark file to load. Returns: Builder instance for fluent chaining
T ioPriority(int propval)Set `ioPriority` property. Params: propval = Priority used when loading. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.bookmark_list.BookmarkList]