Re: GtkEntry only for numbers

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.


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