Re: How to disable pasting text in an entry.
- From: Havoc Pennington <hp redhat com>
- To: Anil <anil gdit iiit net>
- Cc: <gnome-devel-list gnome org>
- Subject: Re: How to disable pasting text in an entry.
- Date: 13 Aug 2002 18:46:30 -0400
Anil <anil gdit iiit net> writes:
>
> I have implemented an entry which functions like a password entry
> (MS Windows type) ie when the user types in anything the masking character
> '*' appears. But when the user pastes the text through mouse middle click,
> "key_press_event" is not triggered. So the text appears intact. How can i
> disable this? Disable the mouse event entirely or hide the text and show
> the masking character.
>
GtkEntry already supports password mode, and will handle the paste
case correctly. gtk_entry_set_visibility(), gtk_entry_set_invisible_char().
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]