{
SpiBase *object = SPI_BASE (bonobo_object_from_servant (servant));
g_return_val_if_fail (object != NULL, NULL);
- return ATK_COMPONENT (object->atko);
+ g_return_val_if_fail (ATK_IS_OBJECT(object->gobj), NULL);
+ return ATK_COMPONENT (object->gobj);
}
/*
Accessibility_BoundingBox retval;
AtkComponent *component = get_component_from_servant (servant);
- g_return_if_fail (component != NULL);
-
atk_component_get_extents (component, &ix, &iy, &iw, &ih,
(AtkCoordType) coord_type);
retval.x = ix;
- retval.y = ix;
+ retval.y = iy;
retval.width = iw;
retval.height = ih;
{
SpiComponent *retval = g_object_new (SPI_COMPONENT_TYPE, NULL);
- spi_base_construct (SPI_BASE (retval), o);
+ spi_base_construct (SPI_BASE (retval), G_OBJECT(o));
return retval;
}