- static GType type = 0;
-
- if (!type) {
- static const GTypeInfo tinfo = {
- sizeof (ImageClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc) image_class_init,
- (GClassFinalizeFunc) NULL,
- NULL, /* class data */
- sizeof (Image),
- 0, /* n preallocs */
- (GInstanceInitFunc) image_init,
- NULL /* value table */
- };
-
- /*
- * Bonobo_type_unique auto-generates a load of
- * CORBA structures for us. All derived types must
- * use bonobo_type_unique.
- */
- type = bonobo_type_unique (
- BONOBO_OBJECT_TYPE,
- POA_Accessibility_Image__init,
- NULL,
- G_STRUCT_OFFSET (ImageClass, epv),
- &tinfo,
- "AccessibleImage");
- }
-
- return type;
-}
-
-static void
-image_class_init (ImageClass *klass)
-{
- GObjectClass * object_class = (GObjectClass *) klass;
- POA_Accessibility_Image__epv *epv = &klass->epv;
- parent_class = g_type_class_peek_parent (klass);
-
- object_class->finalize = image_finalize;