Re: GtkEntry input filters
- From: Billy O'Connor <billyoc gnuyork org>
- To: gtk-list gnome org
- Subject: Re: GtkEntry input filters
- Date: Fri, 16 Jan 2004 13:51:25 -0500
"Carl B. Constantine" <duckwing duckwing ca> writes:
> I have a GtkEntry in my app where the only thing I want to be able to
> input is numbers. I don't want letters or characters like (, * &, -, ),
> and so forth.
> Anyone know how to write such an input filter?
Add a signal handler for focus_out_event, and call isnum() for the
chars in the entry text.
] [Thread Prev