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



Craig Emery wrote:
> 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?

Well, if you're using an entry widget for the person
to type their password in, you can use this:

gtk_entry_set_visibility(GTK_ENTRY(entry_widget), FALSE);

-- 
+-----------------------------------------------------+
| Jeff "Shippy" Shipman     E-Mail: shippy@cs.nmt.edu |
| Computer Science Major    ICQ: 1786493              |
| New Mexico Institute of Mining and Technology       |
| Homepage: http://www.nmt.edu/~shippy                |
+-----------------------------------------------------+



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