6.24 GSettingsGetMapping

Callback: GSettingsGetMapping

A procedure given for it is called as (procedure value) ⇒ %return result.

The type of the function that is used to convert from a value stored in a <GSettings> to a value that is useful to the application.

If the value is successfully mapped, the result should be stored at result and true returned. If mapping fails (for example, if value is not in the right format) then false should be returned.

If value is NULL then it means that the mapping function is being given a ‘last chance’ to successfully return a valid value. True must be returned in this case.

value

Passed: a <GVariant>, or #f.

variant to map to the application value

%return

Returned: a boolean.

true if the conversion succeeded, false in case of an error

result

Returned: a foreign pointer, or a bytevector, or #f.

the result of the mapping

user-data

Not passed: it is the user data that guile-gi supplied.

the user data that was passed to settings:get-mapped