[gtkmm] Signal emission stop



Hi,

Look at the simple example below, and explain, please, how could I stop SigC signal emission?

class MyClass : public SigC::Object
{
public:
   ...
   SigC::Signal0<void> test_signal;
   ...
};

some_method ()
{
   test_signal.connect (SigC::slot (*this, &MyClass::f1));
   test_signal.connect (SigC::slot (*this, &MyClass::f2));
}

f1 ()
{
   if (<expr> == true)
// here I want to do something to stop emission and function f2 won't be called
   else
       // continue signal emission
}

f2 ()
{
}

thanks in advance,
-andrew





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]