Disconnecting

If you decide you no longer want your code to be called whenever a signal is emitted, you must remember the return value of connect(), which we've been ignoring until now.

connect() returns a sigc::connection object, which has a disconnect() member method. This does just what you think it does.