* event.py (Event.__init__): Ref() the host_application attribute
[platform/core/uifw/at-spi2-atk.git] / libspi / document.c
index 5d6e4ac..fdc912b 100644 (file)
@@ -91,17 +91,18 @@ impl_getAttributeValue (PortableServer_Servant servant,
 }
 
 
-static CORBA_string
+static Accessibility_AttributeSet*
 impl_getAttributes (PortableServer_Servant servant,
                    CORBA_Environment *ev){
   
   AtkDocument *document = get_document_from_servant (servant);
   AtkAttributeSet *attributes = NULL;
+  AtkAttribute *attr = NULL;
   Accessibility_AttributeSet *retval;
   gint n_attributes = 0;
   gint i;
   
-  g_return_val_if_fail (document != NULL, CORBA_string_dup (""));
+  g_return_val_if_fail (document != NULL, NULL);
   
   attributes = atk_document_get_attributes (document);
   
@@ -119,7 +120,8 @@ impl_getAttributes (PortableServer_Servant servant,
   
   for (i = 0; i < n_attributes; ++i)
   {
-      retval->_buffer[i] = CORBA_string_dup (g_slist_nth_data (attributes, i));
+      attr = g_slist_nth_data (attributes, i);
+      retval->_buffer [i] = CORBA_string_dup (g_strconcat (attr->name, ":", attr->value, NULL));
   }
     
   atk_attribute_set_free (attributes);