1.14 <GtkBookmarkList>

Class: <GtkBookmarkList>

It derives from <GObject>.

A list model that wraps <GBookmarkFile>.

It presents a <GListModel> and fills it asynchronously with the <GFileInfo>s returned from that function.

The <GFileInfo>s in the list have some attributes in the recent namespace added: recent::private (boolean) and recent:applications (stringv).

Properties

Property: bookmark-list:attributes self

The attributes to query.

Its value is a string, or #f.

Set it with (set! (bookmark-list:attributes self) value).

Property: bookmark-list:filename self

The bookmark file to load.

Its value is a string, or #f.

It can only be set when the object is made, with #:filename.

Property: bookmark-list:io-priority self

Priority used when loading.

Its value is a 32-bit integer.

Set it with (set! (bookmark-list:io-priority self) value).

Property: bookmark-list:item-type self

The type of items. See list-model:get-item-type.

Its value is a class, or a GType number.

It is read only.

Property: bookmark-list:loading self

#t if files are being loaded.

Its value is a boolean.

It is read only.

Property: bookmark-list:n-items self

The number of items. See list-model:get-n-items.

Its value is an unsigned 32-bit integer.

It is read only.

Procedures

Method: bookmark-list:get-attributes self ⇒ %return
Method: get-attributes self ⇒ %return

Gets the attributes queried on the children.

self

Passed: a <GtkBookmarkList>.

a <GtkBookmarkList>

%return

Returned: a string, or #f.

The queried attributes

Method: bookmark-list:get-filename self ⇒ %return
Method: get-filename self ⇒ %return

Returns the filename of the bookmark file that this list is loading.

self

Passed: a <GtkBookmarkList>.

a <GtkBookmarkList>

%return

Returned: a file name, as a string.

the filename of the .xbel file

Method: bookmark-list:get-io-priority self ⇒ %return
Method: get-io-priority self ⇒ %return

Gets the IO priority to use while loading file.

self

Passed: a <GtkBookmarkList>.

a <GtkBookmarkList>

%return

Returned: a 32-bit integer.

The IO priority.

Method: bookmark-list:is-loading? self ⇒ %return
Method: is-loading? self ⇒ %return

Returns #t 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.

self

Passed: a <GtkBookmarkList>.

a <GtkBookmarkList>

%return

Returned: a boolean.

#t if self is loading

Procedure: bookmark-list:new [filename] [attributes] ⇒ %return

Creates a new <GtkBookmarkList> with the given attributes.

filename

Passed, or left out: a file name, as a string, or #f.

The bookmark file to load

attributes

Passed, or left out: a string, or #f.

The attributes to query

%return

Returned: a <GtkBookmarkList>.

a new <GtkBookmarkList>

Method: bookmark-list:set-attributes self [attributes]
Method: set-attributes self [attributes]

Sets the attributes to be enumerated and starts the enumeration.

If attributes is #f, no attributes will be queried, but a list of <GFileInfo>s will still be created.

self

Passed: a <GtkBookmarkList>.

a <GtkBookmarkList>

attributes

Passed, or left out: a string, or #f.

the attributes to enumerate

Method: bookmark-list:set-io-priority self io-priority
Method: set-io-priority self io-priority

Sets the IO priority to use while loading files.

The default IO priority is G_PRIORITY_DEFAULT.

self

Passed: a <GtkBookmarkList>.

a <GtkBookmarkList>

io-priority

Passed: a 32-bit integer.

IO priority to use