GNOME Bugzilla – Bug 87513
PORTING not very clear about new slot() behaviour
Last modified: 2004-12-22 21:47:04 UTC
I have begun porting my application to gtkmm2, and looked in the PORTING file first, however, the description for the sigc++ changes is very vague: 11 * Use new signal connection syntax: 12 e.g. change 13 button.clicked.connect(SigC::slot(this 14 to 15 button.signal_clicked().connect(SigC::slot(*this When I first read it, I saw that clicked. was changed to signal_clicked() and thought that was it. I didn't notice the end of the line where it stated this instead of *this. It would be nice if this was clarified further, maybe add an extra item to the PORTING file with an example. It's almost impossible to understand the compiler error message you get when just using 'this'.
So please provide a patch.
Created attachment 9684 [details] [review] Patch to PORTING file
I sinned and forgot to patch the ChangeLog, sorry :-) Meanwhile I also found that the removal of set_policy() wasnt mentioned, so heres an updated PORTING and ChangeLog patch.
Created attachment 9688 [details] [review] Final patch.
Perfect. Thanks.