elm: set accurate access role for elm_popup
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Mon, 13 Nov 2017 03:08:24 +0000 (12:08 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 13 Nov 2017 03:08:24 +0000 (12:08 +0900)
Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5454

src/lib/elementary/elc_popup.c
src/tests/elementary/elm_test_popup.c

index 3a2f221..e21c631 100644 (file)
@@ -1529,7 +1529,7 @@ _elm_popup_efl_object_constructor(Eo *obj, Elm_Popup_Data *_pd EINA_UNUSED)
    obj = efl_constructor(efl_super(obj, MY_CLASS));
    efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
    evas_object_smart_callbacks_descriptions_set(obj, _smart_callbacks);
-   efl_access_role_set(obj, EFL_ACCESS_ROLE_NOTIFICATION);
+   efl_access_role_set(obj, EFL_ACCESS_ROLE_DIALOG);
 
    return obj;
 }
index 1cd2916..17b8433 100644 (file)
@@ -18,7 +18,7 @@ START_TEST (elm_atspi_role_get)
    popup = elm_popup_add(win);
    role = efl_access_role_get(popup);
 
-   ck_assert(role == EFL_ACCESS_ROLE_NOTIFICATION);
+   ck_assert(role == EFL_ACCESS_ROLE_DIALOG);
 
    elm_shutdown();
 }