Re: migrating from gtkmm-2.0 to gtkmm-2.4



erik_ohrnberger dme net wrote:

> I've been searching for information on what I have to change in my code to
> migrate it from gtkmm-2.0 to gtkmm-2.4.
>
> Any pointers or web references that I can use to help me accomplish this
> would be greatly appreciated.
>
> Thanks in advance!
>
> Erik.
> _______________________________________________

I think the main differences are due the switch from libsigc++1.2 to
libsigc++2.0.
Instead of

button_.signal_clicked().connect
( SigC::slot(*this, &SomeClass::on_button_clicked) );

you'll have to write

button_.signal_clicked().connect
( sigc::mem_fun(*this, &SomeClass::on_button_clicked) );

Besides, you may find the new UIMangager class

[http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch10s02.html]
[http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1UIManager.html]

interesting, which is new in the 2.4 API.

Antonio




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