{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Interfaces.RecentChooser
(
RecentChooser(..) ,
IsRecentChooser ,
toRecentChooser ,
#if defined(ENABLE_OVERLOADING)
ResolveRecentChooserMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
RecentChooserAddFilterMethodInfo ,
#endif
recentChooserAddFilter ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetCurrentItemMethodInfo ,
#endif
recentChooserGetCurrentItem ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetCurrentUriMethodInfo ,
#endif
recentChooserGetCurrentUri ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetFilterMethodInfo ,
#endif
recentChooserGetFilter ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetItemsMethodInfo ,
#endif
recentChooserGetItems ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetLimitMethodInfo ,
#endif
recentChooserGetLimit ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetLocalOnlyMethodInfo ,
#endif
recentChooserGetLocalOnly ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetSelectMultipleMethodInfo,
#endif
recentChooserGetSelectMultiple ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetShowIconsMethodInfo ,
#endif
recentChooserGetShowIcons ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetShowNotFoundMethodInfo ,
#endif
recentChooserGetShowNotFound ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetShowPrivateMethodInfo ,
#endif
recentChooserGetShowPrivate ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetShowTipsMethodInfo ,
#endif
recentChooserGetShowTips ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetSortTypeMethodInfo ,
#endif
recentChooserGetSortType ,
#if defined(ENABLE_OVERLOADING)
RecentChooserGetUrisMethodInfo ,
#endif
recentChooserGetUris ,
#if defined(ENABLE_OVERLOADING)
RecentChooserListFiltersMethodInfo ,
#endif
recentChooserListFilters ,
#if defined(ENABLE_OVERLOADING)
RecentChooserRemoveFilterMethodInfo ,
#endif
recentChooserRemoveFilter ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSelectAllMethodInfo ,
#endif
recentChooserSelectAll ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSelectUriMethodInfo ,
#endif
recentChooserSelectUri ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetCurrentUriMethodInfo ,
#endif
recentChooserSetCurrentUri ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetFilterMethodInfo ,
#endif
recentChooserSetFilter ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetLimitMethodInfo ,
#endif
recentChooserSetLimit ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetLocalOnlyMethodInfo ,
#endif
recentChooserSetLocalOnly ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetSelectMultipleMethodInfo,
#endif
recentChooserSetSelectMultiple ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetShowIconsMethodInfo ,
#endif
recentChooserSetShowIcons ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetShowNotFoundMethodInfo ,
#endif
recentChooserSetShowNotFound ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetShowPrivateMethodInfo ,
#endif
recentChooserSetShowPrivate ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetShowTipsMethodInfo ,
#endif
recentChooserSetShowTips ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetSortFuncMethodInfo ,
#endif
recentChooserSetSortFunc ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSetSortTypeMethodInfo ,
#endif
recentChooserSetSortType ,
#if defined(ENABLE_OVERLOADING)
RecentChooserUnselectAllMethodInfo ,
#endif
recentChooserUnselectAll ,
#if defined(ENABLE_OVERLOADING)
RecentChooserUnselectUriMethodInfo ,
#endif
recentChooserUnselectUri ,
#if defined(ENABLE_OVERLOADING)
RecentChooserFilterPropertyInfo ,
#endif
clearRecentChooserFilter ,
constructRecentChooserFilter ,
getRecentChooserFilter ,
#if defined(ENABLE_OVERLOADING)
recentChooserFilter ,
#endif
setRecentChooserFilter ,
#if defined(ENABLE_OVERLOADING)
RecentChooserLimitPropertyInfo ,
#endif
constructRecentChooserLimit ,
getRecentChooserLimit ,
#if defined(ENABLE_OVERLOADING)
recentChooserLimit ,
#endif
setRecentChooserLimit ,
#if defined(ENABLE_OVERLOADING)
RecentChooserLocalOnlyPropertyInfo ,
#endif
constructRecentChooserLocalOnly ,
getRecentChooserLocalOnly ,
#if defined(ENABLE_OVERLOADING)
recentChooserLocalOnly ,
#endif
setRecentChooserLocalOnly ,
#if defined(ENABLE_OVERLOADING)
RecentChooserRecentManagerPropertyInfo ,
#endif
constructRecentChooserRecentManager ,
#if defined(ENABLE_OVERLOADING)
recentChooserRecentManager ,
#endif
#if defined(ENABLE_OVERLOADING)
RecentChooserSelectMultiplePropertyInfo ,
#endif
constructRecentChooserSelectMultiple ,
getRecentChooserSelectMultiple ,
#if defined(ENABLE_OVERLOADING)
recentChooserSelectMultiple ,
#endif
setRecentChooserSelectMultiple ,
#if defined(ENABLE_OVERLOADING)
RecentChooserShowIconsPropertyInfo ,
#endif
constructRecentChooserShowIcons ,
getRecentChooserShowIcons ,
#if defined(ENABLE_OVERLOADING)
recentChooserShowIcons ,
#endif
setRecentChooserShowIcons ,
#if defined(ENABLE_OVERLOADING)
RecentChooserShowNotFoundPropertyInfo ,
#endif
constructRecentChooserShowNotFound ,
getRecentChooserShowNotFound ,
#if defined(ENABLE_OVERLOADING)
recentChooserShowNotFound ,
#endif
setRecentChooserShowNotFound ,
#if defined(ENABLE_OVERLOADING)
RecentChooserShowPrivatePropertyInfo ,
#endif
constructRecentChooserShowPrivate ,
getRecentChooserShowPrivate ,
#if defined(ENABLE_OVERLOADING)
recentChooserShowPrivate ,
#endif
setRecentChooserShowPrivate ,
#if defined(ENABLE_OVERLOADING)
RecentChooserShowTipsPropertyInfo ,
#endif
constructRecentChooserShowTips ,
getRecentChooserShowTips ,
#if defined(ENABLE_OVERLOADING)
recentChooserShowTips ,
#endif
setRecentChooserShowTips ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSortTypePropertyInfo ,
#endif
constructRecentChooserSortType ,
getRecentChooserSortType ,
#if defined(ENABLE_OVERLOADING)
recentChooserSortType ,
#endif
setRecentChooserSortType ,
C_RecentChooserItemActivatedCallback ,
RecentChooserItemActivatedCallback ,
#if defined(ENABLE_OVERLOADING)
RecentChooserItemActivatedSignalInfo ,
#endif
afterRecentChooserItemActivated ,
genClosure_RecentChooserItemActivated ,
mk_RecentChooserItemActivatedCallback ,
noRecentChooserItemActivatedCallback ,
onRecentChooserItemActivated ,
wrap_RecentChooserItemActivatedCallback ,
C_RecentChooserSelectionChangedCallback ,
RecentChooserSelectionChangedCallback ,
#if defined(ENABLE_OVERLOADING)
RecentChooserSelectionChangedSignalInfo ,
#endif
afterRecentChooserSelectionChanged ,
genClosure_RecentChooserSelectionChanged,
mk_RecentChooserSelectionChangedCallback,
noRecentChooserSelectionChangedCallback ,
onRecentChooserSelectionChanged ,
wrap_RecentChooserSelectionChangedCallback,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gtk.Callbacks as Gtk.Callbacks
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Objects.RecentFilter as Gtk.RecentFilter
import {-# SOURCE #-} qualified GI.Gtk.Objects.RecentManager as Gtk.RecentManager
import {-# SOURCE #-} qualified GI.Gtk.Structs.RecentInfo as Gtk.RecentInfo
newtype RecentChooser = RecentChooser (SP.ManagedPtr RecentChooser)
deriving (RecentChooser -> RecentChooser -> Bool
(RecentChooser -> RecentChooser -> Bool)
-> (RecentChooser -> RecentChooser -> Bool) -> Eq RecentChooser
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RecentChooser -> RecentChooser -> Bool
$c/= :: RecentChooser -> RecentChooser -> Bool
== :: RecentChooser -> RecentChooser -> Bool
$c== :: RecentChooser -> RecentChooser -> Bool
Eq)
instance SP.ManagedPtrNewtype RecentChooser where
toManagedPtr :: RecentChooser -> ManagedPtr RecentChooser
toManagedPtr (RecentChooser ManagedPtr RecentChooser
p) = ManagedPtr RecentChooser
p
foreign import ccall "gtk_recent_chooser_get_type"
c_gtk_recent_chooser_get_type :: IO B.Types.GType
instance B.Types.TypedObject RecentChooser where
glibType :: IO GType
glibType = IO GType
c_gtk_recent_chooser_get_type
instance B.Types.GObject RecentChooser
class (SP.GObject o, O.IsDescendantOf RecentChooser o) => IsRecentChooser o
instance (SP.GObject o, O.IsDescendantOf RecentChooser o) => IsRecentChooser o
instance O.HasParentTypes RecentChooser
type instance O.ParentTypes RecentChooser = '[GObject.Object.Object]
toRecentChooser :: (MIO.MonadIO m, IsRecentChooser o) => o -> m RecentChooser
toRecentChooser :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m RecentChooser
toRecentChooser = IO RecentChooser -> m RecentChooser
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO RecentChooser -> m RecentChooser)
-> (o -> IO RecentChooser) -> o -> m RecentChooser
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr RecentChooser -> RecentChooser)
-> o -> IO RecentChooser
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr RecentChooser -> RecentChooser
RecentChooser
instance B.GValue.IsGValue (Maybe RecentChooser) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_recent_chooser_get_type
gvalueSet_ :: Ptr GValue -> Maybe RecentChooser -> IO ()
gvalueSet_ Ptr GValue
gv Maybe RecentChooser
P.Nothing = Ptr GValue -> Ptr RecentChooser -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr RecentChooser
forall a. Ptr a
FP.nullPtr :: FP.Ptr RecentChooser)
gvalueSet_ Ptr GValue
gv (P.Just RecentChooser
obj) = RecentChooser -> (Ptr RecentChooser -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr RecentChooser
obj (Ptr GValue -> Ptr RecentChooser -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe RecentChooser)
gvalueGet_ Ptr GValue
gv = do
Ptr RecentChooser
ptr <- Ptr GValue -> IO (Ptr RecentChooser)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr RecentChooser)
if Ptr RecentChooser
ptr Ptr RecentChooser -> Ptr RecentChooser -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr RecentChooser
forall a. Ptr a
FP.nullPtr
then RecentChooser -> Maybe RecentChooser
forall a. a -> Maybe a
P.Just (RecentChooser -> Maybe RecentChooser)
-> IO RecentChooser -> IO (Maybe RecentChooser)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr RecentChooser -> RecentChooser)
-> Ptr RecentChooser -> IO RecentChooser
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr RecentChooser -> RecentChooser
RecentChooser Ptr RecentChooser
ptr
else Maybe RecentChooser -> IO (Maybe RecentChooser)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe RecentChooser
forall a. Maybe a
P.Nothing
getRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m Gtk.RecentFilter.RecentFilter
getRecentChooserFilter :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m RecentFilter
getRecentChooserFilter o
obj = IO RecentFilter -> m RecentFilter
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO RecentFilter -> m RecentFilter)
-> IO RecentFilter -> m RecentFilter
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe RecentFilter) -> IO RecentFilter
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getRecentChooserFilter" (IO (Maybe RecentFilter) -> IO RecentFilter)
-> IO (Maybe RecentFilter) -> IO RecentFilter
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr RecentFilter -> RecentFilter)
-> IO (Maybe RecentFilter)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"filter" ManagedPtr RecentFilter -> RecentFilter
Gtk.RecentFilter.RecentFilter
setRecentChooserFilter :: (MonadIO m, IsRecentChooser o, Gtk.RecentFilter.IsRecentFilter a) => o -> a -> m ()
setRecentChooserFilter :: forall (m :: * -> *) o a.
(MonadIO m, IsRecentChooser o, IsRecentFilter a) =>
o -> a -> m ()
setRecentChooserFilter o
obj a
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"filter" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructRecentChooserFilter :: (IsRecentChooser o, MIO.MonadIO m, Gtk.RecentFilter.IsRecentFilter a) => a -> m (GValueConstruct o)
constructRecentChooserFilter :: forall o (m :: * -> *) a.
(IsRecentChooser o, MonadIO m, IsRecentFilter a) =>
a -> m (GValueConstruct o)
constructRecentChooserFilter a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"filter" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearRecentChooserFilter :: (MonadIO m, IsRecentChooser o) => o -> m ()
clearRecentChooserFilter :: forall (m :: * -> *) o. (MonadIO m, IsRecentChooser o) => o -> m ()
clearRecentChooserFilter o
obj = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe RecentFilter -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"filter" (Maybe RecentFilter
forall a. Maybe a
Nothing :: Maybe Gtk.RecentFilter.RecentFilter)
#if defined(ENABLE_OVERLOADING)
data RecentChooserFilterPropertyInfo
instance AttrInfo RecentChooserFilterPropertyInfo where
type AttrAllowedOps RecentChooserFilterPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint RecentChooserFilterPropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserFilterPropertyInfo = Gtk.RecentFilter.IsRecentFilter
type AttrTransferTypeConstraint RecentChooserFilterPropertyInfo = Gtk.RecentFilter.IsRecentFilter
type AttrTransferType RecentChooserFilterPropertyInfo = Gtk.RecentFilter.RecentFilter
type AttrGetType RecentChooserFilterPropertyInfo = Gtk.RecentFilter.RecentFilter
type AttrLabel RecentChooserFilterPropertyInfo = "filter"
type AttrOrigin RecentChooserFilterPropertyInfo = RecentChooser
attrGet = getRecentChooserFilter
attrSet = setRecentChooserFilter
attrTransfer _ v = do
unsafeCastTo Gtk.RecentFilter.RecentFilter v
attrConstruct = constructRecentChooserFilter
attrClear = clearRecentChooserFilter
#endif
getRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> m Int32
getRecentChooserLimit :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m Int32
getRecentChooserLimit o
obj = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"limit"
setRecentChooserLimit :: (MonadIO m, IsRecentChooser o) => o -> Int32 -> m ()
setRecentChooserLimit :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> Int32 -> m ()
setRecentChooserLimit o
obj Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj String
"limit" Int32
val
constructRecentChooserLimit :: (IsRecentChooser o, MIO.MonadIO m) => Int32 -> m (GValueConstruct o)
constructRecentChooserLimit :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
Int32 -> m (GValueConstruct o)
constructRecentChooserLimit Int32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 String
"limit" Int32
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserLimitPropertyInfo
instance AttrInfo RecentChooserLimitPropertyInfo where
type AttrAllowedOps RecentChooserLimitPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserLimitPropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserLimitPropertyInfo = (~) Int32
type AttrTransferTypeConstraint RecentChooserLimitPropertyInfo = (~) Int32
type AttrTransferType RecentChooserLimitPropertyInfo = Int32
type AttrGetType RecentChooserLimitPropertyInfo = Int32
type AttrLabel RecentChooserLimitPropertyInfo = "limit"
type AttrOrigin RecentChooserLimitPropertyInfo = RecentChooser
attrGet = getRecentChooserLimit
attrSet = setRecentChooserLimit
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserLimit
attrClear = undefined
#endif
getRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserLocalOnly :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m Bool
getRecentChooserLocalOnly o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"local-only"
setRecentChooserLocalOnly :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserLocalOnly :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> Bool -> m ()
setRecentChooserLocalOnly o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"local-only" Bool
val
constructRecentChooserLocalOnly :: (IsRecentChooser o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructRecentChooserLocalOnly :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructRecentChooserLocalOnly Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"local-only" Bool
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserLocalOnlyPropertyInfo
instance AttrInfo RecentChooserLocalOnlyPropertyInfo where
type AttrAllowedOps RecentChooserLocalOnlyPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserLocalOnlyPropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserLocalOnlyPropertyInfo = (~) Bool
type AttrTransferTypeConstraint RecentChooserLocalOnlyPropertyInfo = (~) Bool
type AttrTransferType RecentChooserLocalOnlyPropertyInfo = Bool
type AttrGetType RecentChooserLocalOnlyPropertyInfo = Bool
type AttrLabel RecentChooserLocalOnlyPropertyInfo = "local-only"
type AttrOrigin RecentChooserLocalOnlyPropertyInfo = RecentChooser
attrGet = getRecentChooserLocalOnly
attrSet = setRecentChooserLocalOnly
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserLocalOnly
attrClear = undefined
#endif
constructRecentChooserRecentManager :: (IsRecentChooser o, MIO.MonadIO m, Gtk.RecentManager.IsRecentManager a) => a -> m (GValueConstruct o)
constructRecentChooserRecentManager :: forall o (m :: * -> *) a.
(IsRecentChooser o, MonadIO m, IsRecentManager a) =>
a -> m (GValueConstruct o)
constructRecentChooserRecentManager a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"recent-manager" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
#if defined(ENABLE_OVERLOADING)
data RecentChooserRecentManagerPropertyInfo
instance AttrInfo RecentChooserRecentManagerPropertyInfo where
type AttrAllowedOps RecentChooserRecentManagerPropertyInfo = '[ 'AttrConstruct, 'AttrClear]
type AttrBaseTypeConstraint RecentChooserRecentManagerPropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserRecentManagerPropertyInfo = Gtk.RecentManager.IsRecentManager
type AttrTransferTypeConstraint RecentChooserRecentManagerPropertyInfo = Gtk.RecentManager.IsRecentManager
type AttrTransferType RecentChooserRecentManagerPropertyInfo = Gtk.RecentManager.RecentManager
type AttrGetType RecentChooserRecentManagerPropertyInfo = ()
type AttrLabel RecentChooserRecentManagerPropertyInfo = "recent-manager"
type AttrOrigin RecentChooserRecentManagerPropertyInfo = RecentChooser
attrGet = undefined
attrSet = undefined
attrTransfer _ v = do
unsafeCastTo Gtk.RecentManager.RecentManager v
attrConstruct = constructRecentChooserRecentManager
attrClear = undefined
#endif
getRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserSelectMultiple :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m Bool
getRecentChooserSelectMultiple o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"select-multiple"
setRecentChooserSelectMultiple :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserSelectMultiple :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> Bool -> m ()
setRecentChooserSelectMultiple o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"select-multiple" Bool
val
constructRecentChooserSelectMultiple :: (IsRecentChooser o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructRecentChooserSelectMultiple :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructRecentChooserSelectMultiple Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"select-multiple" Bool
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserSelectMultiplePropertyInfo
instance AttrInfo RecentChooserSelectMultiplePropertyInfo where
type AttrAllowedOps RecentChooserSelectMultiplePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserSelectMultiplePropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserSelectMultiplePropertyInfo = (~) Bool
type AttrTransferTypeConstraint RecentChooserSelectMultiplePropertyInfo = (~) Bool
type AttrTransferType RecentChooserSelectMultiplePropertyInfo = Bool
type AttrGetType RecentChooserSelectMultiplePropertyInfo = Bool
type AttrLabel RecentChooserSelectMultiplePropertyInfo = "select-multiple"
type AttrOrigin RecentChooserSelectMultiplePropertyInfo = RecentChooser
attrGet = getRecentChooserSelectMultiple
attrSet = setRecentChooserSelectMultiple
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserSelectMultiple
attrClear = undefined
#endif
getRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowIcons :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m Bool
getRecentChooserShowIcons o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"show-icons"
setRecentChooserShowIcons :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowIcons :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> Bool -> m ()
setRecentChooserShowIcons o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"show-icons" Bool
val
constructRecentChooserShowIcons :: (IsRecentChooser o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructRecentChooserShowIcons :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructRecentChooserShowIcons Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"show-icons" Bool
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserShowIconsPropertyInfo
instance AttrInfo RecentChooserShowIconsPropertyInfo where
type AttrAllowedOps RecentChooserShowIconsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserShowIconsPropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserShowIconsPropertyInfo = (~) Bool
type AttrTransferTypeConstraint RecentChooserShowIconsPropertyInfo = (~) Bool
type AttrTransferType RecentChooserShowIconsPropertyInfo = Bool
type AttrGetType RecentChooserShowIconsPropertyInfo = Bool
type AttrLabel RecentChooserShowIconsPropertyInfo = "show-icons"
type AttrOrigin RecentChooserShowIconsPropertyInfo = RecentChooser
attrGet = getRecentChooserShowIcons
attrSet = setRecentChooserShowIcons
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserShowIcons
attrClear = undefined
#endif
getRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowNotFound :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m Bool
getRecentChooserShowNotFound o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"show-not-found"
setRecentChooserShowNotFound :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowNotFound :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> Bool -> m ()
setRecentChooserShowNotFound o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"show-not-found" Bool
val
constructRecentChooserShowNotFound :: (IsRecentChooser o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructRecentChooserShowNotFound :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructRecentChooserShowNotFound Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"show-not-found" Bool
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserShowNotFoundPropertyInfo
instance AttrInfo RecentChooserShowNotFoundPropertyInfo where
type AttrAllowedOps RecentChooserShowNotFoundPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserShowNotFoundPropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserShowNotFoundPropertyInfo = (~) Bool
type AttrTransferTypeConstraint RecentChooserShowNotFoundPropertyInfo = (~) Bool
type AttrTransferType RecentChooserShowNotFoundPropertyInfo = Bool
type AttrGetType RecentChooserShowNotFoundPropertyInfo = Bool
type AttrLabel RecentChooserShowNotFoundPropertyInfo = "show-not-found"
type AttrOrigin RecentChooserShowNotFoundPropertyInfo = RecentChooser
attrGet = getRecentChooserShowNotFound
attrSet = setRecentChooserShowNotFound
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserShowNotFound
attrClear = undefined
#endif
getRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowPrivate :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m Bool
getRecentChooserShowPrivate o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"show-private"
setRecentChooserShowPrivate :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowPrivate :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> Bool -> m ()
setRecentChooserShowPrivate o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"show-private" Bool
val
constructRecentChooserShowPrivate :: (IsRecentChooser o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructRecentChooserShowPrivate :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructRecentChooserShowPrivate Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"show-private" Bool
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserShowPrivatePropertyInfo
instance AttrInfo RecentChooserShowPrivatePropertyInfo where
type AttrAllowedOps RecentChooserShowPrivatePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserShowPrivatePropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserShowPrivatePropertyInfo = (~) Bool
type AttrTransferTypeConstraint RecentChooserShowPrivatePropertyInfo = (~) Bool
type AttrTransferType RecentChooserShowPrivatePropertyInfo = Bool
type AttrGetType RecentChooserShowPrivatePropertyInfo = Bool
type AttrLabel RecentChooserShowPrivatePropertyInfo = "show-private"
type AttrOrigin RecentChooserShowPrivatePropertyInfo = RecentChooser
attrGet = getRecentChooserShowPrivate
attrSet = setRecentChooserShowPrivate
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserShowPrivate
attrClear = undefined
#endif
getRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> m Bool
getRecentChooserShowTips :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m Bool
getRecentChooserShowTips o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"show-tips"
setRecentChooserShowTips :: (MonadIO m, IsRecentChooser o) => o -> Bool -> m ()
setRecentChooserShowTips :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> Bool -> m ()
setRecentChooserShowTips o
obj Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"show-tips" Bool
val
constructRecentChooserShowTips :: (IsRecentChooser o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructRecentChooserShowTips :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructRecentChooserShowTips Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"show-tips" Bool
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserShowTipsPropertyInfo
instance AttrInfo RecentChooserShowTipsPropertyInfo where
type AttrAllowedOps RecentChooserShowTipsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserShowTipsPropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserShowTipsPropertyInfo = (~) Bool
type AttrTransferTypeConstraint RecentChooserShowTipsPropertyInfo = (~) Bool
type AttrTransferType RecentChooserShowTipsPropertyInfo = Bool
type AttrGetType RecentChooserShowTipsPropertyInfo = Bool
type AttrLabel RecentChooserShowTipsPropertyInfo = "show-tips"
type AttrOrigin RecentChooserShowTipsPropertyInfo = RecentChooser
attrGet = getRecentChooserShowTips
attrSet = setRecentChooserShowTips
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserShowTips
attrClear = undefined
#endif
getRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> m Gtk.Enums.RecentSortType
getRecentChooserSortType :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> m RecentSortType
getRecentChooserSortType o
obj = IO RecentSortType -> m RecentSortType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO RecentSortType -> m RecentSortType)
-> IO RecentSortType -> m RecentSortType
forall a b. (a -> b) -> a -> b
$ o -> String -> IO RecentSortType
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"sort-type"
setRecentChooserSortType :: (MonadIO m, IsRecentChooser o) => o -> Gtk.Enums.RecentSortType -> m ()
setRecentChooserSortType :: forall (m :: * -> *) o.
(MonadIO m, IsRecentChooser o) =>
o -> RecentSortType -> m ()
setRecentChooserSortType o
obj RecentSortType
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> RecentSortType -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"sort-type" RecentSortType
val
constructRecentChooserSortType :: (IsRecentChooser o, MIO.MonadIO m) => Gtk.Enums.RecentSortType -> m (GValueConstruct o)
constructRecentChooserSortType :: forall o (m :: * -> *).
(IsRecentChooser o, MonadIO m) =>
RecentSortType -> m (GValueConstruct o)
constructRecentChooserSortType RecentSortType
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> RecentSortType -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"sort-type" RecentSortType
val
#if defined(ENABLE_OVERLOADING)
data RecentChooserSortTypePropertyInfo
instance AttrInfo RecentChooserSortTypePropertyInfo where
type AttrAllowedOps RecentChooserSortTypePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint RecentChooserSortTypePropertyInfo = IsRecentChooser
type AttrSetTypeConstraint RecentChooserSortTypePropertyInfo = (~) Gtk.Enums.RecentSortType
type AttrTransferTypeConstraint RecentChooserSortTypePropertyInfo = (~) Gtk.Enums.RecentSortType
type AttrTransferType RecentChooserSortTypePropertyInfo = Gtk.Enums.RecentSortType
type AttrGetType RecentChooserSortTypePropertyInfo = Gtk.Enums.RecentSortType
type AttrLabel RecentChooserSortTypePropertyInfo = "sort-type"
type AttrOrigin RecentChooserSortTypePropertyInfo = RecentChooser
attrGet = getRecentChooserSortType
attrSet = setRecentChooserSortType
attrTransfer _ v = do
return v
attrConstruct = constructRecentChooserSortType
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList RecentChooser
type instance O.AttributeList RecentChooser = RecentChooserAttributeList
type RecentChooserAttributeList = ('[ '("filter", RecentChooserFilterPropertyInfo), '("limit", RecentChooserLimitPropertyInfo), '("localOnly", RecentChooserLocalOnlyPropertyInfo), '("recentManager", RecentChooserRecentManagerPropertyInfo), '("selectMultiple", RecentChooserSelectMultiplePropertyInfo), '("showIcons", RecentChooserShowIconsPropertyInfo), '("showNotFound", RecentChooserShowNotFoundPropertyInfo), '("showPrivate", RecentChooserShowPrivatePropertyInfo), '("showTips", RecentChooserShowTipsPropertyInfo), '("sortType", RecentChooserSortTypePropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
recentChooserFilter :: AttrLabelProxy "filter"
recentChooserFilter = AttrLabelProxy
recentChooserLimit :: AttrLabelProxy "limit"
recentChooserLimit = AttrLabelProxy
recentChooserLocalOnly :: AttrLabelProxy "localOnly"
recentChooserLocalOnly = AttrLabelProxy
recentChooserRecentManager :: AttrLabelProxy "recentManager"
recentChooserRecentManager = AttrLabelProxy
recentChooserSelectMultiple :: AttrLabelProxy "selectMultiple"
recentChooserSelectMultiple = AttrLabelProxy
recentChooserShowIcons :: AttrLabelProxy "showIcons"
recentChooserShowIcons = AttrLabelProxy
recentChooserShowNotFound :: AttrLabelProxy "showNotFound"
recentChooserShowNotFound = AttrLabelProxy
recentChooserShowPrivate :: AttrLabelProxy "showPrivate"
recentChooserShowPrivate = AttrLabelProxy
recentChooserShowTips :: AttrLabelProxy "showTips"
recentChooserShowTips = AttrLabelProxy
recentChooserSortType :: AttrLabelProxy "sortType"
recentChooserSortType = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveRecentChooserMethod (t :: Symbol) (o :: *) :: * where
ResolveRecentChooserMethod "addFilter" o = RecentChooserAddFilterMethodInfo
ResolveRecentChooserMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveRecentChooserMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveRecentChooserMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveRecentChooserMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveRecentChooserMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveRecentChooserMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveRecentChooserMethod "listFilters" o = RecentChooserListFiltersMethodInfo
ResolveRecentChooserMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveRecentChooserMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveRecentChooserMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveRecentChooserMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveRecentChooserMethod "removeFilter" o = RecentChooserRemoveFilterMethodInfo
ResolveRecentChooserMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveRecentChooserMethod "selectAll" o = RecentChooserSelectAllMethodInfo
ResolveRecentChooserMethod "selectUri" o = RecentChooserSelectUriMethodInfo
ResolveRecentChooserMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveRecentChooserMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveRecentChooserMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveRecentChooserMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveRecentChooserMethod "unselectAll" o = RecentChooserUnselectAllMethodInfo
ResolveRecentChooserMethod "unselectUri" o = RecentChooserUnselectUriMethodInfo
ResolveRecentChooserMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveRecentChooserMethod "getCurrentItem" o = RecentChooserGetCurrentItemMethodInfo
ResolveRecentChooserMethod "getCurrentUri" o = RecentChooserGetCurrentUriMethodInfo
ResolveRecentChooserMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveRecentChooserMethod "getFilter" o = RecentChooserGetFilterMethodInfo
ResolveRecentChooserMethod "getItems" o = RecentChooserGetItemsMethodInfo
ResolveRecentChooserMethod "getLimit" o = RecentChooserGetLimitMethodInfo
ResolveRecentChooserMethod "getLocalOnly" o = RecentChooserGetLocalOnlyMethodInfo
ResolveRecentChooserMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveRecentChooserMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveRecentChooserMethod "getSelectMultiple" o = RecentChooserGetSelectMultipleMethodInfo
ResolveRecentChooserMethod "getShowIcons" o = RecentChooserGetShowIconsMethodInfo
ResolveRecentChooserMethod "getShowNotFound" o = RecentChooserGetShowNotFoundMethodInfo
ResolveRecentChooserMethod "getShowPrivate" o = RecentChooserGetShowPrivateMethodInfo
ResolveRecentChooserMethod "getShowTips" o = RecentChooserGetShowTipsMethodInfo
ResolveRecentChooserMethod "getSortType" o = RecentChooserGetSortTypeMethodInfo
ResolveRecentChooserMethod "getUris" o = RecentChooserGetUrisMethodInfo
ResolveRecentChooserMethod "setCurrentUri" o = RecentChooserSetCurrentUriMethodInfo
ResolveRecentChooserMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveRecentChooserMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveRecentChooserMethod "setFilter" o = RecentChooserSetFilterMethodInfo
ResolveRecentChooserMethod "setLimit" o = RecentChooserSetLimitMethodInfo
ResolveRecentChooserMethod "setLocalOnly" o = RecentChooserSetLocalOnlyMethodInfo
ResolveRecentChooserMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveRecentChooserMethod "setSelectMultiple" o = RecentChooserSetSelectMultipleMethodInfo
ResolveRecentChooserMethod "setShowIcons" o = RecentChooserSetShowIconsMethodInfo
ResolveRecentChooserMethod "setShowNotFound" o = RecentChooserSetShowNotFoundMethodInfo
ResolveRecentChooserMethod "setShowPrivate" o = RecentChooserSetShowPrivateMethodInfo
ResolveRecentChooserMethod "setShowTips" o = RecentChooserSetShowTipsMethodInfo
ResolveRecentChooserMethod "setSortFunc" o = RecentChooserSetSortFuncMethodInfo
ResolveRecentChooserMethod "setSortType" o = RecentChooserSetSortTypeMethodInfo
ResolveRecentChooserMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveRecentChooserMethod t RecentChooser, O.OverloadedMethod info RecentChooser p) => OL.IsLabel t (RecentChooser -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveRecentChooserMethod t RecentChooser, O.OverloadedMethod info RecentChooser p, R.HasField t RecentChooser p) => R.HasField t RecentChooser p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveRecentChooserMethod t RecentChooser, O.OverloadedMethodInfo info RecentChooser) => OL.IsLabel t (O.MethodProxy info RecentChooser) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
foreign import ccall "gtk_recent_chooser_add_filter" gtk_recent_chooser_add_filter ::
Ptr RecentChooser ->
Ptr Gtk.RecentFilter.RecentFilter ->
IO ()
recentChooserAddFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) =>
a
-> b
-> m ()
recentChooserAddFilter :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) =>
a -> b -> m ()
recentChooserAddFilter a
chooser b
filter = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentFilter
filter' <- b -> IO (Ptr RecentFilter)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
filter
Ptr RecentChooser -> Ptr RecentFilter -> IO ()
gtk_recent_chooser_add_filter Ptr RecentChooser
chooser' Ptr RecentFilter
filter'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
filter
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserAddFilterMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) => O.OverloadedMethod RecentChooserAddFilterMethodInfo a signature where
overloadedMethod = recentChooserAddFilter
instance O.OverloadedMethodInfo RecentChooserAddFilterMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserAddFilter",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserAddFilter"
}
#endif
foreign import ccall "gtk_recent_chooser_get_current_item" gtk_recent_chooser_get_current_item ::
Ptr RecentChooser ->
IO (Ptr Gtk.RecentInfo.RecentInfo)
recentChooserGetCurrentItem ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Gtk.RecentInfo.RecentInfo
recentChooserGetCurrentItem :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m RecentInfo
recentChooserGetCurrentItem a
chooser = IO RecentInfo -> m RecentInfo
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO RecentInfo -> m RecentInfo) -> IO RecentInfo -> m RecentInfo
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentInfo
result <- Ptr RecentChooser -> IO (Ptr RecentInfo)
gtk_recent_chooser_get_current_item Ptr RecentChooser
chooser'
Text -> Ptr RecentInfo -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"recentChooserGetCurrentItem" Ptr RecentInfo
result
RecentInfo
result' <- ((ManagedPtr RecentInfo -> RecentInfo)
-> Ptr RecentInfo -> IO RecentInfo
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr RecentInfo -> RecentInfo
Gtk.RecentInfo.RecentInfo) Ptr RecentInfo
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
RecentInfo -> IO RecentInfo
forall (m :: * -> *) a. Monad m => a -> m a
return RecentInfo
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetCurrentItemMethodInfo
instance (signature ~ (m Gtk.RecentInfo.RecentInfo), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetCurrentItemMethodInfo a signature where
overloadedMethod = recentChooserGetCurrentItem
instance O.OverloadedMethodInfo RecentChooserGetCurrentItemMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetCurrentItem",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetCurrentItem"
}
#endif
foreign import ccall "gtk_recent_chooser_get_current_uri" gtk_recent_chooser_get_current_uri ::
Ptr RecentChooser ->
IO CString
recentChooserGetCurrentUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m T.Text
recentChooserGetCurrentUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Text
recentChooserGetCurrentUri a
chooser = IO Text -> m Text
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CString
result <- Ptr RecentChooser -> IO CString
gtk_recent_chooser_get_current_uri Ptr RecentChooser
chooser'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"recentChooserGetCurrentUri" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetCurrentUriMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetCurrentUriMethodInfo a signature where
overloadedMethod = recentChooserGetCurrentUri
instance O.OverloadedMethodInfo RecentChooserGetCurrentUriMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetCurrentUri",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetCurrentUri"
}
#endif
foreign import ccall "gtk_recent_chooser_get_filter" gtk_recent_chooser_get_filter ::
Ptr RecentChooser ->
IO (Ptr Gtk.RecentFilter.RecentFilter)
recentChooserGetFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Gtk.RecentFilter.RecentFilter
recentChooserGetFilter :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m RecentFilter
recentChooserGetFilter a
chooser = IO RecentFilter -> m RecentFilter
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO RecentFilter -> m RecentFilter)
-> IO RecentFilter -> m RecentFilter
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentFilter
result <- Ptr RecentChooser -> IO (Ptr RecentFilter)
gtk_recent_chooser_get_filter Ptr RecentChooser
chooser'
Text -> Ptr RecentFilter -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"recentChooserGetFilter" Ptr RecentFilter
result
RecentFilter
result' <- ((ManagedPtr RecentFilter -> RecentFilter)
-> Ptr RecentFilter -> IO RecentFilter
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr RecentFilter -> RecentFilter
Gtk.RecentFilter.RecentFilter) Ptr RecentFilter
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
RecentFilter -> IO RecentFilter
forall (m :: * -> *) a. Monad m => a -> m a
return RecentFilter
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetFilterMethodInfo
instance (signature ~ (m Gtk.RecentFilter.RecentFilter), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetFilterMethodInfo a signature where
overloadedMethod = recentChooserGetFilter
instance O.OverloadedMethodInfo RecentChooserGetFilterMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetFilter",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetFilter"
}
#endif
foreign import ccall "gtk_recent_chooser_get_items" gtk_recent_chooser_get_items ::
Ptr RecentChooser ->
IO (Ptr (GList (Ptr Gtk.RecentInfo.RecentInfo)))
recentChooserGetItems ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m [Gtk.RecentInfo.RecentInfo]
recentChooserGetItems :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m [RecentInfo]
recentChooserGetItems a
chooser = IO [RecentInfo] -> m [RecentInfo]
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [RecentInfo] -> m [RecentInfo])
-> IO [RecentInfo] -> m [RecentInfo]
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr (GList (Ptr RecentInfo))
result <- Ptr RecentChooser -> IO (Ptr (GList (Ptr RecentInfo)))
gtk_recent_chooser_get_items Ptr RecentChooser
chooser'
[Ptr RecentInfo]
result' <- Ptr (GList (Ptr RecentInfo)) -> IO [Ptr RecentInfo]
forall a. Ptr (GList (Ptr a)) -> IO [Ptr a]
unpackGList Ptr (GList (Ptr RecentInfo))
result
[RecentInfo]
result'' <- (Ptr RecentInfo -> IO RecentInfo)
-> [Ptr RecentInfo] -> IO [RecentInfo]
forall (t :: * -> *) (m :: * -> *) a b.
(Traversable t, Monad m) =>
(a -> m b) -> t a -> m (t b)
mapM ((ManagedPtr RecentInfo -> RecentInfo)
-> Ptr RecentInfo -> IO RecentInfo
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr RecentInfo -> RecentInfo
Gtk.RecentInfo.RecentInfo) [Ptr RecentInfo]
result'
Ptr (GList (Ptr RecentInfo)) -> IO ()
forall a. Ptr (GList a) -> IO ()
g_list_free Ptr (GList (Ptr RecentInfo))
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
[RecentInfo] -> IO [RecentInfo]
forall (m :: * -> *) a. Monad m => a -> m a
return [RecentInfo]
result''
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetItemsMethodInfo
instance (signature ~ (m [Gtk.RecentInfo.RecentInfo]), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetItemsMethodInfo a signature where
overloadedMethod = recentChooserGetItems
instance O.OverloadedMethodInfo RecentChooserGetItemsMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetItems",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetItems"
}
#endif
foreign import ccall "gtk_recent_chooser_get_limit" gtk_recent_chooser_get_limit ::
Ptr RecentChooser ->
IO Int32
recentChooserGetLimit ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Int32
recentChooserGetLimit :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Int32
recentChooserGetLimit a
chooser = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Int32
result <- Ptr RecentChooser -> IO Int32
gtk_recent_chooser_get_limit Ptr RecentChooser
chooser'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetLimitMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetLimitMethodInfo a signature where
overloadedMethod = recentChooserGetLimit
instance O.OverloadedMethodInfo RecentChooserGetLimitMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetLimit",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetLimit"
}
#endif
foreign import ccall "gtk_recent_chooser_get_local_only" gtk_recent_chooser_get_local_only ::
Ptr RecentChooser ->
IO CInt
recentChooserGetLocalOnly ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetLocalOnly :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Bool
recentChooserGetLocalOnly a
chooser = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CInt
result <- Ptr RecentChooser -> IO CInt
gtk_recent_chooser_get_local_only Ptr RecentChooser
chooser'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetLocalOnlyMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetLocalOnlyMethodInfo a signature where
overloadedMethod = recentChooserGetLocalOnly
instance O.OverloadedMethodInfo RecentChooserGetLocalOnlyMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetLocalOnly",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetLocalOnly"
}
#endif
foreign import ccall "gtk_recent_chooser_get_select_multiple" gtk_recent_chooser_get_select_multiple ::
Ptr RecentChooser ->
IO CInt
recentChooserGetSelectMultiple ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetSelectMultiple :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Bool
recentChooserGetSelectMultiple a
chooser = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CInt
result <- Ptr RecentChooser -> IO CInt
gtk_recent_chooser_get_select_multiple Ptr RecentChooser
chooser'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetSelectMultipleMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetSelectMultipleMethodInfo a signature where
overloadedMethod = recentChooserGetSelectMultiple
instance O.OverloadedMethodInfo RecentChooserGetSelectMultipleMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetSelectMultiple",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetSelectMultiple"
}
#endif
foreign import ccall "gtk_recent_chooser_get_show_icons" gtk_recent_chooser_get_show_icons ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowIcons ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowIcons :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Bool
recentChooserGetShowIcons a
chooser = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CInt
result <- Ptr RecentChooser -> IO CInt
gtk_recent_chooser_get_show_icons Ptr RecentChooser
chooser'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetShowIconsMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetShowIconsMethodInfo a signature where
overloadedMethod = recentChooserGetShowIcons
instance O.OverloadedMethodInfo RecentChooserGetShowIconsMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetShowIcons",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetShowIcons"
}
#endif
foreign import ccall "gtk_recent_chooser_get_show_not_found" gtk_recent_chooser_get_show_not_found ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowNotFound ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowNotFound :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Bool
recentChooserGetShowNotFound a
chooser = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CInt
result <- Ptr RecentChooser -> IO CInt
gtk_recent_chooser_get_show_not_found Ptr RecentChooser
chooser'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetShowNotFoundMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetShowNotFoundMethodInfo a signature where
overloadedMethod = recentChooserGetShowNotFound
instance O.OverloadedMethodInfo RecentChooserGetShowNotFoundMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetShowNotFound",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetShowNotFound"
}
#endif
foreign import ccall "gtk_recent_chooser_get_show_private" gtk_recent_chooser_get_show_private ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowPrivate ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowPrivate :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Bool
recentChooserGetShowPrivate a
chooser = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CInt
result <- Ptr RecentChooser -> IO CInt
gtk_recent_chooser_get_show_private Ptr RecentChooser
chooser'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetShowPrivateMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetShowPrivateMethodInfo a signature where
overloadedMethod = recentChooserGetShowPrivate
instance O.OverloadedMethodInfo RecentChooserGetShowPrivateMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetShowPrivate",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetShowPrivate"
}
#endif
foreign import ccall "gtk_recent_chooser_get_show_tips" gtk_recent_chooser_get_show_tips ::
Ptr RecentChooser ->
IO CInt
recentChooserGetShowTips ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Bool
recentChooserGetShowTips :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m Bool
recentChooserGetShowTips a
chooser = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CInt
result <- Ptr RecentChooser -> IO CInt
gtk_recent_chooser_get_show_tips Ptr RecentChooser
chooser'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetShowTipsMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetShowTipsMethodInfo a signature where
overloadedMethod = recentChooserGetShowTips
instance O.OverloadedMethodInfo RecentChooserGetShowTipsMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetShowTips",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetShowTips"
}
#endif
foreign import ccall "gtk_recent_chooser_get_sort_type" gtk_recent_chooser_get_sort_type ::
Ptr RecentChooser ->
IO CUInt
recentChooserGetSortType ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m Gtk.Enums.RecentSortType
recentChooserGetSortType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m RecentSortType
recentChooserGetSortType a
chooser = IO RecentSortType -> m RecentSortType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO RecentSortType -> m RecentSortType)
-> IO RecentSortType -> m RecentSortType
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CUInt
result <- Ptr RecentChooser -> IO CUInt
gtk_recent_chooser_get_sort_type Ptr RecentChooser
chooser'
let result' :: RecentSortType
result' = (Int -> RecentSortType
forall a. Enum a => Int -> a
toEnum (Int -> RecentSortType)
-> (CUInt -> Int) -> CUInt -> RecentSortType
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
RecentSortType -> IO RecentSortType
forall (m :: * -> *) a. Monad m => a -> m a
return RecentSortType
result'
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetSortTypeMethodInfo
instance (signature ~ (m Gtk.Enums.RecentSortType), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetSortTypeMethodInfo a signature where
overloadedMethod = recentChooserGetSortType
instance O.OverloadedMethodInfo RecentChooserGetSortTypeMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetSortType",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetSortType"
}
#endif
foreign import ccall "gtk_recent_chooser_get_uris" gtk_recent_chooser_get_uris ::
Ptr RecentChooser ->
Ptr Word64 ->
IO (Ptr CString)
recentChooserGetUris ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m (([T.Text], Word64))
recentChooserGetUris :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m ([Text], Word64)
recentChooserGetUris a
chooser = IO ([Text], Word64) -> m ([Text], Word64)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ([Text], Word64) -> m ([Text], Word64))
-> IO ([Text], Word64) -> m ([Text], Word64)
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr Word64
length_ <- IO (Ptr Word64)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Word64)
Ptr CString
result <- Ptr RecentChooser -> Ptr Word64 -> IO (Ptr CString)
gtk_recent_chooser_get_uris Ptr RecentChooser
chooser' Ptr Word64
length_
Text -> Ptr CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"recentChooserGetUris" Ptr CString
result
[Text]
result' <- HasCallStack => Ptr CString -> IO [Text]
Ptr CString -> IO [Text]
unpackZeroTerminatedUTF8CArray Ptr CString
result
(CString -> IO ()) -> Ptr CString -> IO ()
forall a b. (Ptr a -> IO b) -> Ptr (Ptr a) -> IO ()
mapZeroTerminatedCArray CString -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CString
result
Ptr CString -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CString
result
Word64
length_' <- Ptr Word64 -> IO Word64
forall a. Storable a => Ptr a -> IO a
peek Ptr Word64
length_
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Ptr Word64 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Word64
length_
([Text], Word64) -> IO ([Text], Word64)
forall (m :: * -> *) a. Monad m => a -> m a
return ([Text]
result', Word64
length_')
#if defined(ENABLE_OVERLOADING)
data RecentChooserGetUrisMethodInfo
instance (signature ~ (m (([T.Text], Word64))), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserGetUrisMethodInfo a signature where
overloadedMethod = recentChooserGetUris
instance O.OverloadedMethodInfo RecentChooserGetUrisMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserGetUris",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserGetUris"
}
#endif
foreign import ccall "gtk_recent_chooser_list_filters" gtk_recent_chooser_list_filters ::
Ptr RecentChooser ->
IO (Ptr (GSList (Ptr Gtk.RecentFilter.RecentFilter)))
recentChooserListFilters ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m [Gtk.RecentFilter.RecentFilter]
recentChooserListFilters :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m [RecentFilter]
recentChooserListFilters a
chooser = IO [RecentFilter] -> m [RecentFilter]
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [RecentFilter] -> m [RecentFilter])
-> IO [RecentFilter] -> m [RecentFilter]
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr (GSList (Ptr RecentFilter))
result <- Ptr RecentChooser -> IO (Ptr (GSList (Ptr RecentFilter)))
gtk_recent_chooser_list_filters Ptr RecentChooser
chooser'
[Ptr RecentFilter]
result' <- Ptr (GSList (Ptr RecentFilter)) -> IO [Ptr RecentFilter]
forall a. Ptr (GSList (Ptr a)) -> IO [Ptr a]
unpackGSList Ptr (GSList (Ptr RecentFilter))
result
[RecentFilter]
result'' <- (Ptr RecentFilter -> IO RecentFilter)
-> [Ptr RecentFilter] -> IO [RecentFilter]
forall (t :: * -> *) (m :: * -> *) a b.
(Traversable t, Monad m) =>
(a -> m b) -> t a -> m (t b)
mapM ((ManagedPtr RecentFilter -> RecentFilter)
-> Ptr RecentFilter -> IO RecentFilter
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr RecentFilter -> RecentFilter
Gtk.RecentFilter.RecentFilter) [Ptr RecentFilter]
result'
Ptr (GSList (Ptr RecentFilter)) -> IO ()
forall a. Ptr (GSList a) -> IO ()
g_slist_free Ptr (GSList (Ptr RecentFilter))
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
[RecentFilter] -> IO [RecentFilter]
forall (m :: * -> *) a. Monad m => a -> m a
return [RecentFilter]
result''
#if defined(ENABLE_OVERLOADING)
data RecentChooserListFiltersMethodInfo
instance (signature ~ (m [Gtk.RecentFilter.RecentFilter]), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserListFiltersMethodInfo a signature where
overloadedMethod = recentChooserListFilters
instance O.OverloadedMethodInfo RecentChooserListFiltersMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserListFilters",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserListFilters"
}
#endif
foreign import ccall "gtk_recent_chooser_remove_filter" gtk_recent_chooser_remove_filter ::
Ptr RecentChooser ->
Ptr Gtk.RecentFilter.RecentFilter ->
IO ()
recentChooserRemoveFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) =>
a
-> b
-> m ()
recentChooserRemoveFilter :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) =>
a -> b -> m ()
recentChooserRemoveFilter a
chooser b
filter = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentFilter
filter' <- b -> IO (Ptr RecentFilter)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
filter
Ptr RecentChooser -> Ptr RecentFilter -> IO ()
gtk_recent_chooser_remove_filter Ptr RecentChooser
chooser' Ptr RecentFilter
filter'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
filter
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserRemoveFilterMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) => O.OverloadedMethod RecentChooserRemoveFilterMethodInfo a signature where
overloadedMethod = recentChooserRemoveFilter
instance O.OverloadedMethodInfo RecentChooserRemoveFilterMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserRemoveFilter",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserRemoveFilter"
}
#endif
foreign import ccall "gtk_recent_chooser_select_all" gtk_recent_chooser_select_all ::
Ptr RecentChooser ->
IO ()
recentChooserSelectAll ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m ()
recentChooserSelectAll :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m ()
recentChooserSelectAll a
chooser = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentChooser -> IO ()
gtk_recent_chooser_select_all Ptr RecentChooser
chooser'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSelectAllMethodInfo
instance (signature ~ (m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSelectAllMethodInfo a signature where
overloadedMethod = recentChooserSelectAll
instance O.OverloadedMethodInfo RecentChooserSelectAllMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSelectAll",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSelectAll"
}
#endif
foreign import ccall "gtk_recent_chooser_select_uri" gtk_recent_chooser_select_uri ::
Ptr RecentChooser ->
CString ->
Ptr (Ptr GError) ->
IO CInt
recentChooserSelectUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> T.Text
-> m ()
recentChooserSelectUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Text -> m ()
recentChooserSelectUri a
chooser Text
uri = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CString
uri' <- Text -> IO CString
textToCString Text
uri
IO () -> IO () -> IO ()
forall a b. IO a -> IO b -> IO a
onException (do
CInt
_ <- (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO CInt) -> IO CInt)
-> (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ Ptr RecentChooser -> CString -> Ptr (Ptr GError) -> IO CInt
gtk_recent_chooser_select_uri Ptr RecentChooser
chooser' CString
uri'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
)
#if defined(ENABLE_OVERLOADING)
data RecentChooserSelectUriMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSelectUriMethodInfo a signature where
overloadedMethod = recentChooserSelectUri
instance O.OverloadedMethodInfo RecentChooserSelectUriMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSelectUri",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSelectUri"
}
#endif
foreign import ccall "gtk_recent_chooser_set_current_uri" gtk_recent_chooser_set_current_uri ::
Ptr RecentChooser ->
CString ->
Ptr (Ptr GError) ->
IO CInt
recentChooserSetCurrentUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> T.Text
-> m ()
recentChooserSetCurrentUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Text -> m ()
recentChooserSetCurrentUri a
chooser Text
uri = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CString
uri' <- Text -> IO CString
textToCString Text
uri
IO () -> IO () -> IO ()
forall a b. IO a -> IO b -> IO a
onException (do
CInt
_ <- (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO CInt) -> IO CInt)
-> (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ Ptr RecentChooser -> CString -> Ptr (Ptr GError) -> IO CInt
gtk_recent_chooser_set_current_uri Ptr RecentChooser
chooser' CString
uri'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
)
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetCurrentUriMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetCurrentUriMethodInfo a signature where
overloadedMethod = recentChooserSetCurrentUri
instance O.OverloadedMethodInfo RecentChooserSetCurrentUriMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetCurrentUri",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetCurrentUri"
}
#endif
foreign import ccall "gtk_recent_chooser_set_filter" gtk_recent_chooser_set_filter ::
Ptr RecentChooser ->
Ptr Gtk.RecentFilter.RecentFilter ->
IO ()
recentChooserSetFilter ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) =>
a
-> Maybe (b)
-> m ()
recentChooserSetFilter :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsRecentChooser a, IsRecentFilter b) =>
a -> Maybe b -> m ()
recentChooserSetFilter a
chooser Maybe b
filter = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentFilter
maybeFilter <- case Maybe b
filter of
Maybe b
Nothing -> Ptr RecentFilter -> IO (Ptr RecentFilter)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr RecentFilter
forall a. Ptr a
nullPtr
Just b
jFilter -> do
Ptr RecentFilter
jFilter' <- b -> IO (Ptr RecentFilter)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jFilter
Ptr RecentFilter -> IO (Ptr RecentFilter)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr RecentFilter
jFilter'
Ptr RecentChooser -> Ptr RecentFilter -> IO ()
gtk_recent_chooser_set_filter Ptr RecentChooser
chooser' Ptr RecentFilter
maybeFilter
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
filter b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetFilterMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsRecentChooser a, Gtk.RecentFilter.IsRecentFilter b) => O.OverloadedMethod RecentChooserSetFilterMethodInfo a signature where
overloadedMethod = recentChooserSetFilter
instance O.OverloadedMethodInfo RecentChooserSetFilterMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetFilter",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetFilter"
}
#endif
foreign import ccall "gtk_recent_chooser_set_limit" gtk_recent_chooser_set_limit ::
Ptr RecentChooser ->
Int32 ->
IO ()
recentChooserSetLimit ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Int32
-> m ()
recentChooserSetLimit :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Int32 -> m ()
recentChooserSetLimit a
chooser Int32
limit = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentChooser -> Int32 -> IO ()
gtk_recent_chooser_set_limit Ptr RecentChooser
chooser' Int32
limit
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetLimitMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetLimitMethodInfo a signature where
overloadedMethod = recentChooserSetLimit
instance O.OverloadedMethodInfo RecentChooserSetLimitMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetLimit",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetLimit"
}
#endif
foreign import ccall "gtk_recent_chooser_set_local_only" gtk_recent_chooser_set_local_only ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetLocalOnly ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetLocalOnly :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Bool -> m ()
recentChooserSetLocalOnly a
chooser Bool
localOnly = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
let localOnly' :: CInt
localOnly' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
localOnly
Ptr RecentChooser -> CInt -> IO ()
gtk_recent_chooser_set_local_only Ptr RecentChooser
chooser' CInt
localOnly'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetLocalOnlyMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetLocalOnlyMethodInfo a signature where
overloadedMethod = recentChooserSetLocalOnly
instance O.OverloadedMethodInfo RecentChooserSetLocalOnlyMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetLocalOnly",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetLocalOnly"
}
#endif
foreign import ccall "gtk_recent_chooser_set_select_multiple" gtk_recent_chooser_set_select_multiple ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetSelectMultiple ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetSelectMultiple :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Bool -> m ()
recentChooserSetSelectMultiple a
chooser Bool
selectMultiple = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
let selectMultiple' :: CInt
selectMultiple' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
selectMultiple
Ptr RecentChooser -> CInt -> IO ()
gtk_recent_chooser_set_select_multiple Ptr RecentChooser
chooser' CInt
selectMultiple'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetSelectMultipleMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetSelectMultipleMethodInfo a signature where
overloadedMethod = recentChooserSetSelectMultiple
instance O.OverloadedMethodInfo RecentChooserSetSelectMultipleMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetSelectMultiple",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetSelectMultiple"
}
#endif
foreign import ccall "gtk_recent_chooser_set_show_icons" gtk_recent_chooser_set_show_icons ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowIcons ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowIcons :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Bool -> m ()
recentChooserSetShowIcons a
chooser Bool
showIcons = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
let showIcons' :: CInt
showIcons' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
showIcons
Ptr RecentChooser -> CInt -> IO ()
gtk_recent_chooser_set_show_icons Ptr RecentChooser
chooser' CInt
showIcons'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetShowIconsMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetShowIconsMethodInfo a signature where
overloadedMethod = recentChooserSetShowIcons
instance O.OverloadedMethodInfo RecentChooserSetShowIconsMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetShowIcons",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetShowIcons"
}
#endif
foreign import ccall "gtk_recent_chooser_set_show_not_found" gtk_recent_chooser_set_show_not_found ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowNotFound ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowNotFound :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Bool -> m ()
recentChooserSetShowNotFound a
chooser Bool
showNotFound = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
let showNotFound' :: CInt
showNotFound' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
showNotFound
Ptr RecentChooser -> CInt -> IO ()
gtk_recent_chooser_set_show_not_found Ptr RecentChooser
chooser' CInt
showNotFound'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetShowNotFoundMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetShowNotFoundMethodInfo a signature where
overloadedMethod = recentChooserSetShowNotFound
instance O.OverloadedMethodInfo RecentChooserSetShowNotFoundMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetShowNotFound",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetShowNotFound"
}
#endif
foreign import ccall "gtk_recent_chooser_set_show_private" gtk_recent_chooser_set_show_private ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowPrivate ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowPrivate :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Bool -> m ()
recentChooserSetShowPrivate a
chooser Bool
showPrivate = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
let showPrivate' :: CInt
showPrivate' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
showPrivate
Ptr RecentChooser -> CInt -> IO ()
gtk_recent_chooser_set_show_private Ptr RecentChooser
chooser' CInt
showPrivate'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetShowPrivateMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetShowPrivateMethodInfo a signature where
overloadedMethod = recentChooserSetShowPrivate
instance O.OverloadedMethodInfo RecentChooserSetShowPrivateMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetShowPrivate",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetShowPrivate"
}
#endif
foreign import ccall "gtk_recent_chooser_set_show_tips" gtk_recent_chooser_set_show_tips ::
Ptr RecentChooser ->
CInt ->
IO ()
recentChooserSetShowTips ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Bool
-> m ()
recentChooserSetShowTips :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Bool -> m ()
recentChooserSetShowTips a
chooser Bool
showTips = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
let showTips' :: CInt
showTips' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
showTips
Ptr RecentChooser -> CInt -> IO ()
gtk_recent_chooser_set_show_tips Ptr RecentChooser
chooser' CInt
showTips'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetShowTipsMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetShowTipsMethodInfo a signature where
overloadedMethod = recentChooserSetShowTips
instance O.OverloadedMethodInfo RecentChooserSetShowTipsMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetShowTips",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetShowTips"
}
#endif
foreign import ccall "gtk_recent_chooser_set_sort_func" gtk_recent_chooser_set_sort_func ::
Ptr RecentChooser ->
FunPtr Gtk.Callbacks.C_RecentSortFunc ->
Ptr () ->
FunPtr GLib.Callbacks.C_DestroyNotify ->
IO ()
recentChooserSetSortFunc ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Gtk.Callbacks.RecentSortFunc
-> m ()
recentChooserSetSortFunc :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> RecentSortFunc -> m ()
recentChooserSetSortFunc a
chooser RecentSortFunc
sortFunc = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
FunPtr C_RecentSortFunc
sortFunc' <- C_RecentSortFunc -> IO (FunPtr C_RecentSortFunc)
Gtk.Callbacks.mk_RecentSortFunc (Maybe (Ptr (FunPtr C_RecentSortFunc))
-> RecentSortFunc_WithClosures -> C_RecentSortFunc
Gtk.Callbacks.wrap_RecentSortFunc Maybe (Ptr (FunPtr C_RecentSortFunc))
forall a. Maybe a
Nothing (RecentSortFunc -> RecentSortFunc_WithClosures
Gtk.Callbacks.drop_closures_RecentSortFunc RecentSortFunc
sortFunc))
let sortData :: Ptr ()
sortData = FunPtr C_RecentSortFunc -> Ptr ()
forall a b. FunPtr a -> Ptr b
castFunPtrToPtr FunPtr C_RecentSortFunc
sortFunc'
let dataDestroy :: FunPtr (Ptr a -> IO ())
dataDestroy = FunPtr (Ptr a -> IO ())
forall a. FunPtr (Ptr a -> IO ())
SP.safeFreeFunPtrPtr
Ptr RecentChooser
-> FunPtr C_RecentSortFunc
-> Ptr ()
-> FunPtr C_DestroyNotify
-> IO ()
gtk_recent_chooser_set_sort_func Ptr RecentChooser
chooser' FunPtr C_RecentSortFunc
sortFunc' Ptr ()
sortData FunPtr C_DestroyNotify
forall a. FunPtr (Ptr a -> IO ())
dataDestroy
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetSortFuncMethodInfo
instance (signature ~ (Gtk.Callbacks.RecentSortFunc -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetSortFuncMethodInfo a signature where
overloadedMethod = recentChooserSetSortFunc
instance O.OverloadedMethodInfo RecentChooserSetSortFuncMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetSortFunc",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetSortFunc"
}
#endif
foreign import ccall "gtk_recent_chooser_set_sort_type" gtk_recent_chooser_set_sort_type ::
Ptr RecentChooser ->
CUInt ->
IO ()
recentChooserSetSortType ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> Gtk.Enums.RecentSortType
-> m ()
recentChooserSetSortType :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> RecentSortType -> m ()
recentChooserSetSortType a
chooser RecentSortType
sortType = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
let sortType' :: CUInt
sortType' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt)
-> (RecentSortType -> Int) -> RecentSortType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. RecentSortType -> Int
forall a. Enum a => a -> Int
fromEnum) RecentSortType
sortType
Ptr RecentChooser -> CUInt -> IO ()
gtk_recent_chooser_set_sort_type Ptr RecentChooser
chooser' CUInt
sortType'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserSetSortTypeMethodInfo
instance (signature ~ (Gtk.Enums.RecentSortType -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserSetSortTypeMethodInfo a signature where
overloadedMethod = recentChooserSetSortType
instance O.OverloadedMethodInfo RecentChooserSetSortTypeMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserSetSortType",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserSetSortType"
}
#endif
foreign import ccall "gtk_recent_chooser_unselect_all" gtk_recent_chooser_unselect_all ::
Ptr RecentChooser ->
IO ()
recentChooserUnselectAll ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> m ()
recentChooserUnselectAll :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> m ()
recentChooserUnselectAll a
chooser = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
Ptr RecentChooser -> IO ()
gtk_recent_chooser_unselect_all Ptr RecentChooser
chooser'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserUnselectAllMethodInfo
instance (signature ~ (m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserUnselectAllMethodInfo a signature where
overloadedMethod = recentChooserUnselectAll
instance O.OverloadedMethodInfo RecentChooserUnselectAllMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserUnselectAll",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserUnselectAll"
}
#endif
foreign import ccall "gtk_recent_chooser_unselect_uri" gtk_recent_chooser_unselect_uri ::
Ptr RecentChooser ->
CString ->
IO ()
recentChooserUnselectUri ::
(B.CallStack.HasCallStack, MonadIO m, IsRecentChooser a) =>
a
-> T.Text
-> m ()
recentChooserUnselectUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsRecentChooser a) =>
a -> Text -> m ()
recentChooserUnselectUri a
chooser Text
uri = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr RecentChooser
chooser' <- a -> IO (Ptr RecentChooser)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
chooser
CString
uri' <- Text -> IO CString
textToCString Text
uri
Ptr RecentChooser -> CString -> IO ()
gtk_recent_chooser_unselect_uri Ptr RecentChooser
chooser' CString
uri'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
chooser
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data RecentChooserUnselectUriMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsRecentChooser a) => O.OverloadedMethod RecentChooserUnselectUriMethodInfo a signature where
overloadedMethod = recentChooserUnselectUri
instance O.OverloadedMethodInfo RecentChooserUnselectUriMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Interfaces.RecentChooser.recentChooserUnselectUri",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Interfaces-RecentChooser.html#v:recentChooserUnselectUri"
}
#endif
type RecentChooserItemActivatedCallback =
IO ()
noRecentChooserItemActivatedCallback :: Maybe RecentChooserItemActivatedCallback
noRecentChooserItemActivatedCallback :: Maybe (IO ())
noRecentChooserItemActivatedCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_RecentChooserItemActivatedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_RecentChooserItemActivatedCallback :: C_RecentChooserItemActivatedCallback -> IO (FunPtr C_RecentChooserItemActivatedCallback)
genClosure_RecentChooserItemActivated :: MonadIO m => RecentChooserItemActivatedCallback -> m (GClosure C_RecentChooserItemActivatedCallback)
genClosure_RecentChooserItemActivated :: forall (m :: * -> *).
MonadIO m =>
IO () -> m (GClosure C_RecentChooserItemActivatedCallback)
genClosure_RecentChooserItemActivated IO ()
cb = IO (GClosure C_RecentChooserItemActivatedCallback)
-> m (GClosure C_RecentChooserItemActivatedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_RecentChooserItemActivatedCallback)
-> m (GClosure C_RecentChooserItemActivatedCallback))
-> IO (GClosure C_RecentChooserItemActivatedCallback)
-> m (GClosure C_RecentChooserItemActivatedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_RecentChooserItemActivatedCallback
cb' = IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserItemActivatedCallback IO ()
cb
C_RecentChooserItemActivatedCallback
-> IO (FunPtr C_RecentChooserItemActivatedCallback)
mk_RecentChooserItemActivatedCallback C_RecentChooserItemActivatedCallback
cb' IO (FunPtr C_RecentChooserItemActivatedCallback)
-> (FunPtr C_RecentChooserItemActivatedCallback
-> IO (GClosure C_RecentChooserItemActivatedCallback))
-> IO (GClosure C_RecentChooserItemActivatedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_RecentChooserItemActivatedCallback
-> IO (GClosure C_RecentChooserItemActivatedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_RecentChooserItemActivatedCallback ::
RecentChooserItemActivatedCallback ->
C_RecentChooserItemActivatedCallback
wrap_RecentChooserItemActivatedCallback :: IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserItemActivatedCallback IO ()
_cb Ptr ()
_ Ptr ()
_ = do
IO ()
_cb
onRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId
onRecentChooserItemActivated :: forall a (m :: * -> *).
(IsRecentChooser a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
onRecentChooserItemActivated a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_RecentChooserItemActivatedCallback
cb' = IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserItemActivatedCallback IO ()
cb
FunPtr C_RecentChooserItemActivatedCallback
cb'' <- C_RecentChooserItemActivatedCallback
-> IO (FunPtr C_RecentChooserItemActivatedCallback)
mk_RecentChooserItemActivatedCallback C_RecentChooserItemActivatedCallback
cb'
a
-> Text
-> FunPtr C_RecentChooserItemActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"item-activated" FunPtr C_RecentChooserItemActivatedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterRecentChooserItemActivated :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserItemActivatedCallback -> m SignalHandlerId
afterRecentChooserItemActivated :: forall a (m :: * -> *).
(IsRecentChooser a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
afterRecentChooserItemActivated a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_RecentChooserItemActivatedCallback
cb' = IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserItemActivatedCallback IO ()
cb
FunPtr C_RecentChooserItemActivatedCallback
cb'' <- C_RecentChooserItemActivatedCallback
-> IO (FunPtr C_RecentChooserItemActivatedCallback)
mk_RecentChooserItemActivatedCallback C_RecentChooserItemActivatedCallback
cb'
a
-> Text
-> FunPtr C_RecentChooserItemActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"item-activated" FunPtr C_RecentChooserItemActivatedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data RecentChooserItemActivatedSignalInfo
instance SignalInfo RecentChooserItemActivatedSignalInfo where
type HaskellCallbackType RecentChooserItemActivatedSignalInfo = RecentChooserItemActivatedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_RecentChooserItemActivatedCallback cb
cb'' <- mk_RecentChooserItemActivatedCallback cb'
connectSignalFunPtr obj "item-activated" cb'' connectMode detail
#endif
type RecentChooserSelectionChangedCallback =
IO ()
noRecentChooserSelectionChangedCallback :: Maybe RecentChooserSelectionChangedCallback
noRecentChooserSelectionChangedCallback :: Maybe (IO ())
noRecentChooserSelectionChangedCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_RecentChooserSelectionChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_RecentChooserSelectionChangedCallback :: C_RecentChooserSelectionChangedCallback -> IO (FunPtr C_RecentChooserSelectionChangedCallback)
genClosure_RecentChooserSelectionChanged :: MonadIO m => RecentChooserSelectionChangedCallback -> m (GClosure C_RecentChooserSelectionChangedCallback)
genClosure_RecentChooserSelectionChanged :: forall (m :: * -> *).
MonadIO m =>
IO () -> m (GClosure C_RecentChooserItemActivatedCallback)
genClosure_RecentChooserSelectionChanged IO ()
cb = IO (GClosure C_RecentChooserItemActivatedCallback)
-> m (GClosure C_RecentChooserItemActivatedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_RecentChooserItemActivatedCallback)
-> m (GClosure C_RecentChooserItemActivatedCallback))
-> IO (GClosure C_RecentChooserItemActivatedCallback)
-> m (GClosure C_RecentChooserItemActivatedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_RecentChooserItemActivatedCallback
cb' = IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserSelectionChangedCallback IO ()
cb
C_RecentChooserItemActivatedCallback
-> IO (FunPtr C_RecentChooserItemActivatedCallback)
mk_RecentChooserSelectionChangedCallback C_RecentChooserItemActivatedCallback
cb' IO (FunPtr C_RecentChooserItemActivatedCallback)
-> (FunPtr C_RecentChooserItemActivatedCallback
-> IO (GClosure C_RecentChooserItemActivatedCallback))
-> IO (GClosure C_RecentChooserItemActivatedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_RecentChooserItemActivatedCallback
-> IO (GClosure C_RecentChooserItemActivatedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_RecentChooserSelectionChangedCallback ::
RecentChooserSelectionChangedCallback ->
C_RecentChooserSelectionChangedCallback
wrap_RecentChooserSelectionChangedCallback :: IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserSelectionChangedCallback IO ()
_cb Ptr ()
_ Ptr ()
_ = do
IO ()
_cb
onRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId
onRecentChooserSelectionChanged :: forall a (m :: * -> *).
(IsRecentChooser a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
onRecentChooserSelectionChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_RecentChooserItemActivatedCallback
cb' = IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserSelectionChangedCallback IO ()
cb
FunPtr C_RecentChooserItemActivatedCallback
cb'' <- C_RecentChooserItemActivatedCallback
-> IO (FunPtr C_RecentChooserItemActivatedCallback)
mk_RecentChooserSelectionChangedCallback C_RecentChooserItemActivatedCallback
cb'
a
-> Text
-> FunPtr C_RecentChooserItemActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"selection-changed" FunPtr C_RecentChooserItemActivatedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterRecentChooserSelectionChanged :: (IsRecentChooser a, MonadIO m) => a -> RecentChooserSelectionChangedCallback -> m SignalHandlerId
afterRecentChooserSelectionChanged :: forall a (m :: * -> *).
(IsRecentChooser a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
afterRecentChooserSelectionChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_RecentChooserItemActivatedCallback
cb' = IO () -> C_RecentChooserItemActivatedCallback
wrap_RecentChooserSelectionChangedCallback IO ()
cb
FunPtr C_RecentChooserItemActivatedCallback
cb'' <- C_RecentChooserItemActivatedCallback
-> IO (FunPtr C_RecentChooserItemActivatedCallback)
mk_RecentChooserSelectionChangedCallback C_RecentChooserItemActivatedCallback
cb'
a
-> Text
-> FunPtr C_RecentChooserItemActivatedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"selection-changed" FunPtr C_RecentChooserItemActivatedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data RecentChooserSelectionChangedSignalInfo
instance SignalInfo RecentChooserSelectionChangedSignalInfo where
type HaskellCallbackType RecentChooserSelectionChangedSignalInfo = RecentChooserSelectionChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_RecentChooserSelectionChangedCallback cb
cb'' <- mk_RecentChooserSelectionChangedCallback cb'
connectSignalFunPtr obj "selection-changed" cb'' connectMode detail
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList RecentChooser = RecentChooserSignalList
type RecentChooserSignalList = ('[ '("itemActivated", RecentChooserItemActivatedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("selectionChanged", RecentChooserSelectionChangedSignalInfo)] :: [(Symbol, *)])
#endif