yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=feb1a2ecdfc28e6f4e4141f52e3c058fa0183d62

commit feb1a2ecdfc28e6f4e4141f52e3c058fa0183d62
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Nov 3 10:40:29 2015 +0200

    Add API obj_container_contents_list_get()
---
 src/lib/gui_widget.c | 14 +++++++++-----
 src/lib/gui_widget.h |  3 +++
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/lib/gui_widget.c b/src/lib/gui_widget.c
index dab1201..71c949e 100644
--- a/src/lib/gui_widget.c
+++ b/src/lib/gui_widget.c
@@ -2059,14 +2059,18 @@ wdg_obj_container_class_name_get(const Gui_Widget *wdg)
 }
 
 const Eina_List *
+obj_container_contents_list_get(const Object_Container *c)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(c, NULL);
+   return c->container_items;
+}
+
+const Eina_List *
 wdg_obj_container_contents_list_get(const Gui_Widget *wdg)
 {
    const Object_Container *c = wdg_obj_container_get(wdg);
-   if (c)
-     {
-        return c->container_items;
-     }
-   return NULL;
+   if (!c) return NULL;
+   return obj_container_contents_list_get(c);
 }
 
 /* Get values of content by it's name or index.
diff --git a/src/lib/gui_widget.h b/src/lib/gui_widget.h
index 2ed2948..e96df91 100644
--- a/src/lib/gui_widget.h
+++ b/src/lib/gui_widget.h
@@ -507,6 +507,9 @@ wdg_obj_container_class_name_get(const Gui_Widget *wdg);
 const Eina_List *
 wdg_obj_container_contents_list_get(const Gui_Widget *wdg);
 
+const Eina_List *
+obj_container_contents_list_get(const Object_Container *c);
+
 /* Get container_item of container by it's name or index. */
 Object_Container_Item *
 wdg_obj_container_item_get(const Gui_Widget *wdg, int idx, const char* name);

-- 


Reply via email to