Re: return values of event handlers
- From: Havoc Pennington <hp redhat com>
- To: Andrei Zmievski <andrei ispi net>
- Cc: gtk-list gnome org
- Subject: Re: return values of event handlers
- Date: 19 Jul 2001 09:18:43 -0400
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
emission.
As Paul says, in GTK 2 a return of FALSE immediately ends the current
emission, but this is not the case in 1.2.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]