mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Do not blindly fail if default mapping function can't handle the binding
It's perfectly okay to have no specific mapping function for get if the caller is not interested in get anyway.
This commit is contained in:
parent
2a1e228408
commit
0b72c678c7
@ -1623,7 +1623,8 @@ g_settings_bind_with_mapping (GSettings *settings,
|
||||
return;
|
||||
}
|
||||
|
||||
if (get_mapping == NULL || set_mapping == NULL)
|
||||
if ((get_mapping == NULL && (flags & G_SETTINGS_BIND_GET)) ||
|
||||
(set_mapping == NULL && (flags & G_SETTINGS_BIND_SET)))
|
||||
{
|
||||
gboolean ok = FALSE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user