From 2560ec779f136c8b99e924ae1b6f770055206765 Mon Sep 17 00:00:00 2001 From: rpm-build Date: Dec 09 2020 09:26:58 +0000 Subject: 0001-conform-only-listen-to-after-paint-after-paint.patch patch_name: 0001-conform-only-listen-to-after-paint-after-paint.patch present_in_specfile: true location_in_specfile: 1 --- diff --git a/tests/conform/actor-shader-effect.c b/tests/conform/actor-shader-effect.c index d3ddd38..8114aab 100644 --- a/tests/conform/actor-shader-effect.c +++ b/tests/conform/actor-shader-effect.c @@ -224,8 +224,8 @@ get_pixel (int x, int y) } static void -paint_cb (ClutterStage *stage, - gpointer data) +after_paint_cb (ClutterStage *stage, + gpointer data) { gboolean *was_painted = data; @@ -242,6 +242,15 @@ paint_cb (ClutterStage *stage, } static void +paint_cb (ClutterStage *stage, + gpointer data) +{ + g_signal_connect (stage, "after-paint", + G_CALLBACK (after_paint_cb), + data); +} + +static void actor_shader_effect (void) { ClutterActor *stage; @@ -271,7 +280,7 @@ actor_shader_effect (void) clutter_actor_show (stage); was_painted = FALSE; - g_signal_connect (stage, "after-paint", + g_signal_connect (stage, "paint", G_CALLBACK (paint_cb), &was_painted);