gtk_entry and passwords...



Hi all,

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?

The first inkling I had was to set the fg color to the same thing as
the bg color in the style, then set the style on the gtk_entry
widget.  I managed to do that just fine, but I still get some really
light grey text that is still quite readable. (though when I select
it, you can't see anything...) I've tried tinkering with the other
colors in the style struct like text[]. black, white pretty much
everything including the varioius gc parts.  Nothing seems to make any
change.  Does anyone understand completely what all the various colors
and gc's are for?  I think that info might get me a little closer to
making it work...

The second though I had is a helluva lot more elegant, but it doesn't
work at all... I set the style->klass->draw_string function pointer to
my own function that has the same prototype, but doesn't do anything.
Seems that should work, but it doesn't... I'm guessing someone is
really going to have to put that GtkStyle mechanism to some serious
testing before it'll be useful. (unless that's not how it should
work... if someone knows, please enlighten me.. :)

Thanks.

-- 
					-Otto.



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