aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libraries/winFang.c17
-rw-r--r--src/purkle/purkle.c10
2 files changed, 16 insertions, 11 deletions
diff --git a/src/libraries/winFang.c b/src/libraries/winFang.c
index 0d1622d..b6ceee9 100644
--- a/src/libraries/winFang.c
+++ b/src/libraries/winFang.c
@@ -447,11 +447,25 @@ Widget *widgetAdd(winFang *win, char *type , char *title, int x, int y, int w, i
447 eo_key_data_set("Widget", result, NULL) 447 eo_key_data_set("Widget", result, NULL)
448 ); 448 );
449 449
450 if (strcmp(WT_ENTRY, type) == 0)
451 {
452 eo_do(result->obj,
453 elm_obj_entry_scrollable_set(EINA_TRUE),
454 elm_obj_entry_editable_set(EINA_TRUE)
455 );
456 }
457 else if (strcmp(WT_TEXTBOX, type) == 0)
458 {
459 eo_do(result->obj,
460 elm_obj_entry_scrollable_set(EINA_TRUE),
461 elm_obj_entry_editable_set(EINA_FALSE)
462 );
463 }
464
450 if (x < 0) 465 if (x < 0)
451 elm_layout_box_append(win->win, WF_BOX, result->obj); 466 elm_layout_box_append(win->win, WF_BOX, result->obj);
452 else 467 else
453 elm_grid_pack(win->grid, result->obj, x, y, w, h); 468 elm_grid_pack(win->grid, result->obj, x, y, w, h);
454 winFangCalcMinSize(win);
455 469
456 if (title) 470 if (title)
457 { 471 {
@@ -459,6 +473,7 @@ Widget *widgetAdd(winFang *win, char *type , char *title, int x, int y, int w, i
459 elm_object_text_set(result->obj, result->label); 473 elm_object_text_set(result->obj, result->label);
460 evas_object_name_set(result->obj, title); 474 evas_object_name_set(result->obj, title);
461 } 475 }
476 winFangCalcMinSize(win);
462 } 477 }
463 478
464 return result; 479 return result;
diff --git a/src/purkle/purkle.c b/src/purkle/purkle.c
index a9b1652..7d7e24d 100644
--- a/src/purkle/purkle.c
+++ b/src/purkle/purkle.c
@@ -15,17 +15,7 @@ static winFang *purkleAdd(winFang *parent, int w, int h, EPhysics_World *world)
15 me = winFangAdd(parent, 300, 26, w, h, "chatter box", "purkle", world); 15 me = winFangAdd(parent, 300, 26, w, h, "chatter box", "purkle", world);
16 16
17 history = widgetAdd(me, WT_TEXTBOX, "History is shown here", -1, -1, -1, -1); 17 history = widgetAdd(me, WT_TEXTBOX, "History is shown here", -1, -1, -1, -1);
18 eo_do(history->obj,
19 elm_obj_entry_scrollable_set(EINA_TRUE),
20 elm_obj_entry_editable_set(EINA_FALSE)
21 );
22
23 entry = widgetAdd(me, WT_ENTRY, "", -1, -1, -1, -1); 18 entry = widgetAdd(me, WT_ENTRY, "", -1, -1, -1, -1);
24 eo_do(entry->obj,
25 elm_obj_entry_scrollable_set(EINA_TRUE),
26 elm_obj_entry_editable_set(EINA_TRUE)
27 );
28
29 winFangCalcMinSize(me); 19 winFangCalcMinSize(me);
30 20
31 return me; 21 return me;