gspell provides a flexible API to implement the spell checking in a GTK+ application.