Re: [sigc] libsigc++ 2.0 timer callback?



> > SigC::Connection timer =
> >   Glib::signal_timeout().connect(SigC::slot(
> >   *this, &winOscilloscope::timer_callback), 20);
> >
> I can't even find any of them there. Point is that SigC++ is _only_ the
> slot/signal framework, the calling of signals is not part thereof. So, just
> as in your example, you rather need to look in glib than in SigC++.
> 

Assuming that Glib didn't change any, and I can still use the same
connect() function, how does libsigc++ differ from 1.2 to 2.0? (and
how can I change that one line to reflect those changes).

It seems that the slot function is a lot different, to say the least,
and there seems to be mem_fun() and ptr_fun() functions that might be
what I'm looking for, but I can't tell for sure, since all the
documentation appears to be outdated (written for v1.2 and not updated
for 2.0).

Any ideas?

 - Jeff



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