genlist: enabled select on focus 64/162264/1 accepted/tizen/4.0/unified/20171204.071028 submit/tizen_4.0/20171130.114757
authorSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Thu, 30 Nov 2017 04:24:15 +0000 (13:24 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Thu, 30 Nov 2017 04:25:51 +0000 (04:25 +0000)
Change-Id: I9740b7ef0148c24bacc126a439fc1f8cfd64ceb0
Signed-off-by: SangHyeon Jade Lee <dltkdgus1764@gmail.com>
src/mobile_lib/elm_genlist.c
src/mobile_lib/elm_widget_genlist.h

index b4d4912..c098f1d 100644 (file)
@@ -8869,15 +8869,14 @@ EOLIAN static void
 _elm_genlist_focus_on_selection_set(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd EINA_UNUSED, Eina_Bool enabled EINA_UNUSED)
 {
    // Need to Implemented
-   //sd->focus_on_selection_enabled = !!enabled;
+   sd->focus_on_selection_enabled = !!enabled;
 }
 
 EOLIAN static Eina_Bool
 _elm_genlist_focus_on_selection_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd EINA_UNUSED)
 {
    // Need to Implemented
-   //return sd->focus_on_selection_enabled;
-   return EINA_FALSE;
+   return sd->focus_on_selection_enabled;
 }
 
 EAPI Elm_Object_Item *
index b65c344..e7ee4a0 100644 (file)
@@ -226,6 +226,8 @@ struct _Elm_Genlist_Data
    Eina_Bool                             unhighlighted : 1;
    Evas_Object                           *focus_bg;
    Evas_Object                           *clipee;
+
+   Eina_Bool                             focus_on_selection_enabled : 1;
 };
 
 typedef struct _Item_Block Item_Block;