Returning values from signal handlers



The handlers for some signals are expected to return a value.  For
example, the event signals of GtkWidget ("keypress_event", etc) should
return a boolean value indicating whether the handler has processed
the event or not.

But what about having multiple handlers for one signal?  The return
value of the last handler invoked wins.  Is this the indented
behaviour?  Is this useful?

Being able to return a value from a callback is a necessary thing.
But combining the return values of multiple handlers of one signal in
such a rather arbitrary fashion worries me.



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