Hello everybody!
I have a strange problem when using signal_timeout(). The code below triggers
every 30 seconds the member function onTimeout30s. Everything works fine
inside KDevelop. Kompiling it into a openSUSE rpm the memberfunction is
called once and never again. The only difference I can imagine is that
KDevelop compiles with debug statement which only should help gnu debugger to
find break points.
Any idea whats wrong?
Thanks in advance.
-- MIK
BTW: gtkmm is great and easy to use. Thanks for that peace of software.
8< 8< 8< code 8< 8< 8<
Konstruktor {
mTimeoutConnection =
Glib::signal_timeout().connect_seconds(sigc::bind(sigc::mem_fun(*this,
&MainWindow::onTimeout30s),0), 30);
}
bool MainWindow::onTimeout30s(int timerNumber)
{
clog << "MainWindow::onTimeout30s" << std::endl;
clog << "mTimeoutConnection::empty " <<
(mTimeoutConnection.empty()?"true":"false") << endl;
clog << "mTimeoutConnection::connected " <<
(mTimeoutConnection.connected()?"true":"false") << endl;
}
8 >8 >8 >8 code >8 >8 >8
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list