[pulseaudio-commits] r1156 - /trunk/src/modules/gconf/gconf-helper.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Jul 27 09:50:26 PDT 2006
Author: lennart
Date: Thu Jul 27 18:50:26 2006
New Revision: 1156
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1156&root=pulseaudio&view=rev
Log:
because gconf doesn't provide real transactions we emulate our own with a "locked" gconf key
Modified:
trunk/src/modules/gconf/gconf-helper.c
Modified: trunk/src/modules/gconf/gconf-helper.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/gconf/gconf-helper.c?rev=1156&root=pulseaudio&r1=1155&r2=1156&view=diff
==============================================================================
--- trunk/src/modules/gconf/gconf-helper.c (original)
+++ trunk/src/modules/gconf/gconf-helper.c Thu Jul 27 18:50:26 2006
@@ -35,12 +35,18 @@
static void handle_module(GConfClient *client, const char *name) {
gchar p[1024];
- gboolean enabled;
+ gboolean enabled, locked;
int i;
+
+ snprintf(p, sizeof(p), PA_GCONF_PATH_MODULES"/%s/locked", name);
+ locked = gconf_client_get_bool(client, p, FALSE);
+
+ if (locked)
+ return;
snprintf(p, sizeof(p), PA_GCONF_PATH_MODULES"/%s/enabled", name);
enabled = gconf_client_get_bool(client, p, FALSE);
-
+
printf("%c%s%c", enabled ? '+' : '-', name, 0);
if (enabled) {
More information about the pulseaudio-commits
mailing list