diff options
author | rephorm <rephorm> | 2007-06-07 03:49:09 +0000 |
---|---|---|
committer | rephorm <rephorm@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2007-06-07 03:49:09 +0000 |
commit | aa355036c49a59627e5e3a024496dcca9ca12f12 (patch) | |
tree | dc761a3835bf3fa0c996420aa54712fb49ab94c7 /src/bin/e_ilist.c | |
parent | a7bbf46762a7d94e2a78497492e34cc37104437b (diff) | |
download | enlightenment-aa355036c49a59627e5e3a024496dcca9ca12f12.tar.gz |
when going back to categories list, scroll to the category we were just in
get rid of some warnings
SVN revision: 30269
Diffstat (limited to 'src/bin/e_ilist.c')
-rw-r--r-- | src/bin/e_ilist.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c index 8c3b154145..e1f18ef5fb 100644 --- a/src/bin/e_ilist.c +++ b/src/bin/e_ilist.c @@ -1,3 +1,6 @@ +/* + * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 + */ #include "e.h" #define SMART_NAME "e_ilist" @@ -403,6 +406,23 @@ e_ilist_nth_is_header(Evas_Object *obj, int n) return 0; } +EAPI void +e_ilist_nth_geometry_get(Evas_Object *obj, int n, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) +{ + E_Ilist_Item *si; + int error; + + API_ENTRY return; + if (!sd->items) return; + + si = evas_list_nth(sd->items, n); + if (!si) return; + + evas_object_geometry_get(si->o_base, x, y, w, h); + *x -= sd->x; + *y -= sd->y; +} + EAPI void e_ilist_icon_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h) { |