aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_evas_snapshot.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-07-06 17:22:41 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-04 10:24:03 +0900
commit83a4c3e3e2c1503f32aff81b46cc9c486a35ebd2 (patch)
treeedf202cfad96ade122edd9913ffb3fb7c2d04de0 /src/bin/elementary/test_evas_snapshot.c
parentevas: Make all EO canvas objects visible by default (diff)
downloadefl-83a4c3e3e2c1503f32aff81b46cc9c486a35ebd2.tar.gz
elm_test: Remove calls to visible_set for EO objects
Diffstat (limited to 'src/bin/elementary/test_evas_snapshot.c')
-rw-r--r--src/bin/elementary/test_evas_snapshot.c25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/bin/elementary/test_evas_snapshot.c b/src/bin/elementary/test_evas_snapshot.c
index e1857ff417..245d330067 100644
--- a/src/bin/elementary/test_evas_snapshot.c
+++ b/src/bin/elementary/test_evas_snapshot.c
@@ -32,8 +32,7 @@ _image_create(Eo *win, const char *path)
efl_file_set(efl_added, path, NULL),
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
efl_gfx_size_hint_weight_set(efl_added, 1.0, 1.0),
- efl_gfx_size_hint_min_set(efl_added, 20, 20),
- efl_gfx_visible_set(efl_added, 1));
+ efl_gfx_size_hint_min_set(efl_added, 20, 20));
}
static void
@@ -152,8 +151,7 @@ test_evas_snapshot(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
efl_gfx_filter_data_set(efl_added, "radius", "tonumber(5)", EINA_TRUE),
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
efl_gfx_size_hint_weight_set(efl_added, 1.0, 1.0),
- efl_pack_grid(grid, efl_added, 1, 1, GRID_SIZE - 2, GRID_SIZE - 2),
- efl_gfx_visible_set(efl_added, 1));
+ efl_pack_grid(grid, efl_added, 1, 1, GRID_SIZE - 2, GRID_SIZE - 2));
// Objects above snapshot
// 1. Opaque rect, not changing
@@ -182,48 +180,41 @@ test_evas_snapshot(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack_grid(grid, efl_added, 0, GRID_SIZE, GRID_SIZE, 1),
- efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, _radius_set, win),
- efl_gfx_visible_set(efl_added, 1));
+ efl_event_callback_add(efl_added, EFL_UI_SLIDER_EVENT_CHANGED, _radius_set, win));
box = efl_add(EFL_UI_BOX_CLASS, win,
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
- efl_pack_grid(grid, efl_added, 0, GRID_SIZE + 1, GRID_SIZE, 1),
- efl_gfx_visible_set(efl_added, 1));
+ efl_pack_grid(grid, efl_added, 0, GRID_SIZE + 1, GRID_SIZE, 1));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Toggle animation"),
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
- efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _anim_toggle, win),
- efl_gfx_visible_set(efl_added, 1));
+ efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _anim_toggle, win));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Save to file"),
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
- efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _save_image, win),
- efl_gfx_visible_set(efl_added, 1));
+ efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _save_image, win));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Map"),
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
- efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _toggle_map, win),
- efl_gfx_visible_set(efl_added, 1));
+ efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _toggle_map, win));
efl_add(EFL_UI_BUTTON_CLASS, win,
efl_text_set(efl_added, "Close"),
efl_gfx_size_hint_align_set(efl_added, -1.0, -1.0),
efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.0),
efl_pack(box, efl_added),
- efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _close_do, win),
- efl_gfx_visible_set(efl_added, 1));
+ efl_event_callback_add(efl_added, EFL_UI_EVENT_CLICKED, _close_do, win));
efl_key_wref_set(win, "snap", snap);
efl_key_wref_set(win, "grid", grid);
efl_gfx_size_set(win, 400, 400);
- efl_gfx_visible_set(win, 1);
}