Re: return values of event handlers

Andrei Zmievski <andrei ispi net> writes:
> In event handlers, I assume the return value indicates whether the
> event should be propagated to other handlers or not?

Other widgets. All handlers for the current signal run regardless of
return value. If the return value _of the entire emission_ is FALSE,
then the event is propagated to the next parent widget. Note that the
return value of your handler may not be the return value of the entire

As Paul says, in GTK 2 a return of FALSE immediately ends the current
emission, but this is not the case in 1.2.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]