123456|7890 - pressing backspace at current caret pos should delete number 6 and stay between 5 and 7. If it's different then it's bug. If you open an issue about it: write correct version of your gtk2, environment (linux distro etc) and attach example.