projects
/
ruby-ecore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Build system fixes.
[ruby-ecore.git]
/
src
/
ecore
/
rb_idler.c
diff --git
a/src/ecore/rb_idler.c
b/src/ecore/rb_idler.c
index b890ef59a49b5726523e610a134c68ee03c33524..2549c71b85126ff7bb571202538b57e14a5e1453 100644
(file)
--- a/
src/ecore/rb_idler.c
+++ b/
src/ecore/rb_idler.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_idler.c
50 2004-08-01 10:18:39
Z tilman $
+ * $Id: rb_idler.c
67 2004-08-12 20:08:13
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-62,6
+62,14
@@
static void c_free (RbIdler *idler)
free (idler);
}
free (idler);
}
+/*
+ * call-seq:
+ * Ecore::Idler.new { block } => idler
+ *
+ * Creates an Ecore::Idler object.
+ * When Ecore is idle, the specified block will be called.
+ * If the block returns false, the idler is deleted.
+ */
static VALUE c_new (VALUE klass)
{
VALUE self;
static VALUE c_new (VALUE klass)
{
VALUE self;
@@
-75,6
+83,7
@@
static VALUE c_new (VALUE klass)
ecore_init ();
idler->callback = rb_block_proc ();
ecore_init ();
idler->callback = rb_block_proc ();
+ idler->deleted = false;
idler->real = ecore_idler_add (on_idler, idler);
rb_obj_call_init (self, 0, NULL);
idler->real = ecore_idler_add (on_idler, idler);
rb_obj_call_init (self, 0, NULL);
@@
-82,6
+91,12
@@
static VALUE c_new (VALUE klass)
return self;
}
return self;
}
+/*
+ * call-seq:
+ * idler.delete => nil
+ *
+ * Deletes <i>idler</i>.
+ */
static VALUE c_delete (VALUE self)
{
GET_OBJ (self, RbIdler, idler);
static VALUE c_delete (VALUE self)
{
GET_OBJ (self, RbIdler, idler);