Re: freeze main window
| From: | Scott Mattocks | Date: | Wed, 10 Jan 2007 13:40:52 +0000 |
| Subject: | Re: freeze main window | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7549@lists.php.net to get a copy of this message | ||
Кононов Руслан wrote:
I'm try update cell data in GtkListStore ( $this->store ) via : $this->store->set( $this->storeIter, 2, $this->FileSizeDownloaded ); many, many times. And while cell updating, main window is frozen. How to solve a problem?You have to give the main loop a chance to work while you are adding information to the list. You can do this by manually running an iteration of the loop every time you add something to your list. while ($whatever) { $this->store->set($stuff); while (Gtk::events_pending()) Gtk::main_iteration(); // This runs the loop once... } -- Scott Mattocks Author: Pro PHP-GTK http://www.crisscott.com