[evolution/wip/webkit-composer: 344/966] EEditorWidget: Add a read-only "spell-checker" property.



commit 7758be65f690198328dad180c5985a4c77a102f6
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 3139928..c699ea1 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
 };
 
@@ -574,6 +575,12 @@ 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);
@@ -936,6 +943,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]