gspell provides a flexible API to add spell checking to a GTK+ application.