![]() |
Public Member Functions | |
| sigc::connection | connect (const sigc::slot<bool>& slot, int priority=PRIORITY_DEFAULT_IDLE) |
| Connects an idle handler. | |
| sigc::connection Glib::SignalIdle::connect | ( | const sigc::slot< bool > & | slot, | |
| int | priority = PRIORITY_DEFAULT_IDLE | |||
| ) |
Connects an idle handler.
Glib::signal_idle().connect(sigc::ptr_fun(&idle_handler));
const Glib::RefPtr<Glib::IdleSource> idle_source = Glib::IdleSource::create(); idle_source->connect(sigc::ptr_fun(&idle_handler)); idle_source->attach(Glib::MainContext::get_default());
| slot | A slot to call when the main loop is idle. | |
| priority | The priority of the new event source. |