diff options
Diffstat (limited to '')
-rw-r--r-- | src/extantz/chat.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/extantz/chat.c b/src/extantz/chat.c index d5e492e..e814842 100644 --- a/src/extantz/chat.c +++ b/src/extantz/chat.c | |||
@@ -35,19 +35,13 @@ fangWin *chat_add(globals *ourGlobals) | |||
35 | elm_box_pack_end(bx, en); | 35 | elm_box_pack_end(bx, en); |
36 | eo_unref(en); | 36 | eo_unref(en); |
37 | 37 | ||
38 | en = eo_add(ELM_OBJ_ENTRY_CLASS, me->win); | 38 | wid = widgetAdd(me, ELM_OBJ_ENTRY_CLASS, me->win, ""); |
39 | wid = widgetAdd(me); | ||
40 | wid->obj = en; | ||
41 | wid->on_del = _on_entry_del; | 39 | wid->on_del = _on_entry_del; |
42 | elm_object_text_set(en, ""); | 40 | eo_do(wid->obj, |
43 | eo_do(en, | ||
44 | elm_obj_entry_scrollable_set(EINA_TRUE), | 41 | elm_obj_entry_scrollable_set(EINA_TRUE), |
45 | elm_obj_entry_editable_set(EINA_TRUE), | 42 | elm_obj_entry_editable_set(EINA_TRUE) |
46 | evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), | ||
47 | evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL), | ||
48 | evas_obj_visibility_set(EINA_TRUE) | ||
49 | ); | 43 | ); |
50 | elm_box_pack_end(bx, en); | 44 | elm_box_pack_end(bx, wid->obj); |
51 | 45 | ||
52 | evas_object_show(bx); | 46 | evas_object_show(bx); |
53 | eo_unref(bx); | 47 | eo_unref(bx); |