aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz/chat.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-06 23:24:58 +1000
committerDavid Walter Seikel2014-05-06 23:24:58 +1000
commit12fcc3075e3eb035e3d7fefb30c1d087a312bc48 (patch)
treec9ecae7adcac2bd24aba3467f04bc6726ac10492 /src/extantz/chat.c
parentWinFangs use an Elm image instead of a rectangle for their background, and ot... (diff)
downloadSledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.zip
SledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.tar.gz
SledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.tar.bz2
SledjHamr-12fcc3075e3eb035e3d7fefb30c1d087a312bc48.tar.xz
All winFangs now get a complimentary box.
Diffstat (limited to '')
-rw-r--r--src/extantz/chat.c15
1 files changed, 4 insertions, 11 deletions
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)
14{ 14{
15 winFang *me; 15 winFang *me;
16 Widget *wid; 16 Widget *wid;
17 Evas_Object *bx, *en; 17 Evas_Object *en;
18 18
19 me = winFangAdd(ourGlobals->mainWindow, 30, 520, ourGlobals->win_w / 3, ourGlobals->win_h / 3, "chatter box", "chat"); 19 me = winFangAdd(ourGlobals->mainWindow, 30, 520, ourGlobals->win_w / 3, ourGlobals->win_h / 3, "chatter box", "chat");
20 20
21 bx = eo_add(ELM_OBJ_BOX_CLASS, me->win,
22 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
23 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL)
24 );
25 elm_win_resize_object_add(me->win, bx);
26
27 en = eo_add(ELM_OBJ_ENTRY_CLASS, me->win, 21 en = eo_add(ELM_OBJ_ENTRY_CLASS, me->win,
28 elm_obj_entry_scrollable_set(EINA_TRUE), 22 elm_obj_entry_scrollable_set(EINA_TRUE),
29 elm_obj_entry_editable_set(EINA_FALSE), 23 elm_obj_entry_editable_set(EINA_FALSE),
@@ -32,7 +26,7 @@ winFang *chat_add(globals *ourGlobals)
32 evas_obj_visibility_set(EINA_TRUE) 26 evas_obj_visibility_set(EINA_TRUE)
33 ); 27 );
34 elm_object_text_set(en, "History is shown here"); 28 elm_object_text_set(en, "History is shown here");
35 elm_box_pack_end(bx, en); 29 elm_box_pack_end(me->box, en);
36 eo_unref(en); 30 eo_unref(en);
37 31
38 wid = widgetAdd(me, ELM_OBJ_ENTRY_CLASS, me->win, ""); 32 wid = widgetAdd(me, ELM_OBJ_ENTRY_CLASS, me->win, "");
@@ -41,10 +35,9 @@ winFang *chat_add(globals *ourGlobals)
41 elm_obj_entry_scrollable_set(EINA_TRUE), 35 elm_obj_entry_scrollable_set(EINA_TRUE),
42 elm_obj_entry_editable_set(EINA_TRUE) 36 elm_obj_entry_editable_set(EINA_TRUE)
43 ); 37 );
44 elm_box_pack_end(bx, wid->obj); 38 elm_box_pack_end(me->box, wid->obj);
45 39
46 evas_object_show(bx); 40 evas_object_show(me->box);
47 eo_unref(bx);
48 41
49 return me; 42 return me;
50} 43}