[gtkmm] Signal emission stop
- From: "Andrew E. Makeev" <andrew solvo ru>
- To: gtkmm-main <gtkmm-list gnome org>
- Subject: [gtkmm] Signal emission stop
- Date: Wed, 23 Apr 2003 15:41:55 +0400
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]