GNOME Bugzilla – Bug 705533
Signal decorator does not support accumulators
Last modified: 2013-08-05 21:51:19 UTC
The GObject.Signal decorator for creating new signals on GObjects does not support accumulators. We have tests for the old style __gsignals__ dictionary attribute which test accumulators. These tests should be ported to use the decorator for testing and implementation of accumulators with the Signal decorator. https://git.gnome.org/browse/pygobject/tree/tests/test_signal.py?id=3.9.5#n118
The following fix has been pushed: c32793d Add accumulator and accu_data arguments to GObject.Signal decorator
Created attachment 250905 [details] [review] Add accumulator and accu_data arguments to GObject.Signal decorator Update __init__, __call__, and copy methods to accept and pass accumulators and associated user data through them. Update accumulator unittests to use Signal decorators for testing accumulator pass throughs. Verified the __gsignals__ dictionary accepts None as valid values for accumulator and accu_data so specialization for these arguments is not necessary.