summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2018-04-17 09:07:39 +0300
committerTanu Kaskinen <tanuk@iki.fi>2018-04-19 14:45:13 +0300
commit705779eddd2dfc0460d0440cf58261f5da1dbc7a (patch)
treec4a59ccb3c9dfcb350fd92d2bbc9744d718d37ef
parent8484b63c18741307e77c66d830a2bbde26dc834a (diff)
downloadpulseaudio-705779eddd2dfc0460d0440cf58261f5da1dbc7a.tar.gz
gsettings: remove bad signal connection
The removed g_signal_connect() call didn't make sense. The callback expects to be called when individual module groups are changed, not when the top level object is changed. Also, module_group_callback() expects user_data to be non-NULL, but here it was set to NULL.
-rw-r--r--src/modules/gsettings/gsettings-helper.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/gsettings/gsettings-helper.c b/src/modules/gsettings/gsettings-helper.c
index 5d1d210ac..cf047e23e 100644
--- a/src/modules/gsettings/gsettings-helper.c
+++ b/src/modules/gsettings/gsettings-helper.c
@@ -88,8 +88,6 @@ int main(int argc, char *argv[]) {
if (!(settings = g_settings_new(PA_GSETTINGS_MODULE_GROUPS_SCHEMA)))
goto fail;
- g_signal_connect(settings, "changed", (GCallback) module_group_callback, NULL);
-
group_names = g_settings_list_children(settings);
for (name = group_names; *name; name++) {