* AT-SPI - Assistive Technology Service Provider Interface
* (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
*
- * Copyright 2001, 2002 Sun Microsystems Inc.,
- * Copyright 2001, 2002 Ximian, Inc.
+ * Copyright 2001, 2002, 2003 Sun Microsystems Inc.,
+ * Copyright 2001, 2002, 2003 Ximian, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
any = (CORBA_any *) e->data;
if (CORBA_TypeCode_equivalent (any->_type, TC_CORBA_string, NULL))
{
- return * (char **) any->_value;
+ return g_strdup (* (char **) any->_value);
}
else
{
cspi_internal_event_get_object (const InternalEvent *e)
{
CORBA_any *any;
- Accessible *accessible;
+
g_return_val_if_fail (e, NULL);
g_return_val_if_fail (e->data, NULL);
+
any = (CORBA_any *) e->data;
- if (any->_type == TC_CORBA_Object)
+ if (CORBA_TypeCode_equal (any->_type, TC_CORBA_Object, cspi_ev()))
return cspi_object_take (* (CORBA_Object *) any->_value);
else
return NULL;
/**
* AccessibleTextChangedEvent_getChangeString:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "object:text-changed",
* returning the text inserted or deleted.
static InternalEvent *
cspi_internal_event_add (const InternalEvent *e)
{
- _cspi_event_queue = g_slist_prepend (_cspi_event_queue, e);
+ _cspi_event_queue = g_slist_prepend (_cspi_event_queue, (gpointer) e);
return (InternalEvent *) e;
}