GNOME Bugzilla – Bug 711360
Signals in objects do not support GSignalAccumulator
Last modified: 2017-03-08 14:08:10 UTC
It is not possible to collect the return values of all functions connected to a signal right now. GLib provides a way to do this (https://developer.gnome.org/gobject/stable/gobject-Signals.html#GSignalAccumulator), but vala does not seem to support it yet. Flo suggested in IRC, that it could be implemented using an additional attribute for signals.
It's not trivial. However you can simulate that by simply passing a shared object with the value you want to be acculated to the signal emission.
*** This bug has been marked as a duplicate of bug 635665 ***
*** This bug has been marked as a duplicate of bug 735243 ***