Re: [gtkmm] `slot' undeclared in namespace `SigC'



Florian Schmidt wrote:
On Sun, Sep 26, 2004 at 01:39:41AM +1000, Russell Shaw wrote:

 ...
 button.signal_clicked().
          connect(SigC::slot(*this,&Database::parts_button_cb));

I'm using gtmm-2.4 on debian and converting a program from gtk2.4 in C.


hi,

see /usr/share/doc/libglibmm-2.4-dev/CHANGES on your debian system.
glibmm-2.4 uses libsigc++ 2 and your call should look like

button.signal_clicked().
        connect(sigc::mem_fun(*this,&Database::parts_button_cb));

now.


Hi,
Thanks all. I was following the gtkmm tutorial, but it is still using
Sigc:slot:

  http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch03s06.html



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