rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=094931ca956afd0811b8ad3e08bde74942d75623

commit 094931ca956afd0811b8ad3e08bde74942d75623
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Fri Apr 1 13:03:47 2016 +0300

    container: add getter for container geometry
    
    Change-Id: If9fa16787c64133cd3659071f5a14a818ebe268b
---
 src/bin/ui/workspace/container.c |  8 ++++++++
 src/bin/ui/workspace/container.h | 10 ++++++++++
 src/bin/ui/workspace/workspace.c |  3 ++-
 3 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/bin/ui/workspace/container.c b/src/bin/ui/workspace/container.c
index e37e06a..c20ee03 100644
--- a/src/bin/ui/workspace/container.c
+++ b/src/bin/ui/workspace/container.c
@@ -488,6 +488,14 @@ container_container_size_set(Evas_Object *obj, int w, int 
h)
    return true;
 }
 
+Container_Geom *
+container_geom_get(Evas_Object *obj)
+{
+   CONTAINER_DATA_GET(obj, sd);
+
+   return &sd->size;
+}
+
 Eina_Bool
 container_container_size_get(Evas_Object *obj, int *w, int *h)
 {
diff --git a/src/bin/ui/workspace/container.h b/src/bin/ui/workspace/container.h
index 22349d6..d4c37e7 100644
--- a/src/bin/ui/workspace/container.h
+++ b/src/bin/ui/workspace/container.h
@@ -157,6 +157,16 @@ Eina_Bool
 container_container_size_get(Evas_Object *obj, int *w, int *h);
 
 /**
+ * Get the container geom
+ *
+ * @param obj The Container object.
+ *
+ * @ingroup Container
+ */
+Container_Geom *
+container_geom_get(Evas_Object *obj);
+
+/**
  * Set the new style to Container object.
  *
  * @param obj The Container object,
diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c
index fc2342d..8ace046 100644
--- a/src/bin/ui/workspace/workspace.c
+++ b/src/bin/ui/workspace/workspace.c
@@ -497,7 +497,8 @@ _container_changed(void *data,
    evas_object_geometry_get(area->ruler_v.obj, NULL, &y, NULL, NULL);
 
    if (((MODE_NORMAL == wd->mode) || (MODE_CODE == wd->mode)) && area->content)
-     part_geom = groupview_part_selected_object_area_geom_get(area->content);
+     if (groupview_part_object_area_visible_get(area->content))
+       part_geom = groupview_part_selected_object_area_geom_get(area->content);
    if (part_geom)
      {
         scale_x = part_geom->x - x;

-- 


Reply via email to