Add member of default label info that check for default label enabed 57/174657/1 accepted/tizen/unified/20180413.073556 submit/tizen/20180412.065812 submit/tizen/20180412.094011
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 3 Apr 2018 10:02:28 +0000 (19:02 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 3 Apr 2018 10:02:28 +0000 (19:02 +0900)
Change-Id: I9f20e4aed82de71c5f64210817f8b11f6505f63d

atspi/atspi-accessible.c
atspi/atspi-accessible.h

index e018379..944e055 100644 (file)
@@ -577,6 +577,8 @@ atspi_accessible_get_reading_material (AtspiAccessible *obj, GError **error)
  * You have to handle all alocated memory as below on screen-reader side.
  *
  * AtspiAccessibleDefaultLabelInfo *dli
+ * g_hash_table_unref(dli->attributes);
+
  * g_object_unref(dli->obj);
  * free(dli);
  **/
@@ -593,7 +595,7 @@ atspi_accessible_get_default_label_info (AtspiAccessible *obj, GError **error)
 
   reply = _atspi_dbus_call_partial (obj, atspi_interface_accessible, "GetDefaultLabelInfo", error, "");
 
-  _ATSPI_DBUS_CHECK_SIG (reply, "(so)u", NULL, NULL);
+  _ATSPI_DBUS_CHECK_SIG (reply, "(so)ua{ss}", NULL, NULL);
 
   default_label_info = calloc(1, sizeof(AtspiAccessibleDefaultLabelInfo));
   if (!default_label_info)
@@ -610,6 +612,9 @@ atspi_accessible_get_default_label_info (AtspiAccessible *obj, GError **error)
   default_label_info->role = role;
   dbus_message_iter_next (&iter);
 
+  default_label_info->attributes =  _atspi_dbus_hash_from_iter (&iter);
+  dbus_message_iter_next (&iter);
+
   return default_label_info;
 }
 
index 9efc168..2b7046e 100644 (file)
@@ -49,6 +49,7 @@ struct _AtspiAccessibleDefaultLabelInfo
 {
   AtspiAccessible *obj;
   AtspiRole role;
+  GHashTable *attributes;
 };
 
 struct _AtspiAccessibleReadingMaterial