[glib/settings-portal] fixup! settings: Prefer the keyfile backend when sandboxed
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/settings-portal] fixup! settings: Prefer the keyfile backend when sandboxed
- Date: Sat, 3 Nov 2018 18:20:49 +0000 (UTC)
commit bf7ba4b8db26d305c41ff38bd84534bd949c6886
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 3 13:03:22 2018 -0400
fixup! settings: Prefer the keyfile backend when sandboxed
fix the windows build.
gio/gkeyfilesettingsbackend.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c
index acfa3ca26..ab214d3d4 100644
--- a/gio/gkeyfilesettingsbackend.c
+++ b/gio/gkeyfilesettingsbackend.c
@@ -74,12 +74,17 @@ typedef struct
GFileMonitor *dir_monitor;
} GKeyfileSettingsBackend;
+#ifdef G_OS_WIN32
+#define EXTENSION_PRIORITY 10
+#else
+#define EXTENSION_PRIORITY (glib_should_use_portal () ? 110 : 10)
+#endif
+
G_DEFINE_TYPE_WITH_CODE (GKeyfileSettingsBackend,
g_keyfile_settings_backend,
G_TYPE_SETTINGS_BACKEND,
g_io_extension_point_implement (G_SETTINGS_BACKEND_EXTENSION_POINT_NAME,
- g_define_type_id, "keyfile",
- glib_should_use_portal () ? 110 : 10))
+ g_define_type_id, "keyfile", EXTENSION_PRIORITY))
static void
compute_checksum (guint8 *digest,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]