aboutsummaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-01-28 16:03:49 +0900
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-01-28 16:03:49 +0900
commit1d5a5322dfc5ad67c9d3c338d0622d736ade1554 (patch)
treeaa6e46545f216be92d97918b985d053c6c701b86 /reference
parentmono-examples: Adapt to latest syntax (diff)
downloadexamples-1d5a5322dfc5ad67c9d3c338d0622d736ade1554.tar.gz
efl-mono: Fix examples based on new https://phab.enlightenment.org/D7789
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/core/src/core_event.cs5
-rw-r--r--reference/csharp/core/src/core_idler.cs5
-rw-r--r--reference/csharp/core/src/core_poll.cs5
3 files changed, 3 insertions, 12 deletions
diff --git a/reference/csharp/core/src/core_event.cs b/reference/csharp/core/src/core_event.cs
index 2cb6d8e0..b0caac81 100644
--- a/reference/csharp/core/src/core_event.cs
+++ b/reference/csharp/core/src/core_event.cs
@@ -31,10 +31,7 @@ public class Example
mainloop.PollHighEvt += PollCb;
// This timer will control events fired by the main loop
- var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => {
- // Trigger every 100ms
- etimer.SetInterval(0.1);
- });
+ var timer = new Efl.LoopTimer(mainloop, 0.1);
timer.SetName("Timer");
// To count number of timer triggers
int tick_count = 0;
diff --git a/reference/csharp/core/src/core_idler.cs b/reference/csharp/core/src/core_idler.cs
index e8853e51..7e272796 100644
--- a/reference/csharp/core/src/core_idler.cs
+++ b/reference/csharp/core/src/core_idler.cs
@@ -34,10 +34,7 @@ public class Example
};
// Use a timer to exit the application
- var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => {
- // Trigger after 10ms
- etimer.SetInterval(0.01);
- });
+ var timer = new Efl.LoopTimer(mainloop, 0.01);
timer.TickEvt += (object sender, EventArgs e) => {
Console.WriteLine("TIMER: timer callback called, exiting.");
mainloop.Quit(new Eina.Value(0));
diff --git a/reference/csharp/core/src/core_poll.cs b/reference/csharp/core/src/core_poll.cs
index 3ecf7bc1..522a36aa 100644
--- a/reference/csharp/core/src/core_poll.cs
+++ b/reference/csharp/core/src/core_poll.cs
@@ -33,10 +33,7 @@ public class Example
};
// Use a timer to exit the application
- var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => {
- // Trigger after 30s
- etimer.SetInterval(30);
- });
+ var timer = new Efl.LoopTimer(mainloop, 30);
timer.TickEvt += (object sender, EventArgs e) => {
Console.WriteLine("\nTIMER: timer callback called, exiting.");
mainloop.Quit(new Eina.Value(0));