mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-04 09:46:59 +02:00
gsettings: adjust closure helpers in g_settings_bind_with_mapping_closures
... to handle an output value parametere
This commit is contained in:
parent
9ee245b78e
commit
bd20507909
@ -3161,6 +3161,14 @@ bind_with_mapping_invoke_get (GValue *value,
|
|||||||
g_closure_invoke (data->get_mapping_closure, &out, 2, params, /* hint = */ NULL);
|
g_closure_invoke (data->get_mapping_closure, &out, 2, params, /* hint = */ NULL);
|
||||||
|
|
||||||
retval = g_value_get_boolean (&out);
|
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 (&out);
|
||||||
g_value_unset (¶ms[0]);
|
g_value_unset (¶ms[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user