[access] patial revert to give a highlight, if an object has a focus
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 19 Jun 2013 08:04:59 +0000 (17:04 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 20 Jun 2013 12:34:11 +0000 (21:34 +0900)
src/lib/elc_ctxpopup.c
src/lib/elc_naviframe.c
src/lib/elc_popup.c

index d05ad3b..b6f49fd 100644 (file)
@@ -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
index b7663b7..eb62675 100644 (file)
@@ -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)
index 44cc2e9..dcb2eda 100644 (file)
@@ -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);