+2002-03-13 Bill Haneman <bill.haneman@sun.com>
+
+ * libspi/accessible.c
+ (impl_accessibility_accessible_get_child_at_index):
+ Change return value for g_return_if_fail ()
+ to CORBA_OBJECT_NIL instead of "0" (!)
+
2002-03-13 Michael Meeks <michael@ximian.com>
* atk-bridge/bridge.c (atk_bridge_init): don't register
AtkObject *child;
AtkObject *object = get_atkobject_from_servant (servant);
- g_return_val_if_fail (object != NULL, 0);
+ g_return_val_if_fail (object != NULL, CORBA_OBJECT_NIL);
child = atk_object_ref_accessible_child (object, index);
SpiAccessible *
spi_accessible_new (AtkObject *o)
{
- return spi_accessible_construct (SPI_ACCESSIBLE_TYPE, o);
+ return spi_accessible_construct (SPI_ACCESSIBLE_TYPE, o);
}
SpiAccessible *
bonobo_object_ref (BONOBO_OBJECT (retval));
return retval;
}
-
else
{
retval = g_object_new (type, NULL);
}
else if (SPI_IS_REMOTE_OBJECT (o))
{
- retval = spi_remote_object_get_accessible (SPI_REMOTE_OBJECT (o));
+ retval = spi_remote_object_get_accessible (SPI_REMOTE_OBJECT (o));
}
else
{
- accessible = spi_accessible_new (o);
+ accessible = spi_accessible_construct (SPI_ACCESSIBLE_TYPE, o);
retval = CORBA_Object_duplicate (BONOBO_OBJREF (accessible), ev);
}