Re: [gtk-list] [Q] Password entry
- From: Jean-François BUTKIEWICZ <jfbutkiewicz nordnet fr>
- To: <gtk-list redhat com>
- Subject: Re: [gtk-list] [Q] Password entry
- Date: Thu, 13 Apr 2000 15:49:59 +0200
> 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]