}
-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);
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);