diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-30 13:58:53 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-30 13:58:53 +0000 |
| commit | ed1dcb6b48012ca5c4a1358915e309ec05f9afe3 (patch) | |
| tree | 96b82462c1d85f9d7b9d8f1be3b0d8b1b56ab4f0 | |
| parent | 999cf25006b063048bff905924bb31eb7c4f9119 (diff) | |
no const weirdness
| -rw-r--r-- | render/theme.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/render/theme.c b/render/theme.c index 152ea34f..1d473823 100644 --- a/render/theme.c +++ b/render/theme.c @@ -90,13 +90,12 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, g_message("Unable to load the theme '%s'", DEFAULT_THEME); return NULL; } - name = DEFAULT_THEME; } ps.inst = inst; 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); |
