From 0d7ee3f4d06a677453398352ffefe575a9bc82c1 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Sun, 13 Dec 2020 16:13:09 +0100 Subject: [PATCH] Remove GSourceFunc casts Convert the callback into a real GSourceFunc. Signed-off-by: Olaf Hering --- panel-plugin/eyes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panel-plugin/eyes.c b/panel-plugin/eyes.c index baa278d..beb88fd 100644 --- a/panel-plugin/eyes.c +++ b/panel-plugin/eyes.c @@ -161,9 +161,10 @@ draw_eye (EyesPlugin *eyes, -static gint -timer_cb (EyesPlugin *eyes) +static gboolean +timer_cb (gpointer user_data) { + EyesPlugin *eyes = user_data; gint x, y; gint pupil_x, pupil_y; gint i; @@ -291,8 +292,7 @@ eyes_applet_fill (EyesPlugin *eyes) if (eyes->timeout_id == 0) { - eyes->timeout_id = g_timeout_add (UPDATE_TIMEOUT, - (GSourceFunc) timer_cb, eyes); + eyes->timeout_id = g_timeout_add (UPDATE_TIMEOUT, timer_cb, eyes); } return TRUE;