projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae4d31
)
GSettings: warn if use the 'memory' backend
author
Ryan Lortie
<desrt@desrt.ca>
Wed, 7 Jul 2010 14:56:57 +0000
(10:56 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Wed, 7 Jul 2010 14:56:57 +0000
(10:56 -0400)
but only if it was not explicitly selected.
gio/gsettingsbackend.c
patch
|
blob
|
history
diff --git
a/gio/gsettingsbackend.c
b/gio/gsettingsbackend.c
index
caba339
..
c432b21
100644
(file)
--- a/
gio/gsettingsbackend.c
+++ b/
gio/gsettingsbackend.c
@@
-1025,6
+1025,10
@@
g_settings_backend_get_default (void)
g_error ("No GSettingsBackend implementations exist.");
extension = extensions->data;
+
+ if (strcmp (g_io_extension_get_name (extension), "memory") == 0)
+ g_message ("Using the 'memory' GSettings backend. Your settings "
+ "will not be saved or shared with other applications.");
}
extension_type = g_io_extension_get_type (extension);