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 659783 - Difficulty wrapping GSimpleAction signals for the C++ bindings
Difficulty wrapping GSimpleAction signals for the C++ bindings
Status: RESOLVED INVALID
Product: glib
Classification: Platform
Component: gapplication
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-09-22 03:09 UTC by José Alburquerque
Modified: 2011-10-03 04:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description José Alburquerque 2011-09-22 03:09:34 UTC
Sorry to file a bug about this.  I'm trying to wrap GSimpleAction for the C++ bindings and ran into a little bit of a problem.  The problem is that since it doesn't define its GSimpleActionClass the way it is usually done with other GObject derived classes, it makes it difficult to wrap its signals.  This happens because there is no way for a derived class to write a class init function that sets the signal members of the GSimpleActionClass to custom callbacks so that the custom callbacks can receive the signals and forward them to the C++ handlers.  Can GSimpleAction's code be modified somehow so that wrapping its signals is possible for the C++ bindings?
Comment 1 José Alburquerque 2011-10-03 04:41:07 UTC
Sorry, this bug is invalid because the signals can be wrapped without having to have custom callbacks (beginner's mistake when wrapping signals with no default handler's in glibmm, sorry).