Hoogle Search
Within LTS Haskell 24.45 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
settingsGetUint :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Word32gi-gio GI.Gio.Objects.Settings Gets the value that is stored at key in settings. A convenience variant of g_settings_get() for 32-bit unsigned integers. It is a programmer error to give a key that isn't specified as having a uint32 type in the schema for settings. Since: 2.30
settingsGetUint64 :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Word64gi-gio GI.Gio.Objects.Settings Gets the value that is stored at key in settings. A convenience variant of g_settings_get() for 64-bit unsigned integers. It is a programmer error to give a key that isn't specified as having a uint64 type in the schema for settings. Since: 2.50
settingsGetUserValue :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m (Maybe GVariant)gi-gio GI.Gio.Objects.Settings Checks the "user value" of a key, if there is one. The user value of a key is the last value that was set by the user. After calling settingsReset this function should always return Nothing (assuming something is not wrong with the system configuration). It is possible that settingsGetValue will return a different value than this function. This can happen in the case that the user set a value for a key that was subsequently locked down by the system administrator -- this function will return the user's old value. This function may be useful for adding a "reset" option to a UI or for providing indication that a particular value has been changed. It is a programmer error to give a key that isn't contained in the schema for settings. Since: 2.40
settingsGetValue :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m GVariantgi-gio GI.Gio.Objects.Settings Gets the value that is stored in settings for key. It is a programmer error to give a key that isn't contained in the schema for settings. Since: 2.26
settingsIsWritable :: (HasCallStack, MonadIO m, IsSettings a) => a -> Text -> m Boolgi-gio GI.Gio.Objects.Settings Finds out if a key can be written or not Since: 2.26
settingsListChildren :: (HasCallStack, MonadIO m, IsSettings a) => a -> m [Text]gi-gio GI.Gio.Objects.Settings Gets the list of children on settings. The list is exactly the list of strings for which it is not an error to call settingsGetChild. There is little reason to call this function from "normal" code, since you should already know what children are in your schema. This function may still be useful there for introspection reasons, however. You should free the return value with strfreev when you are done with it.
settingsListKeys :: (HasCallStack, MonadIO m, IsSettings a) => a -> m [Text]gi-gio GI.Gio.Objects.Settings Deprecated: (Since version 2.46)Use settingsSchemaListKeys instead.
settingsListRelocatableSchemas :: (HasCallStack, MonadIO m) => m [Text]gi-gio GI.Gio.Objects.Settings Deprecated: (Since version 2.40)Use settingsSchemaSourceListSchemas instead
settingsListSchemas :: (HasCallStack, MonadIO m) => m [Text]gi-gio GI.Gio.Objects.Settings Deprecated: (Since version 2.40)Use settingsSchemaSourceListSchemas instead.If you used settingsListSchemas to check for the presence ofa particular schema, use settingsSchemaSourceLookup insteadof your whole loop.
settingsNew :: (HasCallStack, MonadIO m) => Text -> m Settingsgi-gio GI.Gio.Objects.Settings Creates a new Settings object with the schema specified by schemaId. It is an error for the schema to not exist: schemas are an essential part of a program, as they provide type information. If schemas need to be dynamically loaded (for example, from an optional runtime dependency), settingsSchemaSourceLookup can be used to test for their existence before loading them. Signals on the newly created Settings object will be dispatched via the thread-default MainContext in effect at the time of the call to settingsNew. The new Settings will hold a reference on the context. See mainContextPushThreadDefault. Since: 2.26