Re: Q: How do I enable/disable a timed callback during runtime?



sigc::connection conn = Glib::signal_timeout(100).connect(sigc::ptr_fun(&on_timeout) );

to connect your signal handler to the timeout signal. Then you may just use conn.disconnect() to remove the connection.

 - Armin



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