GUI very slow when sleep() called...



Hello,

In an app I'm writing I have to put a usleep(100000) call in my
code. However when I do this my gui becomes very slow and unresponsive - 
understandibly since I'm doing it in the gtk_main loop... 

Is there a way to sleep but refresh the gui at the same time?

Thanks,
Cyrus

-- 
Cyrus Patel - cyrus linuxfan com
Dept. of Computer Engineering                           Debian GNU/Linux 
University of New South Wales                           (Woody)
Sydney, Australia.                                      ICQ: 50738541   
http://www.cyrusp.com   Mobile: 0402 266 731  cyrusmobile linuxfreak com






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