Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GtkBookmarkList
is 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).
Synopsis
- newtype BookmarkList = BookmarkList (ManagedPtr BookmarkList)
- class (GObject o, IsDescendantOf BookmarkList o) => IsBookmarkList o
- toBookmarkList :: (MonadIO m, IsBookmarkList o) => o -> m BookmarkList
- bookmarkListGetAttributes :: (HasCallStack, MonadIO m, IsBookmarkList a) => a -> m (Maybe Text)
- bookmarkListGetFilename :: (HasCallStack, MonadIO m, IsBookmarkList a) => a -> m [Char]
- bookmarkListGetIoPriority :: (HasCallStack, MonadIO m, IsBookmarkList a) => a -> m Int32
- bookmarkListIsLoading :: (HasCallStack, MonadIO m, IsBookmarkList a) => a -> m Bool
- bookmarkListNew :: (HasCallStack, MonadIO m) => Maybe [Char] -> Maybe Text -> m BookmarkList
- bookmarkListSetAttributes :: (HasCallStack, MonadIO m, IsBookmarkList a) => a -> Maybe Text -> m ()
- bookmarkListSetIoPriority :: (HasCallStack, MonadIO m, IsBookmarkList a) => a -> Int32 -> m ()
- clearBookmarkListAttributes :: (MonadIO m, IsBookmarkList o) => o -> m ()
- constructBookmarkListAttributes :: (IsBookmarkList o, MonadIO m) => Text -> m (GValueConstruct o)
- getBookmarkListAttributes :: (MonadIO m, IsBookmarkList o) => o -> m (Maybe Text)
- setBookmarkListAttributes :: (MonadIO m, IsBookmarkList o) => o -> Text -> m ()
- constructBookmarkListFilename :: (IsBookmarkList o, MonadIO m) => Text -> m (GValueConstruct o)
- getBookmarkListFilename :: (MonadIO m, IsBookmarkList o) => o -> m (Maybe Text)
- constructBookmarkListIoPriority :: (IsBookmarkList o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getBookmarkListIoPriority :: (MonadIO m, IsBookmarkList o) => o -> m Int32
- setBookmarkListIoPriority :: (MonadIO m, IsBookmarkList o) => o -> Int32 -> m ()
- getBookmarkListLoading :: (MonadIO m, IsBookmarkList o) => o -> m Bool
Exported types
newtype BookmarkList Source #
Memory-managed wrapper type.
Instances
Eq BookmarkList Source # | |
Defined in GI.Gtk.Objects.BookmarkList (==) :: BookmarkList -> BookmarkList -> Bool # (/=) :: BookmarkList -> BookmarkList -> Bool # | |
GObject BookmarkList Source # | |
Defined in GI.Gtk.Objects.BookmarkList | |
ManagedPtrNewtype BookmarkList Source # | |
Defined in GI.Gtk.Objects.BookmarkList | |
TypedObject BookmarkList Source # | |
Defined in GI.Gtk.Objects.BookmarkList | |
HasParentTypes BookmarkList Source # | |
Defined in GI.Gtk.Objects.BookmarkList | |
IsGValue (Maybe BookmarkList) Source # | Convert |
Defined in GI.Gtk.Objects.BookmarkList gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe BookmarkList -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe BookmarkList) # | |
type ParentTypes BookmarkList Source # | |
Defined in GI.Gtk.Objects.BookmarkList |
class (GObject o, IsDescendantOf BookmarkList o) => IsBookmarkList o Source #
Type class for types which can be safely cast to BookmarkList
, for instance with toBookmarkList
.
Instances
(GObject o, IsDescendantOf BookmarkList o) => IsBookmarkList o Source # | |
Defined in GI.Gtk.Objects.BookmarkList |
toBookmarkList :: (MonadIO m, IsBookmarkList o) => o -> m BookmarkList Source #
Cast to BookmarkList
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, isLoading, itemsChanged, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAttributes, getData, getFilename, getIoPriority, getItem, getItemType, getNItems, getProperty, getQdata.
Setters
setAttributes, setData, setDataFull, setIoPriority, setProperty.
getAttributes
bookmarkListGetAttributes Source #
:: (HasCallStack, MonadIO m, IsBookmarkList a) | |
=> a |
|
-> m (Maybe Text) | Returns: The queried attributes |
Gets the attributes queried on the children.
getFilename
bookmarkListGetFilename Source #
:: (HasCallStack, MonadIO m, IsBookmarkList a) | |
=> a |
|
-> m [Char] | Returns: the filename of the .xbel file |
Returns the filename of the bookmark file that this list is loading.
getIoPriority
bookmarkListGetIoPriority Source #
:: (HasCallStack, MonadIO m, IsBookmarkList a) | |
=> a |
|
-> m Int32 | Returns: The IO priority. |
Gets the IO priority to use while loading file.
isLoading
bookmarkListIsLoading Source #
:: (HasCallStack, MonadIO m, IsBookmarkList a) | |
=> a |
|
-> m Bool | Returns: |
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.
new
:: (HasCallStack, MonadIO m) | |
=> Maybe [Char] |
|
-> Maybe Text |
|
-> m BookmarkList | Returns: a new |
Creates a new GtkBookmarkList
with the given attributes
.
setAttributes
bookmarkListSetAttributes Source #
:: (HasCallStack, MonadIO m, IsBookmarkList a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the attributes
to be enumerated and starts the enumeration.
If attributes
is Nothing
, no attributes will be queried, but a list
of GFileInfo
s will still be created.
setIoPriority
bookmarkListSetIoPriority Source #
:: (HasCallStack, MonadIO m, IsBookmarkList a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the IO priority to use while loading files.
The default IO priority is PRIORITY_DEFAULT
.
Properties
attributes
The attributes to query.
clearBookmarkListAttributes :: (MonadIO m, IsBookmarkList o) => o -> m () Source #
Set the value of the “attributes
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#attributes
constructBookmarkListAttributes :: (IsBookmarkList o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “attributes
” property. This is rarely needed directly, but it is used by new
.
getBookmarkListAttributes :: (MonadIO m, IsBookmarkList o) => o -> m (Maybe Text) Source #
Get the value of the “attributes
” property.
When overloading is enabled, this is equivalent to
get
bookmarkList #attributes
setBookmarkListAttributes :: (MonadIO m, IsBookmarkList o) => o -> Text -> m () Source #
Set the value of the “attributes
” property.
When overloading is enabled, this is equivalent to
set
bookmarkList [ #attributes:=
value ]
filename
The bookmark file to load.
constructBookmarkListFilename :: (IsBookmarkList o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “filename
” property. This is rarely needed directly, but it is used by new
.
getBookmarkListFilename :: (MonadIO m, IsBookmarkList o) => o -> m (Maybe Text) Source #
Get the value of the “filename
” property.
When overloading is enabled, this is equivalent to
get
bookmarkList #filename
ioPriority
Priority used when loading.
constructBookmarkListIoPriority :: (IsBookmarkList o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “io-priority
” property. This is rarely needed directly, but it is used by new
.
getBookmarkListIoPriority :: (MonadIO m, IsBookmarkList o) => o -> m Int32 Source #
Get the value of the “io-priority
” property.
When overloading is enabled, this is equivalent to
get
bookmarkList #ioPriority
setBookmarkListIoPriority :: (MonadIO m, IsBookmarkList o) => o -> Int32 -> m () Source #
Set the value of the “io-priority
” property.
When overloading is enabled, this is equivalent to
set
bookmarkList [ #ioPriority:=
value ]
loading
True
if files are being loaded.
getBookmarkListLoading :: (MonadIO m, IsBookmarkList o) => o -> m Bool Source #
Get the value of the “loading
” property.
When overloading is enabled, this is equivalent to
get
bookmarkList #loading