From: Dana Jansens Date: Mon, 15 Sep 2003 19:41:48 +0000 (+0000) Subject: look in ~/.themes for themes also X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=8ba479a36784879859edd6f116e5cdb5912e310d;p=chaz%2Fopenbox look in ~/.themes for themes also --- diff --git a/render/theme.c b/render/theme.c index 8ad8c841..c30acc2d 100644 --- a/render/theme.c +++ b/render/theme.c @@ -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)) {