aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSangHyeon Lee <sh10233.lee@samsung.com>2016-03-30 17:33:31 +0900
committerSangHyeon Lee <sh10233.lee@samsung.com>2016-03-30 17:33:34 +0900
commit7b7e18115b5ad2d74c0e7367544caf28fdb99121 (patch)
treeb1d6ab4b547c3fbdc397ed5fbc717d15524d89ae
parentelm: Fix make distcheck... kindof (diff)
downloadefl-7b7e18115b5ad2d74c0e7367544caf28fdb99121.tar.gz
fix gengrid test cursor sample in elementary_test
content_box is useless and also it make recursive calcuation by adding win resize object which was already set by parent box. this patch removing useless content_box object and make Check Cursor works properly as it intended.
-rw-r--r--src/bin/elementary/test_gengrid.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/bin/elementary/test_gengrid.c b/src/bin/elementary/test_gengrid.c
index 4a106d53c4..709d08e76f 100644
--- a/src/bin/elementary/test_gengrid.c
+++ b/src/bin/elementary/test_gengrid.c
@@ -484,8 +484,7 @@ cursor_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
static void
cursor_bt_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
- Evas_Object *win, *box, *content_box, *hbox, *grid, *tg;
-
+ Evas_Object *win, *box, *hbox, *grid, *tg;
win = elm_win_util_standard_add("test cursor", "Test Cursor");
elm_win_autodel_set(win, EINA_TRUE);
@@ -494,14 +493,8 @@ cursor_bt_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
elm_win_resize_object_add(win, box);
evas_object_show(box);
- content_box = elm_box_add(win);
- evas_object_size_hint_weight_set(content_box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, content_box);
- elm_box_pack_end(box, content_box);
- evas_object_show(content_box);
-
grid = create_gengrid(win, 4);
- elm_box_pack_end(content_box, grid);
+ elm_box_pack_end(box, grid);
evas_object_show(grid);
hbox = elm_box_add(win);