implement GObject.GEnum