diff --git a/tests/gui/test/mock-elm.hpp b/tests/gui/test/mock-elm.hpp index 7489534bb..b0cec0865 100644 --- a/tests/gui/test/mock-elm.hpp +++ b/tests/gui/test/mock-elm.hpp @@ -142,13 +142,7 @@ namespace test{ doExpand (bool yes) override { log_.call(this->identify(), "expand", yes); - if (expanded_ == yes) - return false; // nothing to change - - virgin_ = false; - expanded_ = yes; - log_.event (expanded_? "expanded" : "collapsed"); - return true; // record a state change + return Tangible::doExpand (yes); } virtual void @@ -317,6 +311,13 @@ namespace test{ { log_.call (this->identify(), "ctor", identity, string(nexus)); log_.create (getID().getSym()); + installExpander ([&](){ return this->expanded_; } + ,[&](bool yes) + { + virgin_ = false; + expanded_ = yes; + log_.event (expanded_? "expanded" : "collapsed"); + }); } diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 31decc366..7a744cd16 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -1943,13 +1943,21 @@ - - - + + + + + - - + + + + + + + +