Timer and redraw
Submitted by nix78 on Sun, 2008-07-06 15:13.
Hi, I'm new to both the forum and GTK+ coding :)
I hope this is the right place to ask, since I tried this code on Linux (working) but I can't manage to make it work on osx. I'm running Leopard on a MBP.
I got the examples from the gtk documentation. Could you maybe tell me if it is a code issue or a known problem?
Essentially the redraw does not work, even though the g_print works.
Thanks a lot for your help!
Nicola

The problem is that you are
The problem is that you are drawing from a timer callback instead of from the expose callback. Connect to the expose callback on the widget and do the drawing from there. Then in your timer callback just call gtk_widget_queue_draw().
thank you! I wish I could
thank you! I wish I could not raise silly questions. I'm trying to understand a little bit better how these GTK work.