gtk::timeout_add()-Problem
| From: | Christoph Muehlmann | Date: | Tue, 05 Mar 2002 20:14:29 +0000 |
| Subject: | gtk::timeout_add()-Problem | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-1445@lists.php.net to get a copy of this message | ||
Hi!
I have a little problem with the gtk::timeout_add()-method:
this is a part of my code:
// create the window etc...
$this->add($boxAll);
$this->gdf_refresh($btnRefresh, $lstGdf);
$this->show_all();
gtk::timeout_add(3000, array(&$this, 'gdf_refresh'), $btnRefresh, $lstGdf);
gtk::main();
the function gdf_refresh is called two times - the fist time manually, the second and last
time (!) from the timer. My problem is, the timer seems to call the function only one time,
but it should call it every 3 seconds...
the complete code is attached...
Christoph
Attachment: [text/script] gdf_php
Attachment: [text/script] gdf_php