* Boston, MA 02111-1307, USA.
*/
-/*
- * component.c : bonobo wrapper for accessible component implementation
- *
- */
-#include <config.h>
-#include <bonobo/Bonobo.h>
+/* hypertext.c : implements the HyperText interface */
+#include <config.h>
#include <stdio.h>
+#include <libspi/hyperlink.h>
+#include <libspi/hypertext.h>
-/*
- * This pulls the CORBA definitions for the "Accessibility::Accessible" server
- */
-#include <libspi/Accessibility.h>
-
-/*
- * This pulls the definition of the hypertext bonobo object
- */
-#include "hypertext.h"
-
-/*
- * Static function declarations
- */
+/* Static function declarations */
static void
spi_hypertext_class_init (SpiHypertextClass *klass);
* use bonobo_type_unique.
*/
type = bonobo_type_unique (
- BONOBO_OBJECT_TYPE,
+ BONOBO_TYPE_OBJECT,
POA_Accessibility_Hypertext__init,
NULL,
G_STRUCT_OFFSET (SpiHypertextClass, epv),
static Accessibility_Hyperlink
-impl_getLink (PortableServer_Servant _servant,
- const CORBA_long linkIndex,
- CORBA_Environment * ev)
+impl_getLink (PortableServer_Servant servant,
+ const CORBA_long linkIndex,
+ CORBA_Environment *ev)
{
AtkHyperlink *link;
- SpiHypertext *hypertext = SPI_HYPERTEXT(bonobo_object_from_servant(_servant));
+ SpiHypertext *hypertext;
Accessibility_Hyperlink rv;
- link = atk_hypertext_get_link (ATK_HYPERTEXT(hypertext->atko),
- (gint) linkIndex);
- rv = bonobo_object_corba_objref (BONOBO_OBJECT(spi_hyperlink_interface_new(ATK_OBJECT(link))));
+ hypertext = SPI_HYPERTEXT (bonobo_object_from_servant (servant));
+
+ link = atk_hypertext_get_link (
+ ATK_HYPERTEXT (hypertext->atko), linkIndex);
+
+ rv = bonobo_object_corba_objref (BONOBO_OBJECT (
+ spi_hyperlink_new (ATK_OBJECT (link))));
+
return rv;
}