atspi: change deprecated API 26/270026/2 accepted/tizen/unified/20220126.212958 submit/tizen/20220124.100253
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 24 Jan 2022 09:17:40 +0000 (18:17 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Mon, 24 Jan 2022 09:43:34 +0000 (18:43 +0900)
- change atspi_accessible_get_editable_text to
atspi_accessible_get_editable_text_iface
- call g_object_unref when it is finished using iface.

Change-Id: If66f8226d31bbe473c08ba093cad1d91fa7e3b63

libaurum/src/Impl/Accessibility/AtspiAccessibleNode.cc
libaurum/src/Impl/Accessibility/AtspiWrapper.cc

index 32e5555fe55af06f9c293f9f292e3f88f50c32bc..3fa127ce48a4e2b4a0ab7abe9538a256fedecfc6 100644 (file)
@@ -389,6 +389,8 @@ bool AtspiAccessibleNode::setValue(std::string text)
     AtspiWrapper::Atspi_editable_text_delete_text(iface, 0, len, NULL);
     AtspiWrapper::Atspi_editable_text_insert_text(iface, 0, text.c_str(), text.length(),
                                                   NULL);
+    g_object_unref(iface);
+
     return true;
 }
 
index f41b7f07ebcb2ca059859a5ea6346320793b670c..6164ffcb080386d6b7f2b7ae24ddc347e1d3b158 100644 (file)
@@ -132,7 +132,7 @@ gboolean AtspiWrapper::Atspi_action_do_action(AtspiAction *action, int index, GE
 AtspiEditableText *AtspiWrapper::Atspi_accessible_get_editable_text(AtspiAccessible *node)
 {
     std::unique_lock<std::recursive_mutex> lock(mMutex);
-    return atspi_accessible_get_editable_text(node);
+    return atspi_accessible_get_editable_text_iface(node);
 }
 
 gboolean AtspiWrapper::Atspi_editable_text_delete_text(AtspiEditableText *iface, int start, int end, GError **error)