X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ftheme.c;h=f5af79e98595e408ec9ef28fa89a06b7cd0a04e3;hb=2b28aa8c41b71d1f96d8ebf9cd72dd0c2ccd0678;hp=ed836efd058cd8914156d3f6cf5a50f97fc99649;hpb=e4b162d470bfbb04035bb9b3f4481fb9d171fda2;p=chaz%2Fopenbox diff --git a/render/theme.c b/render/theme.c index ed836efd..f5af79e9 100644 --- a/render/theme.c +++ b/render/theme.c @@ -87,14 +87,15 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name, name = NULL; } } - if (name == NULL && allow_fallback) { - if (!parse_load_theme(DEFAULT_THEME, &ps.doc, &root, &ps.path)) { - g_message("Unable to load the theme '%s'", DEFAULT_THEME); + if (name == NULL) { + if (allow_fallback) { + if (!parse_load_theme(DEFAULT_THEME, &ps.doc, &root, &ps.path)) { + g_message("Unable to load the theme '%s'", DEFAULT_THEME); + return NULL; + } + } else return NULL; - } } - if (name == NULL) - return NULL; ps.inst = inst;