diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-11-26 13:38:33 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-11-26 13:46:13 -0500 |
commit | eb8f17c4c59ab480007f5ead6949388297b00e74 (patch) | |
tree | 3855cdf48da9950274c667e016b8a9daa4548e04 /client | |
parent | 735d95a845ac886355da00f5b0a565bfcaeb9534 (diff) | |
download | dconf-eb8f17c4c59ab480007f5ead6949388297b00e74.tar.gz |
engine: add 'profile' argument to constructor
Allow specifying a profile when calling dconf_engine_new(). This will
allow us to avoid setting/unsetting the DCONF_PROFILE environment in
testcases from contexts where other threads may be reading from the
environment.
Diffstat (limited to 'client')
-rw-r--r-- | client/dconf-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/dconf-client.c b/client/dconf-client.c index db281d0..5832780 100644 --- a/client/dconf-client.c +++ b/client/dconf-client.c @@ -214,7 +214,7 @@ dconf_client_new (void) client = g_object_new (DCONF_TYPE_CLIENT, NULL); weak_ref = g_slice_new (GWeakRef); g_weak_ref_init (weak_ref, client); - client->engine = dconf_engine_new (weak_ref, dconf_client_free_weak_ref); + client->engine = dconf_engine_new (NULL, weak_ref, dconf_client_free_weak_ref); client->context = g_main_context_ref_thread_default (); return client; |