Re: Gtk2: return values of signal callbacks



On Fri, 2003-02-07 at 17:55, JÃrn Reder wrote:
No - just thought this is interesting to know for other Gtk2 users, who
also "suffer" from Perl/Gtk2 behaving correctly now ;)

heh.

in gtk+ 1.2, returning TRUE from a callback tells the signal system not
to propagate the signal to the parent class *after* all the handlers for
the current class have been handled.  or something like that.

in gtk+ 2.0, returning TRUE from a callback tells the signal system to
stop signal propagation right there.

in terms of correctness, the gtk 2 semantics are better, but it took me
a couple of *days* to figure out why some if my handlers were being
called and others weren't.  maddening, really.

-- 
muppet <scott asofyet org>




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