{
GObjectClass * object_class = (GObjectClass *) klass;
POA_Accessibility_EditableText__epv *epv = &klass->epv;
- parent_class = g_type_class_peek_parent (klass);
+ parent_class = g_type_interface_peek_parent (klass);
object_class->finalize = editable_text_finalize;
-
-
+
/* Initialize epv table */
epv->setAttributes = impl_setAttributes;
static void
editable_text_finalize (GObject *obj)
{
- EditableText *editable = EDITABLE_TEXT(obj);
- Text *text = TEXT(obj);
- g_object_unref (text->atko);
- text->atko = NULL;
parent_class->finalize (obj);
}
{
EditableText *new_editable =
EDITABLE_TEXT(g_object_new (EDITABLE_TEXT_TYPE, NULL));
- TEXT (new_editable)->atko = obj;
+ (TEXT (new_editable))->atko = obj;
g_object_ref (obj);
-return new_editable;
+ return new_editable;
}
-
-
static CORBA_boolean
impl_setAttributes (PortableServer_Servant _servant,
const CORBA_char * attributes,