Re: Re-setting the callback function from within ... the callback function?
- From: Havoc Pennington <hp redhat com>
- To: Chris Quinn <cq htec demon co uk>
- Cc: gtk-list gnome org
- Subject: Re: Re-setting the callback function from within ... the callback function?
- Date: 17 Apr 2001 13:46:37 -0400
Chris Quinn <cq htec demon co uk> writes:
> Havoc Pennington wrote:
> >
> > The problem is simply a misfeature, which is that if you append
> > handlers to the list of handlers during the emission, they will be
> > invoked (since the emission is still in progress, and will be until
> > the list of handlers is exhausted).
> >
> [snip]
> > You could use gtk_signal_handler_block() perhaps.
>
> Thanks for the suggestion. Unfortunately it isn't the signal just
> emitted that needs blocking but the next, which doesn't exist until
> a callback is attached by which time it is too late!
BTW, you aren't blocking the signal with gtk_signal_handler_block(),
you're blocking the specific callback. Don't know if this matters.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]