Re: signal
- From: Mark Roberts <gtkmm manumark de>
- To: pch0317 <pch0317 gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: signal
- Date: Tue, 22 Sep 2009 21:03:00 +0200 (CEST)
Dear pch0317,
I choose signal_motion_notify_event() but when I compile my program
...
eBox.set_events(Gdk::ALL_EVENTS_MASK);
eBox.signal_motion_notify_event().connect(sigc::mem_fun(*this,
&Interfejs::about));
the error occur:
[...]
/usr/include/sigc++-2.0/sigc++/functors/slot.h:137: error: void value
not ignored as it ought to be
[...]
What am I doing wrong?
It looks as if Interfejs::about has the wrong type. Look at the
documentation to see what function type signal_motion_notify_event()
expects. In particular, the error message mentions the return value.
Hope this helps,
Mark Roberts
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]