Package: gio
Function gio:settings-default-value
Lambda Listgio:settings-default-value (settings key) ArgumentsReturn ValueThe new g:variant instance for the default value. Details
Gets the default value of a key. This is the value that would be read if the g:settings-reset function
were to be called on the key. Note that this may be a different value than returned by the g:settings-schema-key-default-value function if the system administrator has provided a default value. Comparing the return values of the g:settings-default-value function and the g:settings-value function is not sufficient for determining if a value has been set because the user may have explicitly set the value to something that happens to be equal to the default. The difference here is that if the default changes in the future, the user’s key will still be set. This function may be useful for adding an indication to a UI of what the default value was before the user set it. It is a programmer error to give a key that is not contained in the schema for settings. | See also |
#2026-03-25