diff src/win32/wspell.h @ 4862:0fe2ffdb7906

[gaim-migrate @ 5189] Win32 interface to gtkspell. If Aspell installation is found Gaim will load and use gtkspell dll, if not dummy funcs are used. committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Sat, 22 Mar 2003 18:38:25 +0000
parents
children 9657e243d001
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/win32/wspell.h	Sat Mar 22 18:38:25 2003 +0000
@@ -0,0 +1,34 @@
+/*
+ *  wspell.h
+ *
+ *  Author: Herman Bloggs <hermanator12002@yahoo.com>
+ *  Date: March, 2003
+ *  Description: Windows Gaim gtkspell interface.
+ */
+#ifndef _WSPELL_H_
+#define _WSPELL_H_
+#include <gtkspell/gtkspell.h>
+
+extern void wgaim_gtkspell_init();
+
+extern GtkSpell* (*wgaim_gtkspell_new_attach)(GtkTextView*, const gchar*, GError**);
+#define gtkspell_new_attach( view, lang, error ) \
+wgaim_gtkspell_new_attach( ## view ##, ## lang ##, ## error ## )
+
+extern GtkSpell* (*wgaim_gtkspell_get_from_text_view)(GtkTextView*);
+#define gtkspell_get_from_text_view( view ) \
+wgaim_gtkspell_get_from_text_view( ## view ## )
+
+extern void (*wgaim_gtkspell_detach)(GtkSpell*);
+#define gtkspell_detach( spell ) \
+wgaim_gtkspell_detach( ## spell ## )
+
+extern gboolean (*wgaim_gtkspell_set_language)(GtkSpell*,	const gchar*, GError**);
+#define gtkspell_set_language( spell, lang, error ) \
+wgaim_gtkspell_set_language( ## spell ##, ## lang ##, ## error ## )
+
+extern void (*wgaim_gtkspell_recheck_all)(GtkSpell*);
+#define gtkspell_recheck_all( spell ) \
+wgaim_gtkspell_recheck_all( ## spell ## )
+
+#endif /* _WSPELL_H_ */