From 079d5d33d1c7dc4933f37a5b7a9ed1ea5809f338 Mon Sep 17 00:00:00 2001 From: Joe Konno Date: Wed, 25 Jul 2012 13:28:46 -0700 Subject: [PATCH] EFL: Remove EvasObject::checkHidden() Just pass a boolean to ::checkVisible(). Signed-off-by: Joe Konno --- src/efl/evasobject.cpp | 4 ---- src/efl/evasobject.h | 1 - src/efl/templates.h | 4 ++-- 3 files changed, 2 insertions(+), 7 deletions(-) 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) ) ); } -- 2.7.4