Gtk.BookmarkList¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/co/en |
|||
r/w/en |
|||
r |
|||
r/en |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.BookmarkList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkBookmarkList
is a list model that wrapsGBookmarkFile
.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) andrecent:applications
(stringv).- classmethod new(filename, attributes)[source]¶
- Parameters:
- Returns:
a new
GtkBookmarkList
- Return type:
Creates a new
GtkBookmarkList
with the given attributes.
- get_filename()[source]¶
- Returns:
the filename of the .xbel file
- Return type:
Returns the filename of the bookmark file that this list is loading.
- get_io_priority()[source]¶
- Returns:
The IO priority.
- Return type:
Gets the IO priority to use while loading file.
- is_loading()[source]¶
-
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.
- set_attributes(attributes)[source]¶
-
Sets the attributes to be enumerated and starts the enumeration.
If attributes is
None
, no attributes will be queried, but a list of ``GFileInfo``s will still be created.
- set_io_priority(io_priority)[source]¶
- Parameters:
io_priority (
int
) – IO priority to use
Sets the IO priority to use while loading files.
The default IO priority is
GLib.PRIORITY_DEFAULT
.
Property Details¶
- Gtk.BookmarkList.props.attributes¶
- Name:
attributes
- Type:
- Default Value:
- Flags:
The attributes to query.
- Gtk.BookmarkList.props.filename¶
- Name:
filename
- Type:
- Default Value:
- Flags:
The bookmark file to load.
- Gtk.BookmarkList.props.io_priority¶
- Name:
io-priority
- Type:
- Default Value:
0
- Flags:
Priority used when loading.
- Gtk.BookmarkList.props.item_type¶
- Name:
item-type
- Type:
- Default Value:
<GType GFileInfo>
- Flags:
The type of items. See [method`Gio`.ListModel.get_item_type].
New in version 4.8.