[evolution/webkit-composer: 143/210] EEditorWidget: Remove "spell-languages" property.



commit c27844c2a8f376330bcbe22ce6d9171fdc007ea7
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jan 20 16:05:34 2013 -0500

    EEditorWidget: Remove "spell-languages" property.
    
    Kill another redundant list.  Use ESpellChecker:active-languages.

 .../evolution-util/evolution-util-sections.txt     |    2 -
 e-util/e-editor-widget.c                           |   61 +-------------------
 e-util/e-editor-widget.h                           |    5 --
 3 files changed, 1 insertions(+), 67 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index f7f5363..cd32341 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -1902,8 +1902,6 @@ e_editor_widget_get_magic_links
 e_editor_widget_set_magic_links
 e_editor_widget_get_magic_smileys
 e_editor_widget_set_magic_smileys
-e_editor_widget_get_spell_languages
-e_editor_widget_set_spell_languages
 e_editor_widget_get_spell_checker
 e_editor_widget_get_text_html
 e_editor_widget_get_text_plain
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index c699ea1..2aa1ec7 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -59,9 +59,6 @@ struct _EEditorWidgetPrivate {
 
        EEditorSelection *selection;
 
-       /* FIXME WEBKIT Is this in widget's competence? */
-       GList *spelling_langs;
-
        GSettings *font_settings;
        GSettings *aliasing_settings;
 
@@ -80,8 +77,7 @@ enum {
        PROP_INLINE_SPELLING,
        PROP_MAGIC_LINKS,
        PROP_MAGIC_SMILEYS,
-       PROP_SPELL_CHECKER,
-       PROP_SPELL_LANGUAGES
+       PROP_SPELL_CHECKER
 };
 
 enum {
@@ -959,21 +955,6 @@ e_editor_widget_class_init (EEditorWidgetClass *class)
                        G_PARAM_STATIC_STRINGS));
 
        /**
-        * EEditorWidget:spell-languages
-        *
-        * List of #ESpellDictionary objects used for spellchecking.
-        */
-       g_object_class_install_property (
-               object_class,
-               PROP_SPELL_LANGUAGES,
-               g_param_spec_pointer (
-                       "spell-languages",
-                       "Active spell checking languages",
-                       NULL,
-                       G_PARAM_READWRITE |
-                       G_PARAM_STATIC_STRINGS));
-
-       /**
         * EEditorWidget:popup-event
         *
         * Emitted whenever a context menu is requested.
@@ -1456,46 +1437,6 @@ e_editor_widget_set_magic_smileys (EEditorWidget *widget,
 }
 
 /**
- * e_editor_widget_get_spell_languages:
- * @widget: an #EEditorWidget
- *
- * Returns list of #ESpellDictionary objects that are used for spell checking.
- *
- * Returns: A newly allocated list of #ESpellDictionary objects. You should free
- * the list by g_list_free() The objects are owned by #EEditorWidget.and should
- * not be unref'ed or free'd. [element-type ESpellDictionary]
- */
-GList *
-e_editor_widget_get_spell_languages (EEditorWidget *widget)
-{
-       g_return_val_if_fail (E_IS_EDITOR_WIDGET (widget), NULL);
-
-       return g_list_copy (widget->priv->spelling_langs);
-}
-
-/**
- * e_editor_widget_set_spell_languages:
- * @widget: an #EEditorWidget
- * @spell_languages:[element-type ESpellDictionary][transfer-none] a list of
- * #ESpellDictionary objects
- *
- * Sets list of #ESpellDictionary objects that will be used for spell checking.
- */
-void
-e_editor_widget_set_spell_languages (EEditorWidget *widget,
-                                     GList *spell_languages)
-{
-       g_return_if_fail (E_IS_EDITOR_WIDGET (widget));
-       g_return_if_fail (spell_languages);
-
-       g_list_free_full (widget->priv->spelling_langs, g_object_unref);
-       widget->priv->spelling_langs = g_list_copy ((GList *) spell_languages);
-       g_list_foreach (widget->priv->spelling_langs, (GFunc) g_object_ref, NULL);
-
-       g_object_notify (G_OBJECT (widget), "spell-languages");
-}
-
-/**
  * e_editor_widget_get_spell_checker:
  * @widget: an #EEditorWidget
  *
diff --git a/e-util/e-editor-widget.h b/e-util/e-editor-widget.h
index d132b44..b349d2c 100644
--- a/e-util/e-editor-widget.h
+++ b/e-util/e-editor-widget.h
@@ -96,11 +96,6 @@ gboolean     e_editor_widget_get_magic_smileys
 void           e_editor_widget_set_magic_smileys
                                                (EEditorWidget *widget,
                                                 gboolean magic_smileys);
-GList *                e_editor_widget_get_spell_languages
-                                               (EEditorWidget *widget);
-void           e_editor_widget_set_spell_languages
-                                               (EEditorWidget *widget,
-                                                GList *spell_languages);
 ESpellChecker *        e_editor_widget_get_spell_checker
                                                (EEditorWidget *widget);
 gchar *                e_editor_widget_get_text_html   (EEditorWidget *widget);


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