1 Changes between glibmm 2.2 (previously part of gtkmm) and glibmm 2.4:
3 * glibmm is now a separate module, for use with non-GUI software.
4 (Note that glibmm 2.4 and gtkmm 2.4 install in parallel with
5 gtkmm 2.2 - so you can install and use both simultaneously and
6 port to 2.4 whenever you are ready.)
7 * glibmm now uses libsigc++ 2 rather than libsigc++ 1.2.
8 There is a libsigc++ compatibility header. The new, undeprecated, API
10 - Connecting signal handlers:
11 signal_something().connect( SigC::slot(*this, &Something::on_something) );
13 signal_something().connect( sigc::mem_fun(*this, &Something::on_something) );
14 or, for non-member methods:
15 signal_something().connect( sigc::ptr_fun(&Something::on_something) );
16 - Binding extra parameters:
21 SigC::Signal1<void, int>
23 sigc::signal<void, int>
25 SigC::Slot1<void, int>
28 - Inheriting from the libsigc++ base class:
29 class Something : public SigC::Object
31 class Something : public sigc::trackable