test_focus: Focus should to move layout's entry
authorAnand <anand.km@samsung.com>
Wed, 1 Jul 2015 02:31:26 +0000 (11:31 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Wed, 1 Jul 2015 02:31:26 +0000 (11:31 +0900)
Summary:
While going through the test_focus(focus 2-> give focus to layout "entry") code found
focus should move to layout's entry instead of entry outside the layout.
Just change the entry object in callback ;)

Test Plan: elementry_test-->focus2-->give focus to layout "entry".

Reviewers: cedric, Hermet

Differential Revision: https://phab.enlightenment.org/D2611

src/bin/test_focus.c

index d7cef02..2782299 100644 (file)
@@ -593,7 +593,7 @@ test_focus2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
 
    bt2 = elm_button_add(PARENT);
    elm_object_text_set(bt2, "Give focus to layout 'Entry'");
-   evas_object_smart_callback_add(bt2, "clicked", _focus_obj, en);
+   evas_object_smart_callback_add(bt2, "clicked", _focus_obj, en1);
    evas_object_size_hint_weight_set(bt2, EVAS_HINT_EXPAND, 0.0);
    evas_object_size_hint_align_set(bt2, EVAS_HINT_FILL, 0.5);
    elm_box_pack_end(bx, bt2);