[sigc] debian bug #326221 -- Unable to disconnect parentless slots???
- From: Paul Miller <paul pinheiro dyndns org>
- To: libsigc-list gnome org
- Subject: [sigc] debian bug #326221 -- Unable to disconnect parentless slots???
- Date: Sun, 20 Nov 2005 10:54:42 -0800
Was this bug ever resolved?
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326221
I've been trying to declare a slot within a class definition and use
the disconnect() and block() functions. They do not prevent signals
from calling the associated callback function. However, calling
my_slot(i) directly is blocked.
For example...
class foo : public sigc::trackable
{
public:
foo() {
my_slot = sigc::mem_fun(this, &foo::fun);
};
~foo() {
my_slot.disconnect();
}
sigc::slot<void, int> my_slot;
void fun(int i) {
std::cout << "i = " << i << '\n';
}
};
Is there a better way to accomplish the same concept?
Thanks!
-Paul
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]