From: Eunki, Hong Date: Tue, 7 Sep 2021 10:01:14 +0000 (+0900) Subject: [ATSPI] Hotfix for common profile with ATSPI.IsEnabled() X-Git-Tag: dali_2.0.43~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b228f3f42e34dab1778664822253cc43c2ce77a3;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git [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 --- 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