/*
- * $Id: rb_event_handler.c 367 2006-02-14 22:20:14Z tilman $
+ * $Id: rb_event_handler.c 372 2006-02-16 20:39:55Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
return self;
}
-VALUE c_ev_inherited_noop (VALUE klass, VALUE child)
-{
- return Qnil;
-}
-
static void free_ruby_event (void *data, void *event)
{
/* do nothing */
/*
- * $Id: rb_event_handler.h 365 2006-02-14 21:50:47Z tilman $
+ * $Id: rb_event_handler.h 372 2006-02-16 20:39:55Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
#define __RB_EVENT_HANDLER_H
#define ADD_EVENT(mod, constname, clsname, obj) \
- rb_define_singleton_method (cEcoreEvent, "inherited", \
- c_ev_inherited_noop, 1); \
+ rb_remove_method (rb_singleton_class (cEcoreEvent), "inherited"); \
\
(obj) = rb_define_class_under ((mod), (clsname), cEcoreEvent); \
rb_define_private_method (rb_singleton_class ((obj)), \
void Init_EventHandler (void);
VALUE c_ev_inherited (VALUE klass, VALUE child);
-VALUE c_ev_inherited_noop (VALUE klass, VALUE child);
#ifndef __RB_EVENT_HANDLER_C
extern VALUE event_classes, cEcoreEvent;