diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-02 08:11:17 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-02 08:11:17 +0000 |
| commit | ede531da35b7ef5c91ae9bde531c35528bfad423 (patch) | |
| tree | a748644b5bfac526a0aaf9f0052ddf20f652ba61 /render | |
| parent | 441041d17d154b92e676da540a99fa16c7d864e9 (diff) | |
look in theme dirs first, use the theme as the path as a last attempt only!
Diffstat (limited to 'render')
| -rw-r--r-- | render/theme.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/theme.c b/render/theme.c index aa8054e8..ca3283a2 100644 --- a/render/theme.c +++ b/render/theme.c @@ -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); |
