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 644927 - Support out parameters in signals
Support out parameters in signals
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
: 665551 708676 741356 (view as bug list)
Depends on: 727004
Blocks: 708676 727738
 
 
Reported: 2011-03-16 15:12 UTC by johnp
Modified: 2018-01-10 20:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description johnp 2011-03-16 15:12:55 UTC
We need to support out parameters in signals similarly to how they are handled in vfuncs.  A signal that is hooked up via a vfunc works correctly but using connect, it will try and send the out variables in like it does in C.  The example in bug #644926 shows the issue with the to-embedder and from-embedder signals.
Comment 1 Martin Pitt 2013-01-10 15:56:40 UTC
Note: This could potentially be fixed in

  http://git.gnome.org/browse/pygobject/commit/?id=ecd235959317d3

The example in bug 644926 does not work any more, so I guess we should write a test case for this.
Comment 2 Simon Feltman 2013-02-25 07:36:26 UTC
bug 665551 show an example of a crashing out argument.
Comment 3 Simon Feltman 2014-05-03 01:55:46 UTC
*** Bug 708676 has been marked as a duplicate of this bug. ***
Comment 4 Simon Feltman 2014-08-22 01:40:18 UTC
*** Bug 665551 has been marked as a duplicate of this bug. ***
Comment 5 Nick Hall 2014-12-10 20:00:32 UTC
*** Bug 741356 has been marked as a duplicate of this bug. ***
Comment 6 Marius Gedminas 2015-09-09 18:36:24 UTC
Overriding virtual methods with out parameters (e.g. Gtk.SpinButton.do_input) has the same problem: the parameter is treated as an in parameter pointing to the value.  Is that a separate bug, or can it be tackled together with this one?
Comment 7 Frederik Elwert 2016-08-15 16:21:27 UTC
This issue currently blocks porting PyGTK apps to Gtk3/PyGI. For PyGTK, it was possible to handle the SpinButton "input" signal with a ctypes hack (see http://stackoverflow.com/questions/4827831/how-to-change-display-in-gtk-spinbutton), but this seems no longer to work with PyGI. A proper solution for handling output parameters in signals and/or virtual methods would be most welcome!
Comment 8 GNOME Infrastructure Team 2018-01-10 20:07:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/12.