summaryrefslogtreecommitdiff
path: root/cogl/tests/conform/test-texture-pixmap-x11.c
diff options
context:
space:
mode:
authorJonas Dreßler <verdre@v0yd.nl>2020-10-23 21:14:38 +0200
committerJonas Dreßler <verdre@v0yd.nl>2020-10-23 22:06:58 +0200
commit4e63ed524ed1f7feadcede4b275deea1169617a3 (patch)
tree19b5c202339fe10a5d8d1e619b3c8185a34a1bd9 /cogl/tests/conform/test-texture-pixmap-x11.c
parenta03e233b44c58dc6f5113eb7bb65e5ef47490018 (diff)
downloadmutter-4e63ed524ed1f7feadcede4b275deea1169617a3.tar.gz
tests: Use ClutterStage "after-paint" instead of ClutterActor "paint"
The "paint" signal of ClutterActor is deprecated and will be removed. We have a good replacement to get notified about stage paints nowadays, that is "after-paint" on ClutterStage, so switch to that signal where it makes sense. I didn't bother to update the few tests (namely Clutters conform/texture-fbo.c, conform/text-cache.c, interactive/test-cogl-multitexture.c and Cogls conform/test-multitexture.c, conform/test-texture-mipmaps.c) where it's harder to replace the signal since we don't build those anyway. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1522
Diffstat (limited to 'cogl/tests/conform/test-texture-pixmap-x11.c')
-rw-r--r--cogl/tests/conform/test-texture-pixmap-x11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cogl/tests/conform/test-texture-pixmap-x11.c b/cogl/tests/conform/test-texture-pixmap-x11.c
index ef1936082..41555266f 100644
--- a/cogl/tests/conform/test-texture-pixmap-x11.c
+++ b/cogl/tests/conform/test-texture-pixmap-x11.c
@@ -140,9 +140,9 @@ check_paint (TestState *state, int x, int y, int scale)
#define FRAME_COUNT_UPDATED 8
static void
-on_paint (ClutterActor *actor,
- ClutterPaintContext *paint_context,
- TestState *state)
+on_after_paint (ClutterActor *actor,
+ ClutterPaintContext *paint_context,
+ TestState *state)
{
CoglHandle material;
@@ -219,8 +219,8 @@ test_texture_pixmap_x11 (TestUtilsGTestFixture *fixture,
clutter_actor_set_background_color (CLUTTER_ACTOR (state.stage), &stage_color);
- paint_handler = g_signal_connect_after (state.stage, "paint",
- G_CALLBACK (on_paint), &state);
+ paint_handler = g_signal_connect (CLUTTER_STAGE (state.stage), "after-paint",
+ G_CALLBACK (on_after_paint), &state);
idle_handler = g_idle_add (queue_redraw, state.stage);