Re: Killing vs blocking signals
| From: | Scott Mattocks | Date: | Tue, 17 Aug 2004 16:01:38 +0000 |
| Subject: | Re: Killing vs blocking signals | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4969@lists.php.net to get a copy of this message | ||
Dave,
I haven't used CList and I don't know that I follow exactly what is happening and I may be completely wrong here, but I am going to try and help anyway :)
A lot of methods will emit signals when called. This can be kind of cunfusing because signals will be emitted without direct user input.
For instance look at the code below:
function click() {
$clist->select_row(0, 1);
}
function select_row() {
echo 'Row selected';
}
$clist->connect('clicked', 'click');
$clist->connect('select-row', 'select_row);
When a user clicks on something the select_row function will be called too. You may be triggering function calls by accident and that may account for your extra queries.
Of course I may have no idea what I am talking about.
Scott