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 635665 - can we provide accumulator support in GSignal?
can we provide accumulator support in GSignal?
Status: RESOLVED DUPLICATE of bug 735243
Product: vala
Classification: Core
Component: Code Generator: GSignal
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-24 06:59 UTC by remotefish
Modified: 2017-03-08 14:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description remotefish 2010-11-24 06:59:31 UTC
Hi, everyone.

For some GdkEvent like signal/event, we may want a behavior that connected handlers or overrided methods could use its return value to determine if the processing should be stopped, like "key-press-event" in GtkWidget.

To implement this behavior we should provide a param in g_signal_new() (http://library.gnome.org/devel/gobject/stable/gobject-Signals.html#g-signal-new), accumulator, it works as a callback function, and can stop emission by return false.

Code generated by valac only use null as the accumulator, and there may be no other way to install a new signal in vala, at present.

So will it be possible to privide accumulator support? Maybe by some [Signal] properties?

Thanks.
Comment 1 Luca Bruno 2013-11-03 22:05:42 UTC
*** Bug 711360 has been marked as a duplicate of this bug. ***
Comment 2 Rico Tzschichholz 2017-03-08 14:06:52 UTC

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