aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libraries/winFang.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libraries/winFang.c17
1 files changed, 16 insertions, 1 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;