On Mon, Oct 07, 2013 at 10:38:01PM +0200, Sébastien Wilmet wrote: > The first step is to wrap enchant in GIO.
More precisely, here are the two classes from gtkhtml that can go in GIO: https://git.gnome.org/browse/gtkhtml/tree/components/editor/gtkhtml-spell-language.h https://git.gnome.org/browse/gtkhtml/tree/components/editor/gtkhtml-spell-checker.h Some API tweaks may be needed, but I think these features belong to GIO, not GTK+. We can also hide these features and adapt the GTK+ widgets directly, and add some widgets for the spell checking (a menu or a dialog window with the list of available languages, and a dialog window for the spell checking of a GtkTextView). But this would be less flexible, and custom widgets would need to use Enchant. Anyway, what can be extracted from GtkhtmlSpellLanguage is the decoding of language codes, fr_BE -> French (Belgium). I proposed last year to add functions in glib for doing that (it reads the iso-codes data). Even if this is not added to the public API, it can be useful to have this feature separately, so other projects can copy the code. The bug: https://bugzilla.gnome.org/show_bug.cgi?id=680876 Sébastien _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list