Remove GSourceFunc casts
Convert the callback into a real GSourceFunc. Signed-off-by: Olaf Hering <olaf@aepfle.de>
This commit is contained in:
parent
61bedb15ac
commit
0d7ee3f4d0
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Reference in a new issue