]> Dogcows Code - chaz/openbox/commitdiff
cleaner code
authorDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 15:44:28 +0000 (15:44 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 15:44:28 +0000 (15:44 +0000)
render/theme.c

index ed836efd058cd8914156d3f6cf5a50f97fc99649..f68870799de82a051e202e3bef96c79c72bf9b89 100644 (file)
@@ -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;
 
This page took 0.023505 seconds and 4 git commands to generate.