From f93abeb98d74b5dea266347e668aa6f88e96d83b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 4 May 2014 22:35:22 +1000 Subject: Combine eo_add() and eo_do(), plus related cleanups. --- src/extantz/chat.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/extantz/chat.c') diff --git a/src/extantz/chat.c b/src/extantz/chat.c index d71e8bb..d5e492e 100644 --- a/src/extantz/chat.c +++ b/src/extantz/chat.c @@ -18,22 +18,20 @@ fangWin *chat_add(globals *ourGlobals) me = fang_win_add(ourGlobals); - bx = eo_add(ELM_OBJ_BOX_CLASS, me->win); - eo_do(bx, + bx = eo_add(ELM_OBJ_BOX_CLASS, me->win, evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL) ); elm_win_resize_object_add(me->win, bx); - en = eo_add(ELM_OBJ_ENTRY_CLASS, me->win); - elm_object_text_set(en, "History is shown here"); - eo_do(en, + en = eo_add(ELM_OBJ_ENTRY_CLASS, me->win, elm_obj_entry_scrollable_set(EINA_TRUE), elm_obj_entry_editable_set(EINA_FALSE), evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL), evas_obj_visibility_set(EINA_TRUE) ); + elm_object_text_set(en, "History is shown here"); elm_box_pack_end(bx, en); eo_unref(en); -- cgit v1.1