 |
| Never Seen the Sunlight |
Joined: Thu Mar 24, 2011 2:10 pm Posts: 324 Location: Sydney, Australia
|
|
This is not inbuilt into GtkEntry as at its base level all input is valid. If you want to define a GtkEntry that is text only you will need to code this additional functionality in yourself (the string validator and storage of the old value). If you are doing this repeatedly then you may want to subclass GtkEntry as a custom widget. Be careful; however, as a character text only widget can deem as invalid text that is more appropriately written with numerical values; e.g. in formal English writing, large values are written numerically rather than in full.
|
|