Porting From 1.2 to 2.4

View: New views
2 Messages — Rating Filter:   Alert me  

Porting From 1.2 to 2.4

by Scott @ Zaita :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey guys,

I have looked at the porting guide which recommends.

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

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


Regards,
Scott

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Porting From 1.2 to 2.4

by Jonathon Jongsma-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Scott @ Zaita wrote:

> Hey guys,
>
> I have looked at the porting guide which recommends.
>
> object.clicked.connect(SigC::slot(this,>KAppWindow::activation_proxy::activate));
>
> be changed to
> object.signal_clicked.connect(sigc::slot(*this,>KAppWindow::activation_proxy::activate));
>
>
> However, I get a template error on this. Would:
> object.signal_clicked.connect(sigc::mem_fun(*this,>KAppWindow::activation_proxy::activate));
>
> Achieve the same result?
>
>
> Regards,
> Scott

Yes, sigc::mem_fun() is the function you should use
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list