Call ecore_event_handler_add() in EventHandler's constructor.
[ruby-ecore.git] / src / ecore / rb_event_handler.h
index c15844ffe3d6f600f9018fc4fcb82d713314fd94..80aa232427348a875d71102b976a35bc483937b5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_event_handler.h 86 2004-08-22 13:41:35Z tilman $
+ * $Id: rb_event_handler.h 107 2004-08-29 18:37:58Z tilman $
  *
  * Copyright (C) 2004 ruby-ecore team (see AUTHORS)
  *
@@ -24,8 +24,6 @@
 #define ADD_EVENT(mod, prefix, constname, clsname, obj) \
        rb_define_const ((mod), #constname, \
                         INT2FIX (prefix##constname)); \
-       ecore_event_handler_add (prefix##constname, on_ecore_event, \
-                                NULL); \
 \
        (obj) = rb_define_class_under ((mod), (clsname), cEcoreEvent); \
        rb_define_private_method (rb_singleton_class ((obj)), \