Method
GioSettingsbind_with_mapping_closures
since: 2.82
Declaration [src]
void
g_settings_bind_with_mapping_closures (
GSettings* settings,
const char* key,
GObject* object,
const char* property,
GSettingsBindFlags flags,
GClosure* get_mapping,
GClosure* set_mapping
)
Description [src]
Version of g_settings_bind_with_mapping() using closures instead of callbacks
for easier binding in other languages.
Available since: 2.82
This method is renamed to g_settings_bind_with_mapping() in language bindings.
Parameters
key-
Type:
const char*The key to bind.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. object-
Type:
GObjectA
GObject.The data is owned by the caller of the method. property-
Type:
const char*The name of the property to bind.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. flags-
Type:
GSettingsBindFlagsFlags for the binding.
get_mapping-
Type:
GClosureA function that gets called to convert values from
settingstoobject, orNULLto use the default GIO mapping.The argument can be NULL.The data is owned by the caller of the method. set_mapping-
Type:
GClosureA function that gets called to convert values from
objecttosettings, orNULLto use the default GIO mapping.The argument can be NULL.The data is owned by the caller of the method.