kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=6ce105da1410dfb84908ec226cf0ec4a71fcdebc

commit 6ce105da1410dfb84908ec226cf0ec4a71fcdebc
Author: Kim Woelders <k...@woelders.dk>
Date:   Wed Jan 3 22:13:00 2018 +0100

    theme.c: List .theme files too
---
 src/theme.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/theme.c b/src/theme.c
index d7b41c0f..cd94180d 100644
--- a/src/theme.c
+++ b/src/theme.c
@@ -168,6 +168,17 @@ _append_merge_dir(char *dir, char ***list, int *count)
                goto got_one;
          }
 
+       if (strcmp(s + 1, "theme") == 0)
+         {
+            Esnprintf(s1, sizeof(s1), "%s/.themes/%s", userhome(), str[i]);
+            s = strrchr(s1, '.');
+            if (!s)
+               continue;
+            *s = '\0';
+            if (!isdir(s1))
+               goto got_one;
+         }
+
        continue;
 
       got_one:

-- 


Reply via email to