E desklock: Fix password replace char to work correctly with unicode.

The correct fix would actually be using textblock there and not TEXT object
as we already have edje_entry... I guess whoever did it had it motives
(or possibly edje_entry didn't exist yet at that time). But anyhow,
edje_entry already supports replacement chars.

SVN revision: 65519
This commit is contained in:
Tom Hacohen 2011-11-22 15:59:54 +00:00
parent 9a613de952
commit c2b3f17a6f
1 changed files with 4 additions and 2 deletions

View File

@ -559,13 +559,15 @@ _e_desklock_cb_mouse_move(void *data __UNUSED__, int type __UNUSED__, void *even
static void
_e_desklock_passwd_update(void)
{
char passwd_hidden[PASSWD_LEN] = "", *p, *pp;
int len, i;
char passwd_hidden[PASSWD_LEN] = "", *pp;
E_Desklock_Popup_Data *edp;
Eina_List *l;
if (!edd) return;
for (p = edd->passwd, pp = passwd_hidden; *p; p++, pp++)
len = eina_unicode_utf8_get_len(edd->passwd);
for (i = 0, pp = passwd_hidden ; i < len ; i++, pp++)
*pp = '*';
*pp = 0;