[mutter] stage: Use g_list_foreach instead of manual for loop
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] stage: Use g_list_foreach instead of manual for loop
- Date: Thu, 6 Aug 2020 16:26:39 +0000 (UTC)
commit d8be2a8b851b76510c2c482aa2be8b51ab7831dd
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Jul 29 10:12:13 2020 +0200
stage: Use g_list_foreach instead of manual for loop
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
src/backends/meta-stage.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/backends/meta-stage.c b/src/backends/meta-stage.c
index 2cda7d471e..7d5a5c172d 100644
--- a/src/backends/meta-stage.c
+++ b/src/backends/meta-stage.c
@@ -195,7 +195,6 @@ meta_stage_paint (ClutterActor *actor,
{
MetaStage *stage = META_STAGE (actor);
ClutterStageView *view;
- GList *l;
CLUTTER_ACTOR_CLASS (meta_stage_parent_class)->paint (actor, paint_context);
@@ -210,10 +209,7 @@ meta_stage_paint (ClutterActor *actor,
if (!(clutter_paint_context_get_paint_flags (paint_context) &
CLUTTER_PAINT_FLAG_NO_CURSORS))
- {
- for (l = stage->overlays; l; l = l->next)
- meta_overlay_paint (l->data, paint_context);
- }
+ g_list_foreach (stage->overlays, (GFunc) meta_overlay_paint, paint_context);
if (view)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]