[evolution/webkit-composer: 71/111] Add e_spell_checker_new()



commit c3fc085a8b13428d736026118e20dfff02e540d2
Author: Dan VrÃtil <dvratil redhat com>
Date:   Tue Aug 28 18:16:00 2012 +0200

    Add e_spell_checker_new()

 e-util/e-spell-checker.c |    7 +++++++
 e-util/e-spell-checker.h |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-spell-checker.c b/e-util/e-spell-checker.c
index f55a8ca..f10438b 100644
--- a/e-util/e-spell-checker.c
+++ b/e-util/e-spell-checker.c
@@ -346,6 +346,13 @@ e_spell_checker_init (ESpellChecker *checker)
 	checker->priv->broker = enchant_broker_init ();
 }
 
+ESpellChecker *
+e_spell_checker_new (void)
+{
+	return g_object_new (E_TYPE_SPELL_CHECKER, NULL);
+}
+
+
 typedef struct  {
 	ESpellChecker *checker;
 	GList *dicts;
diff --git a/e-util/e-spell-checker.h b/e-util/e-spell-checker.h
index c403ea1..3a38048 100644
--- a/e-util/e-spell-checker.h
+++ b/e-util/e-spell-checker.h
@@ -60,6 +60,8 @@ struct _ESpellCheckerClass {
 
 GType			e_spell_checker_get_type	(void);
 
+ESpellChecker *		e_spell_checker_new		(void);
+
 GList *			e_spell_checker_list_available_dicts
 							(ESpellChecker *checker);
 ESpellDictionary *	e_spell_checker_lookup_dictionary



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]