Re: GUI very slow when sleep() called...
- From: Adam Huuva <sventon easter-eggs com>
- To: cyrusp cia com au
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GUI very slow when sleep() called...
- Date: Tue, 03 Oct 2000 09:54:07 +0000
cyrusp cia com au wrote:
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?
use gtk_timeout_add() to assign a function to be called at a fixed
intervall.
then call gtk_main();
gtk_timeout_add in the tutorial:
http://www.gtk.org/tutorial/gtk_tut-17.html#ss17.1
--
Adam Huuva / Easter-eggs Spécialiste GNU/Linux
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 41 35 00 76
mailto:sventon easter-eggs com - http://www.easter-eggs.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]