]> Dogcows Code - chaz/openbox/commitdiff
look in ~/.themes for themes also
authorDana Jansens <danakj@orodu.net>
Mon, 15 Sep 2003 19:41:48 +0000 (19:41 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 15 Sep 2003 19:41:48 +0000 (19:41 +0000)
render/theme.c

index 8ad8c8415a998a8206835b0abf6baad0cd029a65..c30acc2da840e38b5a47cbc380031ebf9b0ff02b 100644 (file)
@@ -1070,6 +1070,13 @@ static XrmDatabase loaddb(RrTheme *theme, char *name)
             theme->path = g_path_get_dirname(s);
         g_free(s);
     } else {
+        /* XXX backwards compatibility, remove me sometime later */
+        s = g_build_filename(g_get_home_dir(), ".themes", name,
+                             "openbox-3", "themerc", NULL);
+        if ((db = XrmGetFileDatabase(s)))
+            theme->path = g_path_get_dirname(s);
+        g_free(s);
+
         for (it = parse_xdg_data_dir_paths(); !db && it;
              it = g_slist_next(it))
         {
This page took 0.024096 seconds and 4 git commands to generate.