Accessibility: remove space button arrows from atspi 35/162835/2
authorPaweł Stawicki <p.stawicki@samsung.com>
Tue, 5 Dec 2017 12:47:24 +0000 (13:47 +0100)
committerPaweł Stawicki <p.stawicki@samsung.com>
Wed, 6 Dec 2017 11:18:06 +0000 (12:18 +0100)
Change-Id: I144b5e94244f3727e8773849556999d7d1534e5b

scl/gwes/efl/sclgraphics-efl.cpp

index 6491242..721a85a 100644 (file)
@@ -254,16 +254,14 @@ void CSCLGraphicsImplEfl::register_atspi_object(sclwindow window, scldrawing dra
     Evas_Object *window_object = get_evas_window_object(window);
     Evas_Object *drawing_object = static_cast<Evas_Object*>(drawing);
 
-    if (!drawing_object || !window_object)
+    if (!drawing_object || !window_object || !name)
         return;
 
     Evas_Object * access_object = elm_access_object_register(drawing_object, window_object);
     if (!access_object)
         return;
 
-    if (name)
-        elm_atspi_accessible_name_set(access_object, name);
-
+    elm_atspi_accessible_name_set(access_object, name);
     elm_atspi_accessible_role_set(access_object, ELM_ATSPI_ROLE_PUSH_BUTTON);
     elm_access_action_cb_set(access_object, ELM_ACCESS_ACTION_ACTIVATE, access_action, name);
 }