Disconnecting signal handlers


Google

Let's take another look at a Signal's connect method:

SigC::Connection Signal1<void,int>::connect( Slot1<void,int>& );

Notice that the return value is of type SigC::Connection. This can be used to control the connection. By keeping a copy of this object you can disconnect its associated signal handler using the method SigC::Connection::disconnect().