genlist: add elm_win_auto_focus_enable check in focus highlight signal emit 53/124653/2 submit/tizen/20170413.080524
authorSangHyeon Lee <sh10233.lee@samsung.com>
Wed, 12 Apr 2017 05:14:15 +0000 (14:14 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 13 Apr 2017 01:53:52 +0000 (18:53 -0700)
Change-Id: Idcf3786e9f30e33bc66dbeef971c05f335a1d9e6
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/lib/elm_genlist.c

index 062bb98c956d48d7b8258d6baf5855786277fccc..384360a7521b23ab250ce0ec9fe9b5bff9badbab 100644 (file)
@@ -1841,7 +1841,7 @@ _elm_genlist_item_focus_update(Elm_Gen_Item *it)
    Evas_Object *obj = WIDGET(it);
    ELM_GENLIST_DATA_GET(obj, sd);
 
-   if (elm_widget_focus_highlight_enabled_get(obj))
+   if (elm_widget_focus_highlight_enabled_get(obj) || _elm_config->win_auto_focus_enable)
      edje_object_signal_emit(VIEW(it), SIGNAL_FOCUSED, "elm");
 
    focus_raise = edje_object_data_get(VIEW(it), "focusraise");
@@ -2857,7 +2857,7 @@ _elm_genlist_item_unfocused(Elm_Object_Item *eo_it)
        (eo_it != sd->focused_item))
      return;
 
-   if (elm_widget_focus_highlight_enabled_get(obj))
+   if (elm_widget_focus_highlight_enabled_get(obj) || _elm_config->win_auto_focus_enable)
      {
         ELM_GENLIST_ITEM_DATA_GET(sd->focused_item, focus_it);
         edje_object_signal_emit(VIEW(focus_it), SIGNAL_UNFOCUSED, "elm");