From 0496b7988ab8df1c20874ebc81c8ff909aee58e1 Mon Sep 17 00:00:00 2001 From: "Godly T.Alias" Date: Wed, 1 Nov 2017 16:11:30 +0900 Subject: Genlist Item Pin Feature Summary: **@feature** T6241 This feature enables genlist to pin an item to viewport which will be available always for user to view/select. **Use Case**: In a big list of music, most times when user finds a song which they like, before playing that they may want to go through the entire list to check whether there is some other good songs, but after seeing the entire list user have to again scroll back to the position of item which they liked to play it then. In this case item pinning can be used, so that the item which they want to keep for future selection can be pinned and then it will remain in viewport, finally when user want to do operation on item, it will be readily available in viewport. Signed-off-by: Godly T.Alias Test Plan: Elementary Test -> Genlist -> Double click on items to enable/disable pinning Reviewers: raster, cedric, prince.dubey, SanghyeonLee Subscribers: rajeshps, jpeg, shilpasingh Tags: #efl Differential Revision: https://phab.enlightenment.org/D5340 --- src/lib/elementary/elm_widget_genlist.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/elementary/elm_widget_genlist.h') diff --git a/src/lib/elementary/elm_widget_genlist.h b/src/lib/elementary/elm_widget_genlist.h index 5a1f4e8008..5e81cbe8ac 100644 --- a/src/lib/elementary/elm_widget_genlist.h +++ b/src/lib/elementary/elm_widget_genlist.h @@ -89,7 +89,7 @@ struct _Elm_Genlist_Data Ecore_Idler *must_recalc_idler; Eina_List *queue; Elm_Gen_Item *show_item, *anchor_item, *mode_item, - *reorder_rel, *expanded_item; + *reorder_rel, *expanded_item, *pin_item; Eina_Inlist *item_cache; /* an inlist of * edje object it * cache. */ @@ -201,6 +201,7 @@ struct _Elm_Genlist_Data Eina_Bool item_looping_on : 1; Eina_Bool tree_effect_animator : 1; + Eina_Bool pin_item_top : 1; }; typedef struct _Item_Block Item_Block; -- cgit v1.2.1