projects
/
ruby-ecore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed class instantiation.
[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 63c501632750095f17510e3169e6d1e65f450418..9a72a0da801cd1badf28eaa604abb70d124f5414 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
77 2004-08-19 17:39:29
Z tilman $
+ * $Id: rb_event_handler.c
343 2005-05-07 20:22:56
Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
@@
-27,6
+27,8
@@
#include "rb_ecore.h"
#include "rb_event_handler.h"
#include "rb_ecore.h"
#include "rb_event_handler.h"
+static int on_ecore_event (void *data, int type, void *event);
+
VALUE event_classes, cEcoreEvent;
static VALUE handlers;
VALUE event_classes, cEcoreEvent;
static VALUE handlers;
@@
-47,6
+49,8
@@
static VALUE c_init (VALUE self, VALUE type)
rb_ary_push (handlers, self);
rb_ary_push (handlers, self);
+ ecore_event_handler_add (t, on_ecore_event, NULL);
+
return self;
}
return self;
}
@@
-66,7
+70,7
@@
static VALUE c_delete (VALUE self)
return Qnil;
}
return Qnil;
}
-int on_ecore_event (void *data, int type, void *event)
+
static
int on_ecore_event (void *data, int type, void *event)
{
VALUE handler, klass, obj, argv[1], res;
int handler_type, len, i;
{
VALUE handler, klass, obj, argv[1], res;
int handler_type, len, i;
@@
-108,7
+112,8
@@
int on_ecore_event (void *data, int type, void *event)
if (type == ECORE_EVENT_SIGNAL_EXIT && !called)
ecore_main_loop_quit ();
if (type == ECORE_EVENT_SIGNAL_EXIT && !called)
ecore_main_loop_quit ();
- return 0;
+ /* call other event handlers, too */
+ return 1;
}
VALUE c_ev_generic_init (VALUE self, VALUE event)
}
VALUE c_ev_generic_init (VALUE self, VALUE event)