From 8f580736893ff429ae08d59b88c250642b2390b7 Mon Sep 17 00:00:00 2001 From: Woochanlee Date: Mon, 14 Mar 2022 19:40:20 +0900 Subject: [PATCH] libaurum: Set role name as type for object that don't have type This patch for EFL app list item doesn't have type. Change-Id: I42f1fa0c9c8628df60eeae352b65bcef8b099e3e --- libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc b/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc index 95c4506..fdf9c99 100644 --- a/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc +++ b/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc @@ -172,6 +172,10 @@ void AtspiAccessibleNode::updateAttributes() char *a = (char*)g_hash_table_lookup(attributes, "automationId"); if (t) mType = std::string(t); + else { + if (mRole.empty())updateRoleName(); + mType = mRole; + } if (s) mStyle = std::string(s); if (a) mAutomationId = std::string(a); @@ -283,6 +287,7 @@ void AtspiAccessibleNode::refresh() char *a = (char*)g_hash_table_lookup(attributes, "automationId"); if (t) mType = std::string(t); + else mType = mRole; if (s) mStyle = std::string(s); if (a) mAutomationId = std::string(a); -- 2.34.1