From: Shinwoo Kim Date: Wed, 19 Jun 2013 08:04:59 +0000 (+0900) Subject: [access] patial revert to give a highlight, if an object has a focus X-Git-Tag: accepted/tizen/20130927.071315^2~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2076d155294315458286885cbd8eab9e3139217;p=profile%2Fmobile%2Felementary.git [access] patial revert to give a highlight, if an object has a focus --- diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index d05ad3b..b6f49fd 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -1370,7 +1370,6 @@ _on_show(void *data __UNUSED__, Eina_List *elist; Elm_Ctxpopup_Item *item; int idx = 0; - Evas_Object *ao; ELM_CTXPOPUP_DATA_GET(obj, sd); ELM_WIDGET_DATA_GET(obj, wsd); @@ -1417,12 +1416,6 @@ _on_show(void *data __UNUSED__, elm_layout_sizing_eval(obj); elm_object_focus_set(obj, EINA_TRUE); - - if (_elm_config->access_mode) - { - ao = _access_object_get(obj, ACCESS_OUTLINE_PART); - _elm_access_highlight_set(ao); - } } static void diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index b7663b7..eb62675 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -67,10 +67,7 @@ _prev_page_focus_recover(Elm_Naviframe_Item *it) newest = elm_widget_newest_focus_order_get(VIEW(it), &order, EINA_TRUE); if (newest) - { elm_object_focus_set(newest, EINA_TRUE); - _elm_access_highlight_set(newest); - } else { if (_elm_config->access_mode) diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c index 44cc2e9..dcb2eda 100644 --- a/src/lib/elc_popup.c +++ b/src/lib/elc_popup.c @@ -107,17 +107,6 @@ _access_object_get(const Evas_Object *obj, const char* part) return ao; } -static void -_access_highlight_set(const Evas_Object *obj) -{ - Evas_Object *ao; - - ao = _access_object_get(obj, ACCESS_BASE_PART); - if (!ao) ao = _access_object_get(obj, ACCESS_TITLE_PART); - if (!ao) ao = _access_object_get(obj, ACCESS_BODY_PART); - if (!ao) ao = elm_widget_focused_object_get(obj); - if (ao) _elm_access_highlight_set(ao); -} static void _on_show(void *data __UNUSED__, @@ -136,7 +125,6 @@ _on_show(void *data __UNUSED__, elm_object_content_set(sd->notify, obj); elm_object_focus_set(obj, EINA_TRUE); - if (_elm_config->access_mode) _access_highlight_set(obj); } static void @@ -1232,13 +1220,8 @@ _action_button_set(Evas_Object *obj, ao = _access_object_get(obj, ACCESS_BASE_PART); if (ao && sd->button_count) - { - _elm_access_edje_object_part_object_unregister - (obj, ELM_WIDGET_DATA(sd)->resize_obj, ACCESS_BASE_PART); - - /* there is a case to set button, after evas_object_show(popup); */ - if (evas_object_visible_get(obj)) _access_highlight_set(obj); - } + _elm_access_edje_object_part_object_unregister + (obj, ELM_WIDGET_DATA(sd)->resize_obj, ACCESS_BASE_PART); } snprintf(buf, sizeof(buf), "buttons%u", sd->button_count);