discomfitor pushed a commit to branch master.
commit 26a3a75e8c1749633ca85dfdb3b4c4a01a15caa9
Author: Mike Blumenkrantz <[email protected]>
Date: Fri Apr 19 15:18:28 2013 +0100
e_comp_get() supports e_desk
---
src/bin/e_comp.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 2daf7c7..2e4e981 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -5041,6 +5041,7 @@ e_comp_get(void *o)
E_Popup *pop;
E_Shelf *es;
E_Menu *m;
+ E_Desk *desk;
E_Menu_Item *mi;
E_Object *obj = o;
E_Zone *zone = NULL;
@@ -5055,6 +5056,11 @@ e_comp_get(void *o)
/* try to get to zone type first */
switch (obj->type)
{
+ case E_DESK_TYPE:
+ desk = (E_Desk*)obj;
+ obj = (void*)desk->zone;
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
+ break;
case E_BORDER_TYPE:
bd = (E_Border*)obj;
obj = (void*)bd->zone;
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter