summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-07 13:19:57 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-07 13:19:57 +0000
commitdb702e2685e63a47f391e8e22b568a1675fe3400 (patch)
tree56d6836be6cba55f7f68ed84a60e320071939729
parentb7cd7e5f18be1ee71d1ad97ab1ec7b97f1d62ba0 (diff)
add function for returning e_layout children
SVN revision: 83749
-rw-r--r--ChangeLog1
-rw-r--r--NEWS1
-rw-r--r--src/bin/e_layout.c10
-rw-r--r--src/bin/e_layout.h2
4 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fa347be9a..955e48e9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -69,6 +69,7 @@
692013-01-29 Mike Blumenkrantz 692013-01-29 Mike Blumenkrantz
70 70
71 * fixed bug where dragging files into sidebar would move them instead of creating links 71 * fixed bug where dragging files into sidebar would move them instead of creating links
72 * added function for getting children of e_layout
72 73
732013-01-23 Chris Michael 742013-01-23 Chris Michael
74 75
diff --git a/NEWS b/NEWS
index 544bf395f..b2de3ad0d 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,7 @@ Additions:
26 * e_widget_check_widget_disable_on_* 26 * e_widget_check_widget_disable_on_*
27 * e_widget_on_disable_hook_set 27 * e_widget_on_disable_hook_set
28 * e_int_border_remember_edit 28 * e_int_border_remember_edit
29 * Added function for getting children of e_layout
29 Config: 30 Config:
30 * Added option for disabling icons in menus 31 * Added option for disabling icons in menus
31 * Added option for disabling pointer warping when performing directional focus changes using winlist 32 * Added option for disabling pointer warping when performing directional focus changes using winlist
diff --git a/src/bin/e_layout.c b/src/bin/e_layout.c
index 1dcd374ed..cf4c65dbd 100644
--- a/src/bin/e_layout.c
+++ b/src/bin/e_layout.c
@@ -262,6 +262,16 @@ e_layout_unpack(Evas_Object *obj)
262 _e_layout_smart_disown(obj); 262 _e_layout_smart_disown(obj);
263} 263}
264 264
265EAPI const Eina_List *
266e_layout_children_get(Evas_Object *obj)
267{
268 E_Smart_Data *sd;
269
270 if (evas_object_smart_smart_get(obj) != _e_smart) SMARTERRNR() NULL;
271 sd = evas_object_smart_data_get(obj);
272 return sd->items;
273}
274
265/* local subsystem functions */ 275/* local subsystem functions */
266static E_Layout_Item * 276static E_Layout_Item *
267_e_layout_smart_adopt(E_Smart_Data *sd, Evas_Object *obj) 277_e_layout_smart_adopt(E_Smart_Data *sd, Evas_Object *obj)
diff --git a/src/bin/e_layout.h b/src/bin/e_layout.h
index c05fc33ad..f279ff6a3 100644
--- a/src/bin/e_layout.h
+++ b/src/bin/e_layout.h
@@ -22,5 +22,7 @@ EAPI void e_layout_child_lower_below (Evas_Object *obj, Evas_Object *bel
22EAPI void e_layout_child_geometry_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); 22EAPI void e_layout_child_geometry_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
23EAPI void e_layout_unpack (Evas_Object *obj); 23EAPI void e_layout_unpack (Evas_Object *obj);
24 24
25EAPI const Eina_List *e_layout_children_get(Evas_Object *obj);
26
25#endif 27#endif
26#endif 28#endif