Problems with Gtk::timeout_add()
| From: | ecc | Date: | Wed, 15 Nov 2006 13:12:24 +0000 |
| Subject: | Problems with Gtk::timeout_add() | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7469@lists.php.net to get a copy of this message | ||
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?
--
View this message in context: http://www.nabble.com/Problems-with-Gtk%3A%3Atimeout_add%28%29-tf2635974.html#a7357368
Sent from the Php - GTK - General mailing list archive at Nabble.com.