[Glade-users] gtk_timeout_add

Elliot Chisholm Elliot.Chisholm@coral.ltd.uk
Mon, 22 Oct 2001 15:15:17 +0100


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