Re: GtkEntry only for numbers
- From: Havoc Pennington <hp redhat com>
- To: Ignacio Nodal <inodal teleline es>
- Cc: GTK-List <gtk-list gnome org>
- Subject: Re: GtkEntry only for numbers
- Date: 03 Mar 2001 18:45:04 -0500
Ignacio Nodal <inodal teleline es> writes:
>
> I want to use a GtkEntry widget, where the user should only enter float
> values.
> How can i avoid ilegal text-entries?
>
In addition to Flavio's suggestions, you can connect to the
insert_text signal and gtk_signal_emit_stop_by_name (entry,
"insert_text") if the text being inserted is something you don't want.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]