Re: gtk::timeout_add()-Problem
| From: | Markus Fischer | Date: | Tue, 05 Mar 2002 23:34:07 +0000 |
| Subject: | Re: gtk::timeout_add()-Problem | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1449@lists.php.net to get a copy of this message | ||
You have to return 'true' in your time function so it gets
subsequently (sp?) called.
On Tue, Mar 05, 2002 at 09:14:29PM +0100, Christoph Muehlmann wrote :
> 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
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc