Re: [sigc] libsigc++ 2.0 timer callback?
- From: Ulrich Eckhardt <eckhardt satorlaser com>
- To: libsigc-list gnome org
- Subject: Re: [sigc] libsigc++ 2.0 timer callback?
- Date: Thu, 16 Jun 2005 16:54:20 +0200
Jeff Simpson wrote:
> 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.
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++.
Uli
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]