]> Dogcows Code - chaz/openbox/blobdiff - render/theme.c
left and right edges resized in the wrong direction
[chaz/openbox] / render / theme.c
index 97f5e1f5865df388219777d742fa36814b43e658..1d47382393c667afb0075fdadbe73ab7f47d78d0 100644 (file)
@@ -95,6 +95,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
 
     theme = g_new0(RrTheme, 1);
     theme->inst = inst;
+    theme->name = g_strdup(name ? name : DEFAULT_THEME);
 
     theme->a_disabled_focused_max = RrAppearanceNew(inst, 1);
     theme->a_disabled_unfocused_max = RrAppearanceNew(inst, 1);
@@ -1192,6 +1193,8 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
 void RrThemeFree(RrTheme *theme)
 {
     if (theme) {
+        g_free(theme->name);
+
         RrColorFree(theme->menu_border_color);
         RrColorFree(theme->frame_focused_border_color);
         RrColorFree(theme->frame_unfocused_border_color);
This page took 0.021265 seconds and 4 git commands to generate.