summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-04 13:19:44 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-04 13:19:44 +0900
commit0ba4645b0f457de9fc8b7f148ab7c11e56e2310d (patch)
tree9e8ff43db9945b99e19d8763da51866efc915ed3 /src/bin
parent6f5e1ac116a8439ab9211d27e5524ebcffccb7c7 (diff)
test_index.c: Internal refactoring. Reduce the window size and do not expand the button.
Now it looks nicer and still shows the index clipping sample.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_index.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bin/test_index.c b/src/bin/test_index.c
index 75bd296bb..62430a551 100644
--- a/src/bin/test_index.c
+++ b/src/bin/test_index.c
@@ -187,6 +187,8 @@ test_index(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
187 win = elm_win_util_standard_add("index", "Index"); 187 win = elm_win_util_standard_add("index", "Index");
188 elm_win_autodel_set(win, EINA_TRUE); 188 elm_win_autodel_set(win, EINA_TRUE);
189 evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api); 189 evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api);
190 evas_object_resize(win, 320, 270);
191 evas_object_show(win);
190 192
191 bxx = elm_box_add(win); 193 bxx = elm_box_add(win);
192 evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 194 evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -217,9 +219,6 @@ test_index(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
217 elm_object_disabled_set(bt, api->state == API_STATE_LAST); 219 elm_object_disabled_set(bt, api->state == API_STATE_LAST);
218 evas_object_show(bt); 220 evas_object_show(bt);
219 221
220 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
221
222
223 ck = elm_check_add(win); 222 ck = elm_check_add(win);
224 elm_object_text_set(ck, "Omit mode : "); 223 elm_object_text_set(ck, "Omit mode : ");
225 elm_object_style_set(ck, "toggle"); 224 elm_object_style_set(ck, "toggle");
@@ -260,8 +259,6 @@ test_index(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
260 evas_object_smart_callback_add(id, "changed", _index_changed_cb, NULL); 259 evas_object_smart_callback_add(id, "changed", _index_changed_cb, NULL);
261 evas_object_smart_callback_add(id, "selected", _index_selected_cb, NULL); 260 evas_object_smart_callback_add(id, "selected", _index_selected_cb, NULL);
262 elm_index_level_go(id, 0); 261 elm_index_level_go(id, 0);
263 evas_object_resize(win, 320, 480);
264 evas_object_show(win);
265} 262}
266 263
267/***********/ 264/***********/