summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_events.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-29 20:03:16 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-30 10:48:24 +0900
commitbd5b76508b0b3bdc5d92f5f7db9741c100d47d3c (patch)
tree2e16d88bf93fde807e8b06e0bfe1c9e0f518adbd /src/bin/elementary/test_events.c
parent8803040484721c15e5a7f48f4373b38d41d9d42e (diff)
efl: Introduce interface Efl.Dup
A few classes allow their objects to be duplicated, so they should all use the same interface. Also, rename VG's dup to copy_from as it's not conforming to the definition of dup.
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_events.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/elementary/test_events.c b/src/bin/elementary/test_events.c
index c6a3ca5a0e..30831e8329 100644
--- a/src/bin/elementary/test_events.c
+++ b/src/bin/elementary/test_events.c
@@ -22,7 +22,7 @@ _pointer_down(void *data, const Efl_Event *ev)
22 testdata *td = data; 22 testdata *td = data;
23 td->down = 1; 23 td->down = 1;
24 efl_unref(td->evdown); 24 efl_unref(td->evdown);
25 td->evdown = efl_input_dup(ev->info); 25 td->evdown = efl_dup(ev->info);
26} 26}
27 27
28static void 28static void
@@ -30,7 +30,7 @@ _pointer_move(void *data, const Efl_Event *ev)
30{ 30{
31 testdata *td = data; 31 testdata *td = data;
32 efl_unref(td->evmove); 32 efl_unref(td->evmove);
33 td->evmove = efl_input_dup(ev->info); 33 td->evmove = efl_dup(ev->info);
34} 34}
35 35
36static void 36static void
@@ -39,7 +39,7 @@ _pointer_up(void *data, const Efl_Event *ev)
39 testdata *td = data; 39 testdata *td = data;
40 td->down = 0; 40 td->down = 0;
41 efl_unref(td->evup); 41 efl_unref(td->evup);
42 td->evup = efl_input_dup(ev->info); 42 td->evup = efl_dup(ev->info);
43} 43}
44 44
45static void 45static void
@@ -64,7 +64,7 @@ _key_down(void *data, const Efl_Event *ev)
64 if (!efl_input_fake_get(ev->info)) 64 if (!efl_input_fake_get(ev->info))
65 { 65 {
66 efl_unref(td->evkeydown); 66 efl_unref(td->evkeydown);
67 td->evkeydown = efl_input_dup(ev->info); 67 td->evkeydown = efl_dup(ev->info);
68 } 68 }
69} 69}
70 70
@@ -84,7 +84,7 @@ _key_up(void *data, const Efl_Event *ev)
84 if (!efl_input_fake_get(ev->info)) 84 if (!efl_input_fake_get(ev->info))
85 { 85 {
86 efl_unref(td->evkeyup); 86 efl_unref(td->evkeyup);
87 td->evkeyup = efl_input_dup(ev->info); 87 td->evkeyup = efl_dup(ev->info);
88 } 88 }
89 89
90 if (td->f) efl_future_cancel(td->f); 90 if (td->f) efl_future_cancel(td->f);