summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-09-07 17:49:59 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-09-07 18:10:47 +0900
commitc3bb1a225703a5c822d6f7a5c7321188d8ba9e67 (patch)
treef5f23a98e1bfb3ce99de78e45bf1e7b9126c7d1d /src/bin
parent41b5521077578831a6c15c388f353b56954bd7cd (diff)
test_popup: Renamed focus highlight button name correctly.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_genlist.c58
-rw-r--r--src/bin/test_popup.c2
2 files changed, 29 insertions, 31 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index 64cf28dc6..059a84c89 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -4261,8 +4261,7 @@ _test_genlist_focus_option_panel_create(Evas_Object *win, Evas_Object *bx,
4261{ 4261{
4262 Evas_Object *fr = NULL, *bx_opt = NULL, *chk = NULL; 4262 Evas_Object *fr = NULL, *bx_opt = NULL, *chk = NULL;
4263 Evas_Object *bx_mv = NULL, *rd = NULL, *rdg = NULL; 4263 Evas_Object *bx_mv = NULL, *rd = NULL, *rdg = NULL;
4264 Evas_Object *bx_btn = NULL, *btn_focus = NULL, *btn_sel = NULL, 4264 Evas_Object *btn_box = NULL, *btn = NULL;
4265 *btn_dis = NULL;
4266 4265
4267 fr = elm_frame_add(bx); 4266 fr = elm_frame_add(bx);
4268 elm_object_text_set(fr, "Options"); 4267 elm_object_text_set(fr, "Options");
@@ -4378,34 +4377,33 @@ _test_genlist_focus_option_panel_create(Evas_Object *win, Evas_Object *bx,
4378 elm_box_pack_end(bx, fr); 4377 elm_box_pack_end(bx, fr);
4379 evas_object_show(fr); 4378 evas_object_show(fr);
4380 4379
4381 bx_btn = elm_box_add(fr); 4380 btn_box = elm_box_add(fr);
4382 elm_object_content_set(fr, bx_btn); 4381 elm_object_content_set(fr, btn_box);
4383 evas_object_show(bx_btn); 4382 evas_object_show(btn_box);
4384 4383
4385 btn_focus = elm_button_add(bx_btn); 4384 btn = elm_button_add(btn_box);
4386 elm_object_text_set(btn_focus, "Focus 2nd Item after 1.5 seconds."); 4385 elm_object_text_set(btn, "Focus 2nd Item after 1.5 seconds.");
4387 evas_object_size_hint_weight_set(btn_focus, 0.0, EVAS_HINT_EXPAND); 4386 evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
4388 evas_object_size_hint_align_set(btn_focus, EVAS_HINT_FILL, EVAS_HINT_FILL); 4387 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
4389 elm_box_pack_end(bx_btn, btn_focus); 4388 elm_box_pack_end(btn_box, btn);
4390 evas_object_show(btn_focus); 4389 evas_object_show(btn);
4391 4390 evas_object_smart_callback_add(btn, "clicked", _focus_btn_cb, it_2);
4392 btn_sel = elm_button_add(bx_btn); 4391
4393 elm_object_text_set(btn_sel, "Select 2nd Item after 1.5 seconds."); 4392 btn = elm_button_add(btn_box);
4394 evas_object_size_hint_weight_set(btn_sel, 0.0, EVAS_HINT_EXPAND); 4393 elm_object_text_set(btn, "Select 2nd Item after 1.5 seconds.");
4395 evas_object_size_hint_align_set(btn_sel, EVAS_HINT_FILL, EVAS_HINT_FILL); 4394 evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
4396 elm_box_pack_end(bx_btn, btn_sel); 4395 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
4397 evas_object_show(btn_sel); 4396 elm_box_pack_end(btn_box, btn);
4398 4397 evas_object_show(btn);
4399 btn_dis = elm_button_add(bx_btn); 4398 evas_object_smart_callback_add(btn, "clicked", _sel_btn_cb, it_2);
4400 elm_object_text_set(btn_dis, "Disable 1st Item."); 4399
4401 evas_object_size_hint_weight_set(btn_dis, 0.0, EVAS_HINT_EXPAND); 4400 btn = elm_button_add(btn_box);
4402 evas_object_size_hint_align_set(btn_dis, EVAS_HINT_FILL, EVAS_HINT_FILL); 4401 elm_object_text_set(btn, "Disable 1st Item.");
4403 elm_box_pack_end(bx_btn, btn_dis); 4402 evas_object_size_hint_weight_set(btn, 0.0, EVAS_HINT_EXPAND);
4404 evas_object_show(btn_dis); 4403 evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
4405 4404 elm_box_pack_end(btn_box, btn);
4406 evas_object_smart_callback_add(btn_focus, "clicked", _focus_btn_cb, it_2); 4405 evas_object_show(btn);
4407 evas_object_smart_callback_add(btn_sel, "clicked", _sel_btn_cb, it_2); 4406 evas_object_smart_callback_add(btn, "clicked", _dis_btn_cb, it_0);
4408 evas_object_smart_callback_add(btn_dis, "clicked", _dis_btn_cb, it_0);
4409} 4407}
4410 4408
4411void 4409void
diff --git a/src/bin/test_popup.c b/src/bin/test_popup.c
index 5b5caf866..0685a7c1d 100644
--- a/src/bin/test_popup.c
+++ b/src/bin/test_popup.c
@@ -716,7 +716,7 @@ test_popup(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
716 evas_object_show(list); 716 evas_object_show(list);
717 717
718 check = elm_check_add(box); 718 check = elm_check_add(box);
719 elm_object_text_set(check, "Enable Focus"); 719 elm_object_text_set(check, "Enable Focus Highlight");
720 evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, 0.0); 720 evas_object_size_hint_weight_set(check, EVAS_HINT_EXPAND, 0.0);
721 evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL); 721 evas_object_size_hint_align_set(check, EVAS_HINT_FILL, EVAS_HINT_FILL);
722 elm_box_pack_end(box, check); 722 elm_box_pack_end(box, check);