Hi Manar,
The syntax
| Code: |
disconnect($handler_id); |
is correct. Would you want to post some lines of code here so that we can see which part is not working right?
Also, would suggest that you do something like:
| Code: |
$handler_id = EventBox->connect('button-press-event',
array($this, 'function'));
echo "bp1: $handler_id"
.
.
.
echo "bp2: $handler_id";
disconnect($handler_id)
|
Make sure the $handler_id in bp1 and bp2 are the same. If they are the same, things should work. If they are not the same (or its value is null or 0), then try to find out where did it get changed.
Hope this helps.
Regards,
/kksou