[evolution/webkit-composer: 140/147] EEditorWidget: Add a read-only "spell-checker" property.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 140/147] EEditorWidget: Add a read-only "spell-checker" property.
- Date: Mon, 21 Jan 2013 02:21:54 +0000 (UTC)
commit ee93decdac2fa4b045bfa93b35eda7fc3a38d189
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jan 20 15:53:21 2013 -0500
EEditorWidget: Add a read-only "spell-checker" property.
e-util/e-editor-widget.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 6c12162..57ef18e 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -80,6 +80,7 @@ enum {
PROP_INLINE_SPELLING,
PROP_MAGIC_LINKS,
PROP_MAGIC_SMILEYS,
+ PROP_SPELL_CHECKER,
PROP_SPELL_LANGUAGES
};
@@ -690,6 +691,12 @@ e_editor_widget_get_property (GObject *object,
value, e_editor_widget_get_magic_smileys (
E_EDITOR_WIDGET (object)));
return;
+
+ case PROP_SPELL_CHECKER:
+ g_value_set_object (
+ value, e_editor_widget_get_spell_checker (
+ E_EDITOR_WIDGET (object)));
+ return;
}
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -943,6 +950,22 @@ e_editor_widget_class_init (EEditorWidgetClass *class)
G_PARAM_STATIC_STRINGS));
/**
+ * EEditorWidget:spell-checker:
+ *
+ * The #ESpellChecker used for spell checking.
+ **/
+ g_object_class_install_property (
+ object_class,
+ PROP_SPELL_CHECKER,
+ g_param_spec_object (
+ "spell-checker",
+ "Spell Checker",
+ "The spell checker",
+ E_TYPE_SPELL_CHECKER,
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_STRINGS));
+
+ /**
* EEditorWidget:spell-languages
*
* List of #ESpellDictionary objects used for spellchecking.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]