changing a widgets callbck function runtime
| From: | firepage | Date: | Sat, 11 Jan 2003 05:26:58 +0000 |
| Subject: | changing a widgets callbck function runtime | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2883@lists.php.net to get a copy of this message | ||
Hi,
Is it possible to change the callback for a widgets signal after it has been set? eg if I
$button->connect('clicked',callback);
can I later override that default 'clicked' callback? I am currently setting flags onclick
and then running a switch inside the function but if I could change the callback it would be nice
and lose a lot of variable baggage.
Regards,
Simon.