[sigc] libsigc++ 2.0 timer callback?



I was previously using SigC 1.2 with glade and gtkmm in a C++ program
for creating a timed callback every 20ms. The callback function was a
member function of the class I was connecting the signal in. This is
the line of code I was using:

SigC::Connection timer = 
  Glib::signal_timeout().connect(SigC::slot(
  *this, &winOscilloscope::timer_callback), 20);

Upgrading to SigC 2.0 obviously changes that a little bit. Any idea
what the new line should read? I can't find any documentation for
timer callbacks in SigC except for what apperars to be the old
version. Thanks!

 - Jeff



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