projects
/
ruby-ecore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworked on_ecore_event().
[ruby-ecore.git]
/
src
/
ecore
/
rb_event_handler.c
diff --git
a/src/ecore/rb_event_handler.c
b/src/ecore/rb_event_handler.c
index f296ae26255655b8f0f96966738b841fd2368f29..a360ef70cac34cb42447fcb5f831adb6930ac68a 100644
(file)
--- a/
src/ecore/rb_event_handler.c
+++ b/
src/ecore/rb_event_handler.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_event_handler.c 36
3 2006-02-14 19:02:5
3Z tilman $
+ * $Id: rb_event_handler.c 36
4 2006-02-14 19:06:4
3Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
@@
-130,7
+130,7
@@
static int on_ecore_event (void *data, int type, void *event)
{
RbEventHandler *h = NULL;
VALUE handler, klass, obj, tmp, res;
{
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
/* instantiate the event object
* first, find the class we're gonna use
@@
-157,13
+157,14
@@
static int on_ecore_event (void *data, int type, void *event)
/* if the block returned false, don't call the other
* event handlers
*/
/* if the block returned false, don't call the other
* event handlers
*/
- if (res == Qfalse)
+ if (res == Qfalse) {
+ ret = 0;
break;
break;
+ }
}
}
}
}
- /* call other event handlers, too */
- return 1;
+ return ret;
}
VALUE c_ev_generic_init (VALUE self, VALUE event)
}
VALUE c_ev_generic_init (VALUE self, VALUE event)