mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
because gconf doesn't provide real transactions we emulate our own with a "locked" gconf key
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1156 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6afb61efdc
commit
87d4f0bd93
1 changed files with 8 additions and 2 deletions
|
|
@ -35,12 +35,18 @@
|
||||||
|
|
||||||
static void handle_module(GConfClient *client, const char *name) {
|
static void handle_module(GConfClient *client, const char *name) {
|
||||||
gchar p[1024];
|
gchar p[1024];
|
||||||
gboolean enabled;
|
gboolean enabled, locked;
|
||||||
int i;
|
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);
|
snprintf(p, sizeof(p), PA_GCONF_PATH_MODULES"/%s/enabled", name);
|
||||||
enabled = gconf_client_get_bool(client, p, FALSE);
|
enabled = gconf_client_get_bool(client, p, FALSE);
|
||||||
|
|
||||||
printf("%c%s%c", enabled ? '+' : '-', name, 0);
|
printf("%c%s%c", enabled ? '+' : '-', name, 0);
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue