mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-03 17:48:56 +01:00 
			
		
		
		
	gsettings: adjust closure helpers in g_settings_bind_with_mapping_closures
... to handle an output value parametere
This commit is contained in:
		
				
					committed by
					
						
						Philip Withnall
					
				
			
			
				
	
			
			
			
						parent
						
							9625907af0
						
					
				
				
					commit
					a509aa1f6f
				
			@@ -3161,6 +3161,14 @@ bind_with_mapping_invoke_get (GValue *value,
 | 
			
		||||
  g_closure_invoke (data->get_mapping_closure, &out, 2, params, /* hint = */ NULL);
 | 
			
		||||
 | 
			
		||||
  retval = g_value_get_boolean (&out);
 | 
			
		||||
  if (retval)
 | 
			
		||||
    {
 | 
			
		||||
      const GValue *out_value = g_value_get_boxed (¶ms[0]);
 | 
			
		||||
 | 
			
		||||
      g_assert (out_value != NULL);
 | 
			
		||||
 | 
			
		||||
      g_value_copy (out_value, value);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  g_value_unset (&out);
 | 
			
		||||
  g_value_unset (¶ms[0]);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user