This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository xdg-desktop-portal-efl.

View the commit online.

commit 149b33d76c55d0513d7a4e2bc12b6e46b44a9bc9
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Mon Nov 30 09:26:19 2026 +0000

    tidy and comment settings service
---
 src/bin/service_settings.c | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/src/bin/service_settings.c b/src/bin/service_settings.c
index d7dc986..e63464a 100644
--- a/src/bin/service_settings.c
+++ b/src/bin/service_settings.c
@@ -2,6 +2,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+/* https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.impl.portal.Settings.html */
+
 #define APPEARANCE "org.freedesktop.appearance"
 
 typedef struct
@@ -303,7 +305,6 @@ service_settings_init(void)
 {
   const char *defaults[] = {"minimize", "maximize", "close"};
   Eina_List *list = NULL;
-  Eina_Bool success;
   unsigned i;
 
   if (settings_initialized) return EINA_TRUE;
@@ -317,17 +318,19 @@ service_settings_init(void)
     }
   /* Enable the shared lookup before applying defaults through the setters. */
   settings_initialized = EINA_TRUE;
-  success = service_settings_string_lists2_set(APPEARANCE, "button-placement", NULL, list);
+  // [left title buttons list], [right title buttons list]
+  // list of buttons draw in order left to ight, buttons:
+  // "close", "minimize", "maximize"
+  service_settings_string_lists2_set(APPEARANCE, "button-placement", NULL, list);
+  // 0 = no pref/nomal, 1 = dark, 2 = light
+  service_settings_uint_set         (APPEARANCE, "color-scheme",   1);
+  // R, G, B  (0.0 -> 1.0)
+  service_settings_doubles3_set     (APPEARANCE, "accent-color",   0.2, 0.6, 1.0);
+  // 0 = no pref/normal, 1 = high contrast
+  service_settings_uint_set         (APPEARANCE, "contrast",       0);
+  // 0 = no pref/normal, 1 = reduced motion
+  service_settings_uint_set         (APPEARANCE, "reduced-motion", 0);
   _string_list_free(list);
-  if (!success)
-    {
-      service_settings_shutdown();
-      return EINA_FALSE;
-    }
-  service_settings_uint_set    (APPEARANCE, "color-scheme",   1);
-  service_settings_doubles3_set(APPEARANCE, "accent-color",   0.2, 0.6, 1.0);
-  service_settings_uint_set    (APPEARANCE, "contrast",       0);
-  service_settings_uint_set    (APPEARANCE, "reduced-motion", 0);
   return EINA_TRUE;
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to