void rbgobj_init_object_class(VALUE klass) { rbgobj_define_property_accessors(klass); if (G_TYPE_IS_ABSTRACT(CLASS2GTYPE(klass))) rb_define_method(klass, "initialize", dummy_init, -1); }
void rbgobj_init_interface(VALUE interf) { static VALUE rb_mGLibInterface = Qnil; rb_extend_object(interf, mMetaInterface); if (CLASS2GTYPE(interf) == G_TYPE_INTERFACE) { rb_mGLibInterface = interf; } else { rb_extend_object(interf, rb_mGLibInterface); rb_include_module(interf, rb_mGLibInterface); rbgobj_define_property_accessors(interf); } }
void rbgobj_init_object_class(VALUE klass) { rbgobj_define_property_accessors(klass); }