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.
This commit is contained in:
Tanu Kaskinen 2018-04-17 09:07:39 +03:00
parent 8484b63c18
commit 705779eddd

View file

@ -88,8 +88,6 @@ int main(int argc, char *argv[]) {
if (!(settings = g_settings_new(PA_GSETTINGS_MODULE_GROUPS_SCHEMA))) if (!(settings = g_settings_new(PA_GSETTINGS_MODULE_GROUPS_SCHEMA)))
goto fail; goto fail;
g_signal_connect(settings, "changed", (GCallback) module_group_callback, NULL);
group_names = g_settings_list_children(settings); group_names = g_settings_list_children(settings);
for (name = group_names; *name; name++) { for (name = group_names; *name; name++) {