Re: a couple of more questions...

From: Date: Sun, 24 Jun 2001 05:48:12 +0000
Subject: Re: a couple of more questions...
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1953@lists.php.net to get a copy of this message
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

« previous php.gtk (#1953) next »