GtkBookmarkList — A list model for recently used files
GtkBookmarkList * | gtk_bookmark_list_new () |
const char * | gtk_bookmark_list_get_filename () |
void | gtk_bookmark_list_set_attributes () |
const char * | gtk_bookmark_list_get_attributes () |
void | gtk_bookmark_list_set_io_priority () |
int | gtk_bookmark_list_get_io_priority () |
gboolean | gtk_bookmark_list_is_loading () |
char * | attributes | Read / Write |
char * | filename | Read / Write / Construct Only |
int | io-priority | Read / Write |
gboolean | loading | Read |
GObject ╰── GtkBookmarkList
GtkBookmarkList implements GListModel.
#include <gtk/gtk.h>
GtkBookmarkList is 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).
GtkBookmarkList * gtk_bookmark_list_new (const char *filename
,const char *attributes
);
Creates a new GtkBookmarkList with the given attributes
.
filename | The bookmark file to load. | [allow-none] |
attributes | The attributes to query. | [allow-none] |
a new GtkBookmarkList
const char *
gtk_bookmark_list_get_filename (GtkBookmarkList *self
);
Returns the filename of the bookmark file that this list is loading.
self |
the filename of the .xbel file
void gtk_bookmark_list_set_attributes (GtkBookmarkList *self
,const char *attributes
);
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.
self | ||
attributes | the attributes to enumerate. | [allow-none] |
const char *
gtk_bookmark_list_get_attributes (GtkBookmarkList *self
);
Gets the attributes queried on the children.
self |
The queried attributes.
[nullable][transfer none]
void gtk_bookmark_list_set_io_priority (GtkBookmarkList *self
,int io_priority
);
Sets the IO priority to use while loading files.
The default IO priority is G_PRIORITY_DEFAULT
.
self | ||
io_priority | IO priority to use |
int
gtk_bookmark_list_get_io_priority (GtkBookmarkList *self
);
Gets the IO priority set via gtk_bookmark_list_set_io_priority()
.
self |
The IO priority.
gboolean
gtk_bookmark_list_is_loading (GtkBookmarkList *self
);
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.
self |
TRUE
if self
is loading
typedef struct _GtkBookmarkList GtkBookmarkList;
“attributes”
property“attributes” char *
The attributes to query
Owner: GtkBookmarkList
Flags: Read / Write
Default value: NULL
“filename”
property“filename” char *
Bookmark file to load.
Owner: GtkBookmarkList
Flags: Read / Write / Construct Only
Default value: NULL
“io-priority”
property“io-priority” int
Priority used when loading
Owner: GtkBookmarkList
Flags: Read / Write
Allowed values: >= -2147483647
Default value: 0
“loading”
property“loading” gboolean
TRUE
if files are being loaded
Owner: GtkBookmarkList
Flags: Read
Default value: FALSE
GListModel, GBookmarkFile
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkBookmarkList.html