From b228f3f42e34dab1778664822253cc43c2ce77a3 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Tue, 7 Sep 2021 19:01:14 +0900 Subject: [PATCH] [ATSPI] Hotfix for common profile with ATSPI.IsEnabled() There is some issue with ATSPI in Ubuntu platform. So we build atspi-wrap.cpp in tizen profile only. But ATSPI::IsEnable(); API could be called for all profile This patch hotfix this issue. We move that function to other file. (= control-devel-wrap.cpp which relation API defined) Change-Id: I139ba72c5c3ad8ad2be4255c47e770d29675892e Signed-off-by: Eunki, Hong --- dali-csharp-binder/src/atspi-wrap.cpp | 5 ----- dali-csharp-binder/src/control-devel-wrap.cpp | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dali-csharp-binder/src/atspi-wrap.cpp b/dali-csharp-binder/src/atspi-wrap.cpp index e1757b1..6b2f353 100755 --- a/dali-csharp-binder/src/atspi-wrap.cpp +++ b/dali-csharp-binder/src/atspi-wrap.cpp @@ -164,11 +164,6 @@ SWIGEXPORT void SWIGSTDCALL csharp_dali_accessibility_BridgeDisableAutoInit() Dali::Accessibility::Bridge::DisableAutoInit(); } -SWIGEXPORT bool SWIGSTDCALL csharp_dali_accessibility_IsEnabled() -{ - return Dali::AtspiAccessibility::IsEnabled(); -} - #ifdef __cplusplus } #endif diff --git a/dali-csharp-binder/src/control-devel-wrap.cpp b/dali-csharp-binder/src/control-devel-wrap.cpp index b8be85c..6e4785b 100644 --- a/dali-csharp-binder/src/control-devel-wrap.cpp +++ b/dali-csharp-binder/src/control-devel-wrap.cpp @@ -569,6 +569,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Accessibility_Accessible_SetHighlightAct }); } +// atspi-wrap.cpp build only tizen profile, but this API could called for common profile. +// TODO : It may need to moved some other file. Need to checkup +SWIGEXPORT bool SWIGSTDCALL csharp_dali_accessibility_IsEnabled() +{ + // TODO : This file doesn't have Atspi namespace. In this file, It just call IsUp function. + //return Dali::AtspiAccessibility::IsEnabled(); + return Dali::Accessibility::IsUp(); +} + + #ifdef __cplusplus } // extern "C" #endif -- 2.7.4