GSettingsBindFlags

Flags used when creating a binding. These flags determine in which direction the binding works. The default is to synchronize in both directions.

Values

ValueMeaning
Default0

Equivalent to G_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET

Get1

Update the #GObject property when the setting changes. It is an error to use this flag if the property is not writable.

Set2

Update the setting when the #GObject property changes. It is an error to use this flag if the property is not readable.

NoSensitivity4

Do not try to bind a "sensitivity" property to the writability of the setting

GetNoChanges8

When set in addition to gio.types.SettingsBindFlags.Get, set the #GObject property value initially from the setting, but do not listen for changes of the setting

InvertBoolean16

When passed to gio.settings.Settings.bind, uses a pair of mapping functions that invert the boolean value when mapping between the setting and the property. The setting and property must both be booleans. You cannot pass this flag to gio.settings.Settings.bindWithMapping.