From e31704684773d8279adc303d183d498252e0583f Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 30 Jul 2019 11:46:55 +0300 Subject: frames: avoid infinite loop on the variants GList and make variable names less similar taken from: https://github.com/linuxmint/muffin/commit/6120bddefd709d3f1 --- src/ui/frames.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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) -- cgit v1.2.1