diff options
author | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2017-05-20 20:46:49 +0200 |
---|---|---|
committer | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2017-05-20 20:46:49 +0200 |
commit | 43cb924faa26efd2f3eeb7da8c3b6e88f19aea8c (patch) | |
tree | feba63919dedad2fcfcf7c08da23f122a30b169d | |
parent | a5fae67e9c5550037a707bba92766ec8bd0457a7 (diff) | |
download | efl-43cb924faa26efd2f3eeb7da8c3b6e88f19aea8c.tar.gz |
efl_ui_focus_manager: fix valgrind warnings in the tests
-rw-r--r-- | src/tests/elementary/elm_test_focus_common.c | 11 | ||||
-rw-r--r-- | src/tests/elementary/focus_test.eo | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/tests/elementary/elm_test_focus_common.c b/src/tests/elementary/elm_test_focus_common.c index 5bf86382cd..ea0a640700 100644 --- a/src/tests/elementary/elm_test_focus_common.c +++ b/src/tests/elementary/elm_test_focus_common.c @@ -91,4 +91,15 @@ _focus_test_size(Eo *obj EINA_UNUSED, Focus_Test_Data *pd, Eina_Rectangle rect) pd->rect = rect; } + +EOLIAN static void +_focus_test_efl_gfx_geometry_get(Eo *obj EINA_UNUSED, Focus_Test_Data *pd, int *x, int *y, int *w, int *h) +{ + *x = pd->rect.x; + *y = pd->rect.y; + *w = pd->rect.w; + *h = pd->rect.h; +} + + #include "focus_test.eo.c" diff --git a/src/tests/elementary/focus_test.eo b/src/tests/elementary/focus_test.eo index 27dd193c4a..1ec326b25c 100644 --- a/src/tests/elementary/focus_test.eo +++ b/src/tests/elementary/focus_test.eo @@ -1,4 +1,4 @@ -class Focus.Test(Efl.Object, Efl.Ui.Focus.Object) { +class Focus.Test(Efl.Object, Efl.Ui.Focus.Object, Efl.Gfx) { methods { size { params { @@ -10,5 +10,6 @@ class Focus.Test(Efl.Object, Efl.Ui.Focus.Object) { Efl.Object.constructor; Efl.Ui.Focus.Object.focus_geometry { get; } Efl.Ui.Focus.Object.focus { set; } + Efl.Gfx.geometry { get; } } } |