Method
PanelSettingsbind_with_mapping
Declaration [src]
void
panel_settings_bind_with_mapping (
PanelSettings* self,
const char* key,
gpointer object,
const char* property,
GSettingsBindFlags flags,
GSettingsBindGetMapping get_mapping,
GSettingsBindSetMapping set_mapping,
gpointer user_data,
GDestroyNotify destroy
)
Description [src]
Like panel_settings_bind() but allows transforming to and from settings storage using
get_mapping and set_mapping transformation functions.
Call panel_settings_unbind() to unbind the mapping.
Parameters
key-
Type:
const char*The settings key.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. object-
Type:
gpointerThe object to bind to.
The argument can be NULL.The data is owned by the caller of the method. property-
Type:
const char*The property of
objectto bind to.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:
GSettingsBindGetMappingVariant to value mapping.
The argument can be NULL. set_mapping-
Type:
GSettingsBindSetMappingValue to variant mapping.
The argument can be NULL. user_data-
Type:
gpointerUser data for
get_mappingandset_mapping.The argument can be NULL.The data is owned by the caller of the method. destroy-
Type:
GDestroyNotifyDestroy function to cleanup
user_data.