From: Hosang Kim Date: Fri, 9 Apr 2021 07:29:50 +0000 (+0900) Subject: libaurum: apply pkg name for accesible node X-Git-Tag: submit/tizen/20210412.073235~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c053c2623cd957ad476eadae26ad0c924aea811;p=platform%2Fcore%2Fuifw%2Faurum.git libaurum: apply pkg name for accesible node Change-Id: Iba4cbbaa72b3d03b81ff6a964d2d617e3b69c1e6 --- diff --git a/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc b/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc index f506502..2cf3fe1 100644 --- a/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc +++ b/libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc @@ -173,9 +173,20 @@ void AtspiAccessibleNode::refresh() #endif gchar *name = AtspiWrapper::Atspi_accessible_get_name(mNode, NULL); - mText = name; - mPkg = name; - g_free(name); + if (name) { + mText = name; + g_free(name); + } + + AtspiAccessible *app = AtspiWrapper::Atspi_accessible_get_application(mNode, NULL); + if (app) { + gchar *pkg = AtspiWrapper::Atspi_accessible_get_name(app, NULL); + if (pkg) { + mPkg = pkg; + g_free(pkg); + } + g_object_unref(app); + } GHashTable *attributes = AtspiWrapper::Atspi_accessible_get_attributes(mNode, NULL); if (attributes) {