[libadwaita/msvc: 5/5] adw-settings.c: Always disable portal on Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/msvc: 5/5] adw-settings.c: Always disable portal on Windows
- Date: Tue, 12 Oct 2021 08:14:30 +0000 (UTC)
commit 73b0ddf206f4fb7915f80d61c60c1175217f16af
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Oct 12 16:08:08 2021 +0800
adw-settings.c: Always disable portal on Windows
FreeDesktop Portal/FlatPak is not and will likely not be available for Windows
src/adw-settings.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/adw-settings.c b/src/adw-settings.c
index 417e7db5..ebc258a6 100644
--- a/src/adw-settings.c
+++ b/src/adw-settings.c
@@ -85,9 +85,13 @@ set_high_contrast (AdwSettings *self,
static gboolean
get_disable_portal (void)
{
+#ifdef G_OS_WIN32
+ return TRUE;
+#else
const char *disable_portal = g_getenv ("ADW_DISABLE_PORTAL");
return disable_portal && disable_portal[0] == '1';
+#endif
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]