diff --git a/legacy/elementary/src/bin/test_flip.c b/legacy/elementary/src/bin/test_flip.c index 2f5c3a2275..74f850f8e1 100644 --- a/legacy/elementary/src/bin/test_flip.c +++ b/legacy/elementary/src/bin/test_flip.c @@ -206,7 +206,7 @@ test_flip(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info _ void test_flip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { - Evas_Object *win, *bg, *bx, *bx2, *fl, *o, *bt, *tb, *li; + Evas_Object *win, *bg, *bx, *bx2, *fl, *o, *bt, *tb, *li, *en; char buf[PATH_MAX]; win = elm_win_add(NULL, "flip2", ELM_WIN_BASIC); @@ -269,19 +269,46 @@ test_flip2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info elm_flip_content_front_set(fl, o); evas_object_show(o); + + en = elm_scrolled_entry_add(win); + elm_scrolled_entry_line_wrap_set(en, EINA_FALSE); + snprintf(buf, sizeof(buf), + "This is an entry widget in this window that
" + "uses markup like this for styling and
" + "formatting like this, as well as
" + "links in the text, so enter text
" + "in here to edit it. By the way, links are
" + "called Anchors so you will need
" + "to refer to them this way.
" + "
" + + "Also you can stick in items with (relsize + ascent): " + "" + " (full) " + "" + " (to the left)
" + + "Also (size + ascent): " + "" + " (full) " + "" + " (before this)
" + + "And as well (absize + ascent): " + "" + " (full) " + "" + " or even paths to image files on disk too like: " + "" + " ... end." + , PACKAGE_DATA_DIR + ); + elm_scrolled_entry_entry_set(en, buf); + evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - li = elm_list_add(win); - evas_object_size_hint_align_set(li, EVAS_HINT_FILL, EVAS_HINT_FILL); - evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - - elm_list_item_append(li, "This is a list", NULL, NULL, NULL, NULL); - elm_list_item_append(li, "Second item", NULL, NULL, NULL, NULL); - elm_list_item_append(li, "3rd", NULL, NULL, NULL, NULL); - - elm_list_go(li); - - elm_flip_content_back_set(fl, li); - evas_object_show(li); + elm_flip_content_back_set(fl, en); + evas_object_show(en); evas_object_show(fl);