[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk
Subject:    Re: [PHP-GTK] a couple of more questions...
From:       Andrei Zmievski <andrei () ispi ! net>
Date:       2001-06-24 5:48:12
[Download RAW message or body]

At 11:26 PM 6/23/01 -0600, Geoff A. Virgo wrote:
>At 09:41 AM -0400 Saturday, 6/23/01, Rich Payne wrote:
>>On Fri, 22 Jun 2001, Julia A. Case wrote:
>>
>> > gtk::timeout_add(1000, 'draw_screen',$drawingarea,$event);
>> >
>> > this should call the draw_screen function every second, but it only calls
>> > it once...
>>
>>You need to return true from the draw_screen function for it to continue.
>>
>>function draw_screen ($drawingarea, $event) {
>>
>>         //Do whatever you do
>>
>>         return true;
>>}
>
>What's the overhead on this?  For example, if I'm using it in an email 
>client to auto-check for mail every x number of minutes.

There is no overhead, at least not anything that can really be counted.


-Andrei


-- 
PHP GTK Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic