[Glade-users] gtk_timeout_add

I've only recentily started messing with timeout fuctions so...

I thin the problem is in the gpointer(widget).  Try just widget.        Aslo I thin 
there needs to be somethig in the prototype.

Try gint send_expose_event (gpointer * widget);

Here is the sode I used.  I was making a clock for a computer game.

        gint forward(gpointer app1);

To call it I used...
        play1 = gtk_timeout_add(1000, forward, app1)

hope that helps


On Monday 22 October 2001 09:15 am, Elliot Chisholm wrote:
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 ?


Elliot Chisholm

Glade-users maillist  -  Glade-users ximian com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]