mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	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:
		
							parent
							
								
									8484b63c18
								
							
						
					
					
						commit
						705779eddd
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -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++) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue