Re: Displaying intermediate button images.

2005-09-27 Thread Tristan Van Berkom
Rich Burridge wrote: [...] Can I ask a favour please? Could you adjust the reve_sleep() routine in the attached small program to use a g_timeout_add() to do the pausing? The problem with your program is not with reve_sleep(), the problem is that you have a reve_sleep() function at all, in

Re: Displaying intermediate button images.

2005-09-27 Thread Tristan Van Berkom
Rich Burridge wrote: Hi Tristan, Can I ask a favour please? Could you adjust the reve_sleep() routine in the attached small program to use a g_timeout_add() to do the pausing? You seemed to have ignored the revised small attached program that I sent you and gone back to my first version.

Re: Displaying intermediate button images.

2005-09-27 Thread Rich Burridge
Tristan Van Berkom wrote: You seemed to have ignored the revised small attached program that I sent you and gone back to my first version. Could you show me how to do this with the program attached below please? No I did not, I based it on the code you attatched in your private post, note

Displaying intermediate button images.

2005-09-26 Thread Rich Burridge
Hi all, Could somebody please tell me what I'm missing here? Below I've included a small program that hopefully replicates the problem I'm seeing. The real problem is in a much larger program. I've just tried to isolate it here, and to make it as simple as possible. I have a button. When it's

Re: Displaying intermediate button images.

2005-09-26 Thread Greg Breland
This is just a guess since I'm not in front of my development workstation. You need to call the main GTK loop while you sleep. Invalidated regions of the screen get painted by the idle handler in the main loop. From the looks of it you sleep function doesn't call the main loop before it

Re: Displaying intermediate button images.

2005-09-26 Thread Tristan Van Berkom
Rich Burridge wrote: [...] What do I need to do to make the intermediate images appear? You should read a little of this: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html The problem is that you are hijacking the mainloop, in GTK+ programming, you must let GTK+

Re: Displaying intermediate button images.

2005-09-26 Thread Rich Burridge
Thanks to Greg and Tristan. You should read a little of this: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html The problem is that you are hijacking the mainloop, in GTK+ programming, you must let GTK+ operate (and do stuff like; update the display ;-p)... so that

Re: Displaying intermediate button images.

2005-09-26 Thread Greg Breland
Okay, I've read this web page and for the life of me, I can't see a way to write a simple/elegant routine that does this, within the context of my larger application. Setup a event timer to call a function every 0.5 seconds. Inside this function you toggle all the pieces that will be