X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fecore%2Frb_idler.c;h=d03a5ba8f0abe34c7c65e0cd039f3b1f5315d6ca;hb=24e02ccf4db5b051cf133e8239db7cca8814b608;hp=05550fd6f9786584271e6be0babbb2edc1392f29;hpb=041804188a058aa7bbc76c81e4a816255a635f00;p=ruby-ecore.git diff --git a/src/ecore/rb_idler.c b/src/ecore/rb_idler.c index 05550fd..d03a5ba 100644 --- a/src/ecore/rb_idler.c +++ b/src/ecore/rb_idler.c @@ -1,7 +1,7 @@ /* - * $Id: rb_idler.c 60 2004-08-10 14:12:36Z tilman $ + * $Id: rb_idler.c 154 2004-12-09 18:49:18Z tilman $ * - * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) + * Copyright (C) 2004 ruby-ecore team (see AUTHORS) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -83,6 +83,7 @@ static VALUE c_new (VALUE klass) 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); @@ -114,6 +115,6 @@ void Init_Idler (void) { VALUE c = rb_define_class_under (mEcore, "Idler", rb_cObject); - rb_define_singleton_method (c, "new", c_new, 1); + rb_define_singleton_method (c, "new", c_new, 0); rb_define_method (c, "delete", c_delete, 0); }