[Glade-users] gtk_timeout_add
- From: jbrite webdsi com (jbrite)
- Subject: [Glade-users] gtk_timeout_add
- Date: Mon, 22 Oct 2001 04:24:42 -0500
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.
prototype:
gint forward(gpointer app1);
To call it I used...
play1 = gtk_timeout_add(1000, forward, app1)
hope that helps
-Jeff
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 ?
Thanks
Elliot Chisholm
_______________________________________________
Glade-users maillist - Glade-users ximian com
http://lists.ximian.com/mailman/listinfo/glade-users
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]