Re: [gtk-list] Re: gtk_entry and passwords...



On Thu, Oct 02, 1997 at 11:24:02AM -0700, Peter Mattis wrote:
> 
> Otto Hammersmith writes:
> >I'm trying to get a gtk_entry suitable for entering a password (i.e.,
> >no echoed text) and I can't seem to make it do just what I want.  Has
> >anyone out there managed to get it to work?
> 
> I would attach to the gtk_entry's "key_press_event" signal and munge
> the event.  Take a look at gtk_file_selection_key_press for an example
> of doing this. You could either change the event so that any key typed
> would insert a character such as "*", or you can consume the event so
> that nothing is displayed in the entry.
> 
> I've attached a real simple example of doing the former. Of course, it
> doesn't save the password around, so its not perfect, just an
> example. 
> 
> Peter 

That's part of the problem.. I kinda need it to keep the data around,
though, I can fix that I suppose. :)

So, the question is why didn't setting the colors work quite well
enough, and why didn't overriding draw_string work either?

-- 
					-Otto.



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