summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Volz <andreas.volz@tux-style.com>2016-03-17 23:29:50 +0100
committerAndreas Volz <andreas.volz@tux-style.com>2016-03-17 23:29:50 +0100
commit3d0cb4e5356f21788c4bc299d41479441159f508 (patch)
tree7e1e099e0491c9304083e87ca4727663d9cb25fe
parent36d22d50fce81e6bb7afc1440bb98790190ab313 (diff)
find out if object is an external => prints EFL error, but seems to work until my application finds a better way to find out
-rw-r--r--edjexx/include/edjexx/Part.h2
-rw-r--r--edjexx/src/Part.cpp5
2 files changed, 7 insertions, 0 deletions
diff --git a/edjexx/include/edjexx/Part.h b/edjexx/include/edjexx/Part.h
index 7f53c6b..c02d78a 100644
--- a/edjexx/include/edjexx/Part.h
+++ b/edjexx/include/edjexx/Part.h
@@ -43,6 +43,8 @@ public:
43 */ 43 */
44 Evasxx::Object &getSwallow (); 44 Evasxx::Object &getSwallow ();
45 45
46 bool isExternalObject ();
47
46 /*! 48 /*!
47 * @throw ExternalNotExistingException 49 * @throw ExternalNotExistingException
48 */ 50 */
diff --git a/edjexx/src/Part.cpp b/edjexx/src/Part.cpp
index ee7ef3a..84b4bab 100644
--- a/edjexx/src/Part.cpp
+++ b/edjexx/src/Part.cpp
@@ -78,6 +78,11 @@ Evasxx::Object &Part::getSwallow()
78 return *mSwallowObject; 78 return *mSwallowObject;
79} 79}
80 80
81bool Part::isExternalObject ()
82{
83 return edje_object_part_external_object_get (mParent->obj(), mPartname.c_str ());
84}
85
81Evasxx::Object &Part::getExternalObject () 86Evasxx::Object &Part::getExternalObject ()
82{ 87{
83 Evas_Object *eo = edje_object_part_external_object_get (mParent->obj(), mPartname.c_str ()); 88 Evas_Object *eo = edje_object_part_external_object_get (mParent->obj(), mPartname.c_str ());