Edje, Elementary: Remove <password=off> tag when password mode is disabled
authorYoungbok Shin <youngb.shin@samsung.com>
Mon, 20 Jun 2016 12:11:25 +0000 (21:11 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 20 Jun 2016 12:11:25 +0000 (21:11 +0900)
commit14cbd23d29464a73d8853f4defb451abc50983d4
tree2d4ba8221a901512abfa119b31194a8b243300ef
parent72bb457bcb2b2209dfe0c2fcc076d53034ca012b
Edje, Elementary: Remove <password=off> tag when password mode is disabled

Summary:
When edje_password_show_last option is enabled, the edje_entry uses <password=off>
for showing last character. But, when password mode is disabled by the elm_entry,
<password=off> is remained in the text. It can cause some problems.

Because, there is no way to control password mode by API for the edje_entry.
The elm_entry can't remove <password=off> tag before getting text from the edje_entry.
So, the patch adds edje_object_part_text_hide_visible_password() function and
the elm_entry will use this when elm_layout_theme_apply() is called.
@fix

Test Plan:
1. Run "elementary_test".
2. Show "Entry Password" demo. (Newly added by this patch)
3. Password mode is enabled. Put some text.
4. Click "Show Password" check box to disable password mode.
5. Put more text.
6. Click "Hide Password" check box to enable password mode again.
7. See a character among the text is visible. (without this patch)

Reviewers: tasn, herdsman, cedric, jpeg, thiepha, raster

Reviewed By: raster

Subscribers: Blackmole, z-wony, woohyun

Differential Revision: https://phab.enlightenment.org/D3988
src/bin/elementary/test.c
src/bin/elementary/test_entry.c
src/lib/edje/edje_entry.c
src/lib/edje/edje_object.eo
src/lib/edje/edje_private.h
src/lib/edje/edje_util.c
src/lib/elementary/elm_entry.c