summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2019-07-30 11:46:55 +0300
committerraveit65 <[email protected]>2019-09-12 15:14:15 +0200
commitb2898238f715a67d6e560a10e5894a04ee3455c9 (patch)
treed2284b04d76ffbedff65745c06974e7543f84647
parent529e6c090d11524a2d9c45738e7aa9fc8a798c7a (diff)
downloadmarco-b2898238f715a67d6e560a10e5894a04ee3455c9.tar.bz2
marco-b2898238f715a67d6e560a10e5894a04ee3455c9.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
-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 9824d520..74e97a30 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)