summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/test_entry.c30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/bin/test_entry.c b/src/bin/test_entry.c
index 5e607122f..7f7ea00a8 100644
--- a/src/bin/test_entry.c
+++ b/src/bin/test_entry.c
@@ -303,7 +303,7 @@ _end_hide_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNU
303void 303void
304test_entry_scrolled(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 304test_entry_scrolled(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
305{ 305{
306 Evas_Object *win, *bx, *bx2, *bx3, *bt, *en, *en_p, *sp, *entry; 306 Evas_Object *win, *bx, *bx2, *bx3, *bx4, *bt, *en, *en_p, *sp, *entry, *label;
307 static Elm_Entry_Filter_Accept_Set digits_filter_data, digits_filter_data2; 307 static Elm_Entry_Filter_Accept_Set digits_filter_data, digits_filter_data2;
308 static Elm_Entry_Filter_Limit_Size limit_filter_data, limit_filter_data2; 308 static Elm_Entry_Filter_Limit_Size limit_filter_data, limit_filter_data2;
309 309
@@ -462,7 +462,33 @@ test_entry_scrolled(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
462 evas_object_show(en_p); 462 evas_object_show(en_p);
463 elm_box_pack_end(bx, en_p); 463 elm_box_pack_end(bx, en_p);
464 464
465 /* entry with icon/end widgets*/ 465 /* Last password show entry */
466 bx4 = elm_box_add(win);
467 evas_object_size_hint_weight_set(bx4, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
468 evas_object_show(bx4);
469
470 label = elm_label_add(bx4);
471 elm_object_text_set(label, "<b>Last password show entry</b>");
472 evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
473 elm_box_pack_end(bx4, label);
474 evas_object_show(label);
475
476 en = elm_entry_add(bx4);
477 elm_entry_scrollable_set(en, EINA_TRUE);
478 evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0);
479 evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5);
480 elm_scroller_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
481 elm_entry_password_set(en, EINA_TRUE);
482 elm_object_text_set(en, "Last password show");
483 elm_entry_single_line_set(en, EINA_TRUE);
484 edje_password_show_last_set(EINA_TRUE);
485 edje_password_show_last_timeout_set(-1);
486 evas_object_show(en);
487
488 elm_box_pack_end(bx4, en);
489 elm_box_pack_end(bx, bx4);
490
491 /* entry with icon/end widgets */
466 entry = elm_entry_add(win); 492 entry = elm_entry_add(win);
467 elm_entry_scrollable_set(entry, EINA_TRUE); 493 elm_entry_scrollable_set(entry, EINA_TRUE);
468 elm_scroller_policy_set(entry, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF); 494 elm_scroller_policy_set(entry, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);