* Boston, MA 02111-1307, USA.
*/
-/*
- * component.c : bonobo wrapper for accessible component implementation
- *
- */
-#include <config.h>
-#include <bonobo/Bonobo.h>
+/* selection.c : implements the Selection interface */
+#include <config.h>
#include <stdio.h>
+#include <libspi/accessible.h>
+#include <libspi/selection.h>
-/*
- * This pulls the CORBA definitions for the "Accessibility::SpiAccessible" server
- */
-#include <libspi/Accessibility.h>
-#include "accessible.h"
-
-/*
- * This pulls the definition of the selection bonobo object
- */
-#include "selection.h"
-
-/*
- * Static function declarations
- */
+/* Static function declarations */
static void
spi_selection_class_init (SpiSelectionClass *klass);
static CORBA_long
impl__get_nSelectedChildren (PortableServer_Servant _servant,
CORBA_Environment * ev);
-static Accessibility_SpiAccessible
+static Accessibility_Accessible
impl_getSelectedChild (PortableServer_Servant _servant,
const CORBA_long selectedChildIndex,
CORBA_Environment * ev);
impl_selectAll (PortableServer_Servant _servant,
CORBA_Environment * ev);
static void
-impl_clearSpiSelection (PortableServer_Servant _servant,
+impl_clearSelection (PortableServer_Servant _servant,
CORBA_Environment * ev);
*/
type = bonobo_type_unique (
BONOBO_OBJECT_TYPE,
- POA_Accessibility_SpiSelection__init,
+ POA_Accessibility_Selection__init,
NULL,
G_STRUCT_OFFSET (SpiSelectionClass, epv),
&tinfo,
spi_selection_class_init (SpiSelectionClass *klass)
{
GObjectClass * object_class = (GObjectClass *) klass;
- POA_Accessibility_SpiSelection__epv *epv = &klass->epv;
+ POA_Accessibility_Selection__epv *epv = &klass->epv;
parent_class = g_type_class_peek_parent (klass);
object_class->finalize = spi_selection_finalize;
epv->deselectSelectedChild = impl_deselectSelectedChild;
epv->isChildSelected = impl_isChildSelected;
epv->selectAll = impl_selectAll;
- epv->clearSpiSelection = impl_clearSpiSelection;
+ epv->clearSelection = impl_clearSelection;
}
static void
}
-static Accessibility_SpiAccessible
+static Accessibility_Accessible
impl_getSelectedChild (PortableServer_Servant _servant,
const CORBA_long selectedChildIndex,
CORBA_Environment * ev)
SpiSelection
*selection;
AtkObject *atk_object;
- Accessibility_SpiAccessible rv;
+ Accessibility_Accessible rv;
#ifdef SPI_DEBUG
fprintf (stderr, "calling impl_getSelectedChild\n");
#endif
static void
-impl_clearSpiSelection (PortableServer_Servant _servant,
+impl_clearSelection (PortableServer_Servant _servant,
CORBA_Environment * ev)
{
SpiSelection *selection = SPI_SELECTION (bonobo_object_from_servant (_servant));