(spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
(get_hyperlink_from_servant): Check object is AtkHyperlink not
AtkObject.
* libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
AtkObject.
Fixes bug #95517.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@352
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * libspi/hyperlink.[ch]
+ (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
+ (get_hyperlink_from_servant): Check object is AtkHyperlink not
+ AtkObject.
+
+ * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
+ AtkObject.
+
+ Fixes bug #95517.
+
2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
* registryd/deviceeventcontroller.c
SpiHyperlink *
-spi_hyperlink_new (AtkObject *object)
+spi_hyperlink_new (AtkHyperlink *object)
{
SpiHyperlink *new_hyperlink = g_object_new (
SPI_HYPERLINK_TYPE, NULL);
SpiBase *object = SPI_BASE (bonobo_object_from_servant (servant));
g_return_val_if_fail (object != NULL, NULL);
- g_return_val_if_fail (ATK_IS_OBJECT(object->gobj), NULL);
+ g_return_val_if_fail (ATK_IS_HYPERLINK(object->gobj), NULL);
return ATK_HYPERLINK (object->gobj);
}
};
GType spi_hyperlink_get_type (void);
-SpiHyperlink *spi_hyperlink_new (AtkObject *object);
+SpiHyperlink *spi_hyperlink_new (AtkHyperlink *object);
G_END_DECLS
link = atk_hypertext_get_link (hypertext, linkIndex);
g_return_val_if_fail (link != NULL, CORBA_OBJECT_NIL);
- rv = BONOBO_OBJREF (spi_hyperlink_new (ATK_OBJECT (link)));
+ rv = BONOBO_OBJREF (spi_hyperlink_new (link));
return CORBA_Object_duplicate (rv, ev);
}