evas_object_smart_callback_call(WIDGET(it),
SIG_WIDGET_ATSPI_HIGHLIGHTED, EO_OBJ(it));
//
+ //TIZEN_ONLY(20161104) : Accessibility : synchronized highlight of atspi and item align feature for wearable profile
+ edje_object_signal_emit(VIEW(it), SIGNAL_ITEM_HIGHLIGHTED, "elm");
+ //
}
}
{
ELM_GENLIST_DATA_GET(WIDGET(it), sd);
- //TIZEN_ONLY(20170119): Show the object highlighted by highlight_grab when the object is completely out of the scroll
- eo_do_super(EO_OBJ(it), ELM_GENLIST_ITEM_CLASS, elm_interface_atspi_component_highlight_grab());
-
- //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
- // If you call eo_do_super, then you do NOT have to call smart callback.
- evas_object_smart_callback_call(WIDGET(it), "atspi,highlighted", EO_OBJ(it));
- //
-
+ if (VIEW(it))
+ {
+ //TIZEN_ONLY(20170119): Show the object highlighted by highlight_grab when the object is completely out of the scroll
+ eo_do_super(EO_OBJ(it), ELM_GENLIST_ITEM_CLASS, elm_interface_atspi_component_highlight_grab());
- if (!VIEW(it))
+ //TIZEN_ONLY(20170412) Make atspi,(un)highlighted work on widget item
+ // If you call eo_do_super, then you do NOT have to call smart callback.
+ evas_object_smart_callback_call(WIDGET(it), "atspi,highlighted", EO_OBJ(it));
+ //
+ //TIZEN_ONLY(20161104) : Accessibility : synchronized highlight of atspi and item align feature for wearable profile
+ edje_object_signal_emit(VIEW(it), SIGNAL_ITEM_HIGHLIGHTED, "elm");
+ //
+ }
+ else
{
if (!TIZEN_PROFILE_WEARABLE)
{
elm_genlist_item_bring_in(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN);
//
}
+ else
+ {
+ Eina_List *realized = elm_genlist_realized_items_get(WIDGET(it));
+ if (realized)
+ {
+ Elm_Object_Item *first_it = elm_genlist_first_item_get(WIDGET(it));
+ Elm_Object_Item *last_it = elm_genlist_last_item_get(WIDGET(it));
+ if (first_it == eo_it || last_it == eo_it)
+ elm_genlist_item_bring_in(eo_it, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
+ else
+ elm_genlist_item_bring_in(eo_it, ELM_GENLIST_ITEM_SCROLLTO_IN);
+ eina_list_free(realized);
+ /* FIXME : Adjusted_item is not unnecessary when find unrealized item and highlight
+ Because In realized function will find unrealized item and highlight focus. */
+ sd->adjusted_item = NULL;
+ }
+ }
+ sd->atspi_item_to_highlight = it;//it will be highlighted when realized
}
- //TIZEN_ONLY(20161104) : Accessibility : synchronized highlight of atspi and item align feature for wearable profile
- edje_object_signal_emit(VIEW(it), SIGNAL_ITEM_HIGHLIGHTED, "elm");
- //
-
return EINA_TRUE;
}
_elm_genlist_item_elm_interface_atspi_component_highlight_clear(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
{
ELM_GENLIST_DATA_GET(WIDGET(it), sd);
- //TIZEN_ONLY(20161104) : Accessibility : synchronized highlight of atspi and item align feature for wearable profile
- if(sd->currently_highlighted_item == it)
- sd->currently_highlighted_item = NULL;
- //
if (sd->atspi_item_to_highlight == it)
sd->atspi_item_to_highlight = NULL;
elm_object_accessibility_highlight_set(EO_OBJ(it), EINA_FALSE);