[Glade-users] gtk_timeout_add
Jean-Christophe Berthon
jean-christophe.berthon@cgey.com
Mon, 22 Oct 2001 17:02:57 +0200
It is just a warning, you need to do a "cast" to remove this notification
like this :
timeout = gtk_timeout_add (1000, (GtkFunction)send_expose_event,
gpointer(widget));
Best regards,
---
Jean-Christophe Berthon
Cap Gemini -- Ernst & Young
France
Skill IS -- Image Quality
Email: Jean-Christophe.Berthon@cgey.com
Tel: (+33) 561 31 6639
----- Original Message -----
From: "Elliot Chisholm" <Elliot.Chisholm@coral.ltd.uk>
To: <glade-users@ximian.com>
Sent: Monday, October 22, 2001 4:15 PM
Subject: [Glade-users] gtk_timeout_add
> hi there,
>
> I am trying to use the gtk_timeout_function to call a function every
second.
> How do i pass the second arguement as a GtkFunction. The prototype of the
> function I am calling is
>
> gint send_expose_event (gpointer)
>
> I start the timeout with this line
>
> timeout = gtk_timeout_add (1000, send_expose_event, gpointer(widget));
>
> On compiling i get a warning about incompatible pointer type for arg 2 of
> gtk_timeout_add. Can anybody help me with this ?
>
> Thanks
>
> Elliot Chisholm
>
> _______________________________________________
> Glade-users maillist - Glade-users@ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users