Re: Porting From 1.2 to 2.4



Scott @ Zaita wrote:
Hey guys,

I have looked at the porting guide which recommends.

object.clicked.connect(SigC::slot(this,&GTKAppWindow::activation_proxy::activate));
be changed to
object.signal_clicked.connect(sigc::slot(*this,&GTKAppWindow::activation_proxy::activate));

However, I get a template error on this. Would:
object.signal_clicked.connect(sigc::mem_fun(*this,&GTKAppWindow::activation_proxy::activate));
Achieve the same result?


Regards,
Scott

Yes, sigc::mem_fun() is the function you should use


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]