Is there any GType for which a property of that type could be bound directly (without having to use g_settings_bind_with_mapping) to a GSettings key of string-array type?
I tried GList and GtkStringList and both of these do not bind without using mapping.
No, but g_settings_bind() is really just a wrapper around g_settings_bind_with_mapping() with a special case for G_SETTINGS_BIND_INVERT_BOOLEAN. Except that flag it’s equivalent to:
I do know that but I am using the python bindings and bind_with_mapping is not available for bindings. I do have a pure python version of that function but I do not want to rely on it too much.
Also, I was just looking for convenience. Instead of having to write two mapping functions, it would be more convenient to not have to write them.
Yeah, Gio.Settings.bind_with_mapping() is marked as (skip) for bindings. There’s a similar issue for GJS, so the best advice is to open a request in the issue tracker for pygobject, or contribute to the issue in GLib for a binding-friendly variant.