mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
Merge branch 'mauriceackel-main-patch-88459' into 'main'
Fix GSettings dict error macOS Closes #2527 See merge request GNOME/glib!2325
This commit is contained in:
commit
1f1bf730a2
@ -444,17 +444,17 @@ g_nextstep_settings_backend_get_ns_object (GVariant *variant)
|
||||
{
|
||||
NSMutableDictionary *dictionary;
|
||||
GVariantIter iter;
|
||||
GVariant *name;
|
||||
const gchar *name;
|
||||
GVariant *value;
|
||||
|
||||
dictionary = [NSMutableDictionary dictionaryWithCapacity:g_variant_iter_init (&iter, variant)];
|
||||
|
||||
while (g_variant_iter_loop (&iter, "{s*}", &name, &value))
|
||||
while (g_variant_iter_loop (&iter, "{&s*}", &name, &value))
|
||||
{
|
||||
NSString *key;
|
||||
id object;
|
||||
|
||||
key = [NSString stringWithUTF8String:g_variant_get_string (name, NULL)];
|
||||
key = [NSString stringWithUTF8String:name];
|
||||
object = g_nextstep_settings_backend_get_ns_object (value);
|
||||
|
||||
[dictionary setObject:object forKey:key];
|
||||
|
Loading…
Reference in New Issue
Block a user