summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2019-07-30 11:46:55 +0300
committerRobert Antoni Buj Gelonch <[email protected]>2019-08-10 18:15:27 +0200
commite31704684773d8279adc303d183d498252e0583f (patch)
treee1a017c336a34d43695bb49e708e904d345d6cae /src
parent84433d9d5ed39a85144128e675474bc07eb2bb1e (diff)
downloadmarco-e31704684773d8279adc303d183d498252e0583f.tar.bz2
marco-e31704684773d8279adc303d183d498252e0583f.tar.xz
frames: avoid infinite loop on the variants GList
and make variable names less similar taken from: https://github.com/linuxmint/muffin/commit/6120bddefd709d3f1
Diffstat (limited to 'src')
-rw-r--r--src/ui/frames.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index e0a70d1e..bae7de92 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -233,20 +233,20 @@ static void
update_style_contexts (MetaFrames *frames)
{
GtkStyleContext *style;
- GList *variants, *variant;
+ GList *variant_list, *variant;
if (frames->normal_style)
g_object_unref (frames->normal_style);
frames->normal_style = create_style_context (frames, NULL);
- variants = g_hash_table_get_keys (frames->style_variants);
- for (variant = variants; variant; variant = variants->next)
+ variant_list = g_hash_table_get_keys (frames->style_variants);
+ for (variant = variant_list; variant; variant = variant->next)
{
style = create_style_context (frames, (char *)variant->data);
g_hash_table_insert (frames->style_variants,
g_strdup (variant->data), style);
}
- g_list_free (variants);
+ g_list_free (variant_list);
}
static void
meta_frames_init (MetaFrames *frames)