Carl B. Constantine wrote:
I posted a note a while back about adding an "input filter" to a
GtkEntry widget. I recieved a couple of responces, but I don't think
they are what I need.
I want the user to only be able to type numbers in a GtkEntry field. I
don't want to have to check the value after the fact. One person came up
with declaring the field cast as an INT, that may work, but I have no
idea how to hook that into Glade (which is generating my source at
present) and thus into my app.
Does anyone have other ideas on how to do what I want?
Thanks.
You could connect a callback to the gtk_entry key-press-event that
monitors the typing and blocks any invalid characters with
gtk_entry_set_text(); (haven't tried it)
_______________________________________________
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list