I/O Monitor signal connection
- From: lautarox <lausuper gmail com>
- To: gtkmm-list gnome org
- Subject: I/O Monitor signal connection
- Date: Tue, 3 Aug 2010 10:42:45 -0700 (PDT)
In the monitoring I/O examples page
http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-monitoring-io.html.en
http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-monitoring-io.html.en
This is the method to do the signal connection
sigc::connection Glib::SignalInput::connect(const
sigc::slot<bool,Glib::IOCondition>& slot,
int fd, Glib::IOCondition condition,
int priority = Glib::PRIORITY_DEFAULT);
The signal connection it's called like this
Glib::signal_io().connect(sigc::ptr_fun(MyCallback), read_fd, Glib::IO_IN);
and the callback function like this
bool input_callback(Glib::IOCondition condition);
Now, my doubt is, how can I pass some arguments to my callback function? How
should the callback function be coded?
Thanks in advance
--
View this message in context: http://old.nabble.com/I-O-Monitor-signal-connection-tp29338228p29338228.html
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]