Re: sleeping

2002-02-09 Thread Sven Neumann
Hi, David Eduardo Gomez Noguera <[EMAIL PROTECTED]> writes: > > I'd suggest you use the GTK+ main loop instead and install a timeout. > > Have a look at gtk_timeout_add(). > > what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge >about gtk_main is limited to thi

Re: sleeping

2002-02-09 Thread David Eduardo Gomez Noguera
On 09 Feb 2002 19:12:38 +0100 Sven Neumann <[EMAIL PROTECTED]> wrote: > Hi, > > David Eduardo Gomez Noguera <[EMAIL PROTECTED]> writes: > > > I am writing a program to control two steppers. To control its speed, i would need >to sleep the function that moves them. > > Is it safe to use sleep/na

Re: sleeping

2002-02-09 Thread Sven Neumann
Hi, David Eduardo Gomez Noguera <[EMAIL PROTECTED]> writes: > I am writing a program to control two steppers. To control its speed, i would need >to sleep the function that moves them. > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to >do it than a callback f

RE: sleeping

2002-02-09 Thread hunchback
Hi, >I am writing a program to control two steppers. To control its speed, i would need to >>sleep the function that moves them. i have a similar problem, i'm doing a movement of a pixmap, but i want to slow it down, so that the image runs move smothly... i made the signal connect for the mo