restricting data entry (filters?)



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.

-- 
 .''`.      Carl B. Constantine
: :' :     duckwing duckwing ca
`. `'    GnuPG: 135F FC30 7A02 B0EB 61DB  34E3 3AF1 DC6C 9F7A 3FF8
  `-  Debian GNU/Linux -- The power of freedom
  "Claiming that your operating system is the best in the world because more
  people use it is like saying McDonalds makes the best food in the world."



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