diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-28 13:37:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-28 13:37:32 +0000 |
| commit | c726a1f709484da690a6fbcc7f6b8b4934660290 (patch) | |
| tree | 02f0a6a2441a2519829e5eca0d8bb8d1ae57fb44 /render | |
| parent | 9d8e1da42a40f886b0dd1a5f5b1fd79be59cd1e0 (diff) | |
set the current theme in a root property
Diffstat (limited to 'render')
| -rw-r--r-- | render/theme.c | 3 | ||||
| -rw-r--r-- | render/theme.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/render/theme.c b/render/theme.c index 97f5e1f5..b4d86918 100644 --- a/render/theme.c +++ b/render/theme.c @@ -95,6 +95,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, theme = g_new0(RrTheme, 1); theme->inst = inst; + theme->name = g_strdup(name); 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); diff --git a/render/theme.h b/render/theme.h index 4e87fb12..dda67071 100644 --- a/render/theme.h +++ b/render/theme.h @@ -230,6 +230,7 @@ struct _RrTheme { RrAppearance *osd_hilite_label; /* can be parent relative */ RrAppearance *osd_unhilite_fg; /* can never be parent relative */ + gchar *name; }; /*! The font values are all optional. If a NULL is used for any of them, then |
