diff options
Diffstat (limited to 'input-methods/sulekha/src/sulekhaspell.h~')
-rw-r--r-- | input-methods/sulekha/src/sulekhaspell.h~ | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/input-methods/sulekha/src/sulekhaspell.h~ b/input-methods/sulekha/src/sulekhaspell.h~ new file mode 100644 index 0000000..e7b1b49 --- /dev/null +++ b/input-methods/sulekha/src/sulekhaspell.h~ @@ -0,0 +1,45 @@ +/* sulekhaspell - a spell-checking addon for GTK's TextView widget based on sulekhaspell by Evan Martin. + */ + + +#ifndef SULEKHASPELL_H +#define SULEKHASPELL_H + +#define SULEKHASPELL_ERROR sulekhaspell_error_quark() + +typedef enum { + SULEKHASPELL_ERROR_BACKEND, +} SulekhaSpellError; + +GQuark sulekhaspell_error_quark(); + +typedef struct _SulekhaSpell SulekhaSpell; + +/* the idea is to have a SulekhaSpell object that is analagous to the + * GtkTextBuffer-- it lives as an attribute of the GtkTextView but + * it can be referred to directly. */ + +SulekhaSpell* sulekhaspell_new_attach(GtkTextView *view, + const gchar *lang, GError **error); +SulekhaSpell* sulekhaspell_get_from_text_view(GtkTextView *view); +void sulekhaspell_detach(SulekhaSpell *spell); + +gboolean sulekhaspell_set_language(SulekhaSpell *spell, + const gchar *lang, GError **error); + +void sulekhaspell_recheck_all(SulekhaSpell *spell); + + +/*** old API-- deprecated. ***/ +#ifndef SULEKHASPELL_DISABLE_DEPRECATED +#define SULEKHASPELL_ERROR_PSPELL SULEKHASPELL_ERROR_BACKEND + +int sulekhaspell_init(); +/* no-op. */ + +void sulekhaspell_attach(GtkTextView *view); +/* sulekhaspell_new_attach(view, NULL, NULL); */ + +#endif /* SULEKHASPELL_DISABLE_DEPRECATED */ + +#endif /* SULEKHASPELL_H */ |