Re: EY!
| From: | Andrei Zmievski | Date: | Thu, 22 Mar 2001 14:09:21 +0000 |
| Subject: | Re: EY! | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1068@lists.php.net to get a copy of this message | ||
On Wed, 21 Mar 2001, Guido wrote:
> The method I programmed for searching is : it starts searching and
> when it finds a directory in the actual directory, it saves that
> directory in an array, and after searching the actual directory ir
> loops thru the array searching the file, until it searched the hole
> disk. It works perfectly, but I don't know why, when it is searching,
> the application clogges and won't answer events (click, etc) until it
> finishes the search.
This is because your search does not let any Gtk+ events propagate
through the system. In order to have your interface functioning during
search you need to put something like this in your search loop:
while (gtk::events_pending())
gtk::main_iteration();
> A maybe useful data: I had to set the time limit to zero
> (set_time_limit(0)) at the beggining of the code, else it stopped at
> 30 secs cause the function keeps executing. If you need to see the
> code, ask me and I'll put it on a web site so you can download it.
The timeout should be unset by PHP-GTK - I will check on this.
-Andrei
* If it's never finished, you can't prove it doesn't work. *