Added code to register new types with the gobject type system