Re: Problems with Gtk::timeout_add()
| From: | xxoes | Date: | Wed, 15 Nov 2006 13:12:23 +0000 |
| Subject: | Re: Problems with Gtk::timeout_add() | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7470@lists.php.net to get a copy of this message | ||
public function getSearchResultForString() {
// get result from database
return true;
}
remove the "return true;"
mfg xxoes
ecc schrieb:
Hi, i want to add a timeout to a GtkEntry input, because not every keystroke should query the sql-database. i´ve trying something like that (pseudo code!): $textWidged->connect_after('changed', array($this, 'getSearchResultForStringFilter')); public function getSearchResultForStringFilter() { Gtk::timeout_add(1000, array($this, 'getSearchResultForString')) return true; } public function getSearchResultForString() { // get result from database return true; } That works fine, but i have the problem, that the Gtk::timeout_add will not stop! How to prevent this?