/*
- * $Id: rb_event_handler.c 363 2006-02-14 19:02:53Z tilman $
+ * $Id: rb_event_handler.c 364 2006-02-14 19:06:43Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
{
RbEventHandler *h = NULL;
VALUE handler, klass, obj, tmp, res;
- int handler_type, len, i;
+ int handler_type, len, ret = 1, i;
/* instantiate the event object
* first, find the class we're gonna use
/* if the block returned false, don't call the other
* event handlers
*/
- if (res == Qfalse)
+ if (res == Qfalse) {
+ ret = 0;
break;
+ }
}
}
- /* call other event handlers, too */
- return 1;
+ return ret;
}
VALUE c_ev_generic_init (VALUE self, VALUE event)