summaryrefslogtreecommitdiff
path: root/engine/dconf-engine-source.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-11-25 11:37:24 -0500
committerRyan Lortie <desrt@desrt.ca>2013-11-25 12:23:16 -0500
commit048e2e5e9c89eb08ef954194f2a5505e3d4ace3a (patch)
tree4421b539bdefc57910fd54cca4d49dde1ab21063 /engine/dconf-engine-source.h
parentb7978d79b21340bb80725c6deb7e2aafba436175 (diff)
downloaddconf-048e2e5e9c89eb08ef954194f2a5505e3d4ace3a.tar.gz
engine: issue warnings once per source
On failure to open a gvdb file in /etc/dconf/db we would issue a warning once per process -- even if multiple files were missing. This was enforced using a static variable. An unfortunate side effect of this global state is that the testcases couldn't reliably know if to expect the error or not. This issue was side-stepped by running any cases that may emit the warning under a fork, but that made it difficult to debug some of the cases. Rework the backends not to use global state for the flag and instead store it per-source. Remove a use of g_test_trap_fork().
Diffstat (limited to 'engine/dconf-engine-source.h')
-rw-r--r--engine/dconf-engine-source.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/dconf-engine-source.h b/engine/dconf-engine-source.h
index 3828dba..8aefc41 100644
--- a/engine/dconf-engine-source.h
+++ b/engine/dconf-engine-source.h
@@ -47,6 +47,7 @@ struct _DConfEngineSource
GvdbTable *locks;
GBusType bus_type;
gboolean writable;
+ gboolean did_warn;
gchar *bus_name;
gchar *object_path;
gchar *name;