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 682604 - gtk_clipboard_set_data is not introspectable
gtk_clipboard_set_data is not introspectable
Status: RESOLVED DUPLICATE of bug 656312
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on: 664848
Blocks:
 
 
Reported: 2012-08-24 12:54 UTC by Daniel Narvaez
Modified: 2014-11-03 05:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Narvaez 2012-08-24 12:54:00 UTC
It currently takes two callbacks and a single user_data, passed to both, which makes it hard to generate bindings for. It would be cool if it would just take two GClosure. Not sure how to best do that without breaking API, naming of an additional method is sort of tricky.
Comment 1 Emmanuele Bassi (:ebassi) 2012-08-24 14:01:57 UTC
g_object_bind_property_full() has the same pattern, so I introduced g_object_bind_property_with_closures() with a Rename-to annotation for introspection-based language bindings.

gdk_clipboard_set_data_with_closures() would probably be okay.
Comment 2 Daniel Narvaez 2012-08-25 14:20:07 UTC
I did a patch adding that method but it doesn't work because of a pygobject bug

https://bugzilla.gnome.org/show_bug.cgi?id=664848
Comment 3 Matthias Clasen 2014-11-03 05:30:17 UTC

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