-$Id: ChangeLog 83 2004-08-21 19:55:35Z tilman $
+$Id: ChangeLog 279 2005-03-13 14:32:25Z tilman $
+
+2005-03-13 Tilman Sauerbeck (tilman at code-monkey de)
+ * src/ecore/rb_timer.c: Implemented Timer#interval=
2004-08-21 Tilman Sauerbeck (tilman at code-monkey de)
* src/ecore/rb_ecore.c: Moved rb_define_attr() calls to
/*
- * $Id: rb_timer.c 267 2005-02-28 21:20:03Z tilman $
+ * $Id: rb_timer.c 279 2005-03-13 14:32:25Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
return timer->deleted ? Qtrue : Qfalse;
}
+static VALUE c_interval_set (VALUE self, VALUE interval)
+{
+ GET_OBJ (self, RbTimer, timer);
+
+ ecore_timer_interval_set (timer->real, NUM2DBL (interval));
+
+ return Qnil;
+}
+
void Init_Timer (void)
{
VALUE c = rb_define_class_under (mEcore, "Timer", rb_cObject);
rb_define_singleton_method (c, "new", c_new, 1);
rb_define_method (c, "delete", c_delete, 0);
rb_define_method (c, "deleted?", c_deleted_get, 0);
+ rb_define_method (c, "interval=", c_interval_set, 1);
}