rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=4016253335837e71e3da58c70d22bab286150727

commit 4016253335837e71e3da58c70d22bab286150727
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Wed Mar 30 10:32:50 2016 +0300

    groupview: object_area_get ruturned the Groupview_Geom
    
    This data structure for useful for get the object size
    
    Change-Id: I29fa663718f6b85afa049a42427e2cd4e64f0f6e
---
 src/bin/ui/workspace/groupview.c | 10 +++++++---
 src/bin/ui/workspace/groupview.h |  7 +++----
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/bin/ui/workspace/groupview.c b/src/bin/ui/workspace/groupview.c
index fc9b484..8a08a53 100644
--- a/src/bin/ui/workspace/groupview.c
+++ b/src/bin/ui/workspace/groupview.c
@@ -381,12 +381,16 @@ groupview_part_restack(Evas_Object *obj, const char 
*part, const char *rel_part)
    return _edit_object_part_restack_below(sd, part, rel_part);
 }
 
-Evas_Object *
-groupview_part_object_area_get(Evas_Object *obj)
+const Groupview_Geom *
+groupview_part_selected_object_area_geom_get(Evas_Object *obj)
 {
+   Groupview_Geom *geom = NULL;
+
    GROUPVIEW_DATA_GET(obj, sd)
 
-   return sd->obj;
+   if (sd->selected) geom = &sd->selected->object_area_geom;
+
+   return geom;
 }
 
 void
diff --git a/src/bin/ui/workspace/groupview.h b/src/bin/ui/workspace/groupview.h
index 811c71d..7be0262 100644
--- a/src/bin/ui/workspace/groupview.h
+++ b/src/bin/ui/workspace/groupview.h
@@ -169,7 +169,7 @@ Eina_Bool
 groupview_part_del(Evas_Object *obj, Part *part);
 
 /**
- * Get the object with the object area geometry.
+ * Get the object area geometry.
  *
  * @param obj The groupview object.
  *
@@ -177,9 +177,8 @@ groupview_part_del(Evas_Object *obj, Part *part);
  *
  * @ingroup Groupview
  */
-Evas_Object *
-groupview_part_object_area_get(Evas_Object *obj);
-
+const Groupview_Geom *
+groupview_part_selected_object_area_geom_get(Evas_Object *obj);
 /**
  * Set the object area visibility.
  *

-- 


Reply via email to