[glib/glib-2-70: 1/2] Fix GSettings dict error macOS
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-70: 1/2] Fix GSettings dict error macOS
- Date: Tue, 16 Nov 2021 15:00:02 +0000 (UTC)
commit 8035c5a37fe20aee872a992842a42c89afaf652b
Author: Maurice <m ackel icloud com>
Date: Tue Nov 16 14:21:00 2021 +0000
Fix GSettings dict error macOS
gio/gnextstepsettingsbackend.m | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gnextstepsettingsbackend.m b/gio/gnextstepsettingsbackend.m
index 44ea845d8..c09d995b6 100644
--- a/gio/gnextstepsettingsbackend.m
+++ b/gio/gnextstepsettingsbackend.m
@@ -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];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]