summaryrefslogtreecommitdiff
path: root/libmetacity
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-07 04:13:48 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-02-07 04:45:54 +0200
commit25d31536416975ae941dfeca32b53b85b452340d (patch)
treefcfbddc94ceb76e3c4b7b8de20c919ffe0e4dc67 /libmetacity
parentb1077ef62d64c8d215290dc58d98345531274484 (diff)
downloadmetacity-25d31536416975ae941dfeca32b53b85b452340d.tar.gz
libmetacity: redo meta_theme_invalidate
Diffstat (limited to 'libmetacity')
-rw-r--r--libmetacity/meta-theme.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/libmetacity/meta-theme.c b/libmetacity/meta-theme.c
index 23975014..4173e6c0 100644
--- a/libmetacity/meta-theme.c
+++ b/libmetacity/meta-theme.c
@@ -235,33 +235,7 @@ meta_theme_load (MetaTheme *theme,
void
meta_theme_invalidate (MetaTheme *theme)
{
- GList *variants;
- GList *l;
-
- variants = g_hash_table_get_keys (theme->variants);
-
- for (l = variants; l != NULL; l = g_list_next (l))
- {
- gchar *variant;
- MetaStyleInfo *style_info;
-
- variant = g_strdup ((gchar *) l->data);
-
- if (g_strcmp0 (variant, "default") == 0)
- {
- style_info = meta_style_info_new (theme->theme_name, NULL,
- theme->composited);
- }
- else
- {
- style_info = meta_style_info_new (theme->theme_name, variant,
- theme->composited);
- }
-
- g_hash_table_insert (theme->variants, variant, style_info);
- }
-
- g_list_free (variants);
+ g_hash_table_remove_all (theme->variants);
}
MetaStyleInfo *