GSettingsBackend: add read_user_value() API
authorRyan Lortie <desrt@desrt.ca>
Sun, 27 Oct 2013 16:42:32 +0000 (09:42 -0700)
committerRyan Lortie <desrt@desrt.ca>
Mon, 28 Oct 2013 17:19:49 +0000 (10:19 -0700)
commit84a6e651c208971e810d04c1ab08bed6a5f58905
tree4dfbf72d9e6d59d697fde1d5e12480f42cdffdb0
parentd567aa51149186e4675e01a5f11afb0360917da0
GSettingsBackend: add read_user_value() API

This will get the 'user' value from the database (ie: the one that the user has
control over).

Provide a default implementation that chains to ->read().  That will work for
all of our internal backends which don't have a concept of layering or
lockdown.

The delayed backend implments "user value" by returning anything that's
in the changeset (incuding an explicit NULL) or chaining up otherwise.

We will use this for g_settings_get_user_value().

https://bugzilla.gnome.org/show_bug.cgi?id=668233
gio/gdelayedsettingsbackend.c
gio/gsettingsbackend.c
gio/gsettingsbackend.h
gio/gsettingsbackendinternal.h