Efl.Loop.Timer.interval is a constructor property
authorXavi Artigas <xavierartigas@yahoo.es>
Fri, 18 Jan 2019 16:05:05 +0000 (17:05 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:18 +0000 (14:20 +0900)
Summary:
If you don't set the interval during construction, construction fails
so there's no chance to set it later.
We either change that behavior (is it really needed? can't we just set some
default during construction and override it later?) or properly mark this
property as a construction-time property with this patch.

Test Plan: Nothing changes, this will only have effect once bindings start using it.

Reviewers: cedric, zmike, bu5hm4n, q66

Reviewed By: cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7691

src/lib/ecore/efl_loop_timer.eo

index 78e1383..eae195b 100644 (file)
@@ -59,6 +59,9 @@ class Efl.Loop_Timer extends Efl.Loop_Consumer
    events {
       tick: void; [[Event triggered when the specified time as passed.]]
    }
+   constructors {
+      .interval;
+   }
    implements {
       Efl.Object.constructor;
       Efl.Object.destructor;