path: root/legacy/elementary/src/bin/test_gengrid.c
diff options
authorSangHyeon Lee <sh10233.lee@samsung.com>2014-05-15 12:13:23 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-15 12:13:23 +0900
commitc565ec1cdea80aff3f8c3328473488a75e0c388f (patch)
tree1f11aba9eb213770bcadaa078ba8fde7eac4ea9e /legacy/elementary/src/bin/test_gengrid.c
parenthoversel: Icon parent set to button. (diff)
[Gengrid] Fix gengrid item position update bug, when item is reordered or deleted.
Summary: When gengrid item is reordered or deleted, gengrid didn't update item's position. This Patch update item's position when item is placed. if middle of item deleted, every item after the deleted one, will re-postion on _item_place function, so they will be update there position well. Test Plan: modify test_gengrid grid_sel fuction to print there position. so when item selected, they print there position and it works fine both horizontal and vertical. Reviewers: bluezery, seoz, raster Reviewed By: raster CC: Hermet, chinmaya061 Differential Revision: https://phab.enlightenment.org/D855
Diffstat (limited to 'legacy/elementary/src/bin/test_gengrid.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index 5d58b5b795..e34b42eaf0 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -275,7 +275,7 @@ grid_del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED)
static void
grid_sel(void *data, Evas_Object *obj, void *event_info)
- printf("sel item data [%p] on grid obj [%p], pointer [%p]\n", data, obj, event_info);
+ printf("sel item data [%p] on grid obj [%p], pointer [%p], position [%d]\n", data, obj, event_info, elm_gengrid_item_index_get(event_info));
static void