diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-07-18 23:23:54 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-07-18 23:23:54 -0400 |
commit | 67cb6fa67a608ba5b778e6e0bba9578a0a6ab075 (patch) | |
tree | a168ebcf2cf2291a903ae77c9af1c88c2bca1966 /engine/dconf-engine.c | |
parent | 4c375030eb6254b757b6fa1bba6dbd0c5d69774f (diff) | |
download | dconf-67cb6fa67a608ba5b778e6e0bba9578a0a6ab075.tar.gz |
assorted client API cleanups, vala port of 'dconf'
Diffstat (limited to 'engine/dconf-engine.c')
-rw-r--r-- | engine/dconf-engine.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c index 3efa5f1..02e5bf3 100644 --- a/engine/dconf-engine.c +++ b/engine/dconf-engine.c @@ -262,9 +262,8 @@ dconf_engine_load_profile (const gchar *profile, } DConfEngine * -dconf_engine_new (void) +dconf_engine_new (const gchar *profile) { - const gchar *profile; DConfEngine *engine; gint i; @@ -272,7 +271,8 @@ dconf_engine_new (void) engine->ref_count = 1; engine->shm = NULL; - profile = getenv ("DCONF_PROFILE"); + if (profile == NULL) + profile = getenv ("DCONF_PROFILE"); if (profile) { @@ -477,12 +477,12 @@ dconf_engine_write_many (DConfEngine *engine, } void -dconf_engine_set_locked (DConfEngine *engine, - DConfEngineMessage *dcem, - const gchar *path, - gboolean locked) +dconf_engine_set_lock (DConfEngine *engine, + DConfEngineMessage *dcem, + const gchar *path, + gboolean locked) { - dconf_engine_dcem (engine, dcem, "SetLocked", "(sb)", path, locked); + dconf_engine_dcem (engine, dcem, "SetLock", "(sb)", path, locked); } gchar ** |