From: Joe Konno Date: Wed, 25 Jul 2012 20:28:46 +0000 (-0700) Subject: EFL: Remove EvasObject::checkHidden() X-Git-Tag: upstream/0.2.1~270 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=079d5d33d1c7dc4933f37a5b7a9ed1ea5809f338;p=test%2Fgeneric%2Fwayland-fits.git EFL: Remove EvasObject::checkHidden() Just pass a boolean to ::checkVisible(). Signed-off-by: Joe Konno --- diff --git a/src/efl/evasobject.cpp b/src/efl/evasobject.cpp index 2016abf..00ad963 100644 --- a/src/efl/evasobject.cpp +++ b/src/efl/evasobject.cpp @@ -105,7 +105,3 @@ void EvasObject::checkVisible(const Eina_Bool isVisible) BOOST_CHECK_EQUAL(this->isVisible(), isVisible); } -void EvasObject::checkHidden(const Eina_Bool isHidden) -{ - BOOST_CHECK_EQUAL(this->isVisible(), (isHidden == EINA_TRUE ? EINA_FALSE : EINA_TRUE)); -} diff --git a/src/efl/evasobject.h b/src/efl/evasobject.h index df5e662..c89b290 100644 --- a/src/efl/evasobject.h +++ b/src/efl/evasobject.h @@ -26,7 +26,6 @@ public: void checkSize(const int width, const int height); void checkPosition(const int x, const int y); void checkVisible(const Eina_Bool isVisible); - void checkHidden(const Eina_Bool isHidden); private: Evas_Object* obj_; diff --git a/src/efl/templates.h b/src/efl/templates.h index 869cafa..3f0d115 100644 --- a/src/efl/templates.h +++ b/src/efl/templates.h @@ -122,14 +122,14 @@ public: queueCallback( ModifyCheckCallback( boost::bind(&T::hide, boost::ref(object_)), - boost::bind(&T::checkHidden, boost::ref(object_), EINA_TRUE) + boost::bind(&T::checkVisible, boost::ref(object_), EINA_FALSE) ) ); queueCallback( ModifyCheckCallback( boost::bind(&T::show, boost::ref(object_)), - boost::bind(&T::checkHidden, boost::ref(object_), EINA_TRUE) + boost::bind(&T::checkVisible, boost::ref(object_), EINA_TRUE) ) ); }