]> Dogcows Code - chaz/openbox/commitdiff
look in theme dirs first, use the theme as the path as a last attempt only!
authorDana Jansens <danakj@orodu.net>
Sat, 2 Aug 2003 08:11:17 +0000 (08:11 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 2 Aug 2003 08:11:17 +0000 (08:11 +0000)
render/theme.c

index aa8054e861fe2d2f48eefaff3f0c960a6fc292c2..ca3283a27807efdbfe6cdd07e9c237950fd66d43 100644 (file)
@@ -941,19 +941,19 @@ static XrmDatabase loaddb(RrTheme *theme, char *name)
 {
     XrmDatabase db;
 
-    char *s = g_build_filename(name, "themerc", NULL);
+    char *s = g_build_filename(g_get_home_dir(), ".openbox", "themes",
+                               name, "themerc", NULL);
     if ((db = XrmGetFileDatabase(s)))
         theme->path = g_path_get_dirname(s);
     g_free(s);
     if (db == NULL) {
-       char *s = g_build_filename(g_get_home_dir(), ".openbox", "themes",
-                                  name, "themerc", NULL);
+       char *s = g_build_filename(THEMEDIR, name, "themerc", NULL);
        if ((db = XrmGetFileDatabase(s)))
             theme->path = g_path_get_dirname(s);
        g_free(s);
     }
     if (db == NULL) {
-       char *s = g_build_filename(THEMEDIR, name, "themerc", NULL);
+    char *s = g_build_filename(name, "themerc", NULL);
        if ((db = XrmGetFileDatabase(s)))
             theme->path = g_path_get_dirname(s);
         g_free(s);
This page took 0.026482 seconds and 4 git commands to generate.