After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 711360 - Signals in objects do not support GSignalAccumulator
Signals in objects do not support GSignalAccumulator
Status: RESOLVED DUPLICATE of bug 735243
Product: vala
Classification: Core
Component: Code Generator: GSignal
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-03 21:47 UTC by Richard Wiedenhöft
Modified: 2017-03-08 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard Wiedenhöft 2013-11-03 21:47:18 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.
Comment 1 Luca Bruno 2013-11-03 22:04:36 UTC
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.
Comment 2 Luca Bruno 2013-11-03 22:05:42 UTC

*** This bug has been marked as a duplicate of bug 635665 ***
Comment 3 Rico Tzschichholz 2017-03-08 14:08:10 UTC

*** This bug has been marked as a duplicate of bug 735243 ***