From 12fcc3075e3eb035e3d7fefb30c1d087a312bc48 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 6 May 2014 23:24:58 +1000 Subject: All winFangs now get a complimentary box. --- src/extantz/chat.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/extantz/chat.c') diff --git a/src/extantz/chat.c b/src/extantz/chat.c index 4c18e53..c19b936 100644 --- a/src/extantz/chat.c +++ b/src/extantz/chat.c @@ -14,16 +14,10 @@ winFang *chat_add(globals *ourGlobals) { winFang *me; Widget *wid; - Evas_Object *bx, *en; + Evas_Object *en; me = winFangAdd(ourGlobals->mainWindow, 30, 520, ourGlobals->win_w / 3, ourGlobals->win_h / 3, "chatter box", "chat"); - 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_obj_entry_scrollable_set(EINA_TRUE), elm_obj_entry_editable_set(EINA_FALSE), @@ -32,7 +26,7 @@ winFang *chat_add(globals *ourGlobals) evas_obj_visibility_set(EINA_TRUE) ); elm_object_text_set(en, "History is shown here"); - elm_box_pack_end(bx, en); + elm_box_pack_end(me->box, en); eo_unref(en); wid = widgetAdd(me, ELM_OBJ_ENTRY_CLASS, me->win, ""); @@ -41,10 +35,9 @@ winFang *chat_add(globals *ourGlobals) elm_obj_entry_scrollable_set(EINA_TRUE), elm_obj_entry_editable_set(EINA_TRUE) ); - elm_box_pack_end(bx, wid->obj); + elm_box_pack_end(me->box, wid->obj); - evas_object_show(bx); - eo_unref(bx); + evas_object_show(me->box); return me; } -- cgit v1.1