Re: [gtk-list] [Q] Password entry



> Dear All,
hi
>
> appologies in advance is I'm asking a FAQ.
>
> How do I write a dialog that takes a password from the
> user and (obviously) only shows *'s for the characters
> typed by the user?
>
I think that you can use a dialog box with a gtk_entry and set the
visibility to false with the function :
gtk_entry_set_visibility(GtkEntry *entry, gboolean visible).
Setting visible to FALSE replace all caracters of the entry to a '*'
The gtk_entry_get_text or better gtk_editable_get_chars function may be use
to read the entry ...

> TIA
I hope that it will be a good answer to you :-°

>
> Criag.
bye, JFB



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]