From: Dana Jansens Date: Wed, 30 May 2007 13:59:07 +0000 (+0000) Subject: merge r7100 from trunk X-Git-Tag: openbox-3_3_995-RELEASE~35 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=fd1a15511cc329524f3c66b4018097f7c28a3530;p=dana%2Fopenbox.git merge r7100 from trunk --- diff --git a/render/theme.c b/render/theme.c index e5452317..733b6b16 100644 --- a/render/theme.c +++ b/render/theme.c @@ -64,6 +64,8 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, g_message("Unable to load the theme '%s'", name); g_message("Falling back to the default theme '%s'", DEFAULT_THEME); + /* fallback to the default theme */ + name = NULL; } } if (db == NULL) { @@ -72,13 +74,12 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, g_message("Unable to load the theme '%s'", DEFAULT_THEME); return NULL; } - name = DEFAULT_THEME; } theme = g_new0(RrTheme, 1); theme->inst = inst; - theme->name = g_strdup(name); + theme->name = g_strdup(name ? name : DEFAULT_THEME); theme->a_disabled_focused_max = RrAppearanceNew(inst, 1); theme->a_disabled_unfocused_max = RrAppearanceNew(inst, 1);