[917] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Returning values from signal handlers

daemon@ATHENA.MIT.EDU (Marius Vollmer)
Mon Sep 8 04:18:37 1997

To: gtk-list@redhat.com
From: Marius Vollmer <mvo@zagadka.ping.de>
Date: 07 Sep 1997 17:25:53 +0200
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

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.

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post