[evolution/webkit-composer: 141/231] Remove e_spell_entry_set_languages().



commit d64463178064a8b1fb40a8c880ac89f69ed12a46
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jan 20 16:09:54 2013 -0500

    Remove e_spell_entry_set_languages().
    
    No longer needed.

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-spell-entry.c                             |   25 --------------------
 e-util/e-spell-entry.h                             |    2 -
 3 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index 1791792..5fa4b2e 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -3859,7 +3859,6 @@ ESpellDictionaryPrivate
 <TITLE>ESpellEntry</TITLE>
 ESpellEntry
 e_spell_entry_new
-e_spell_entry_set_languages
 e_spell_entry_get_checking_enabled
 e_spell_entry_set_checking_enabled
 e_spell_entry_get_spell_checker
diff --git a/e-util/e-spell-entry.c b/e-util/e-spell-entry.c
index 8be91f8..974c1c9 100644
--- a/e-util/e-spell-entry.c
+++ b/e-util/e-spell-entry.c
@@ -38,7 +38,6 @@ struct _ESpellEntryPrivate {
        gint entry_scroll_offset;
        gboolean custom_checkers;
        gboolean checking_enabled;
-       GList *dictionaries;
        gchar **words;
        gint *word_starts;
        gint *word_ends;
@@ -751,10 +750,6 @@ spell_entry_dispose (GObject *object)
 
        g_clear_object (&priv->spell_checker);
 
-       g_list_free_full (
-               priv->dictionaries, (GDestroyNotify) g_object_unref);
-       priv->dictionaries = NULL;
-
        if (priv->attr_list != NULL) {
                pango_attr_list_unref (priv->attr_list);
                priv->attr_list = NULL;
@@ -878,7 +873,6 @@ e_spell_entry_init (ESpellEntry *spell_entry)
 {
        spell_entry->priv = E_SPELL_ENTRY_GET_PRIVATE (spell_entry);
        spell_entry->priv->attr_list = pango_attr_list_new ();
-       spell_entry->priv->dictionaries = NULL;
        spell_entry->priv->checking_enabled = TRUE;
 
        g_signal_connect (
@@ -901,25 +895,6 @@ e_spell_entry_new (void)
        return g_object_new (E_TYPE_SPELL_ENTRY, NULL);
 }
 
-void
-e_spell_entry_set_languages (ESpellEntry *spell_entry,
-                             GList *dictionaries)
-{
-       g_return_if_fail (E_IS_SPELL_ENTRY (spell_entry));
-
-       spell_entry->priv->custom_checkers = TRUE;
-
-       if (spell_entry->priv->dictionaries)
-               g_list_free_full (spell_entry->priv->dictionaries, g_object_unref);
-       spell_entry->priv->dictionaries = NULL;
-
-       spell_entry->priv->dictionaries = g_list_copy (dictionaries);
-       g_list_foreach (spell_entry->priv->dictionaries, (GFunc) g_object_ref, NULL);
-
-       if (gtk_widget_get_realized (GTK_WIDGET (spell_entry)))
-               spell_entry_recheck_all (spell_entry);
-}
-
 gboolean
 e_spell_entry_get_checking_enabled (ESpellEntry *spell_entry)
 {
diff --git a/e-util/e-spell-entry.h b/e-util/e-spell-entry.h
index acfc3cc..bc04dfa 100644
--- a/e-util/e-spell-entry.h
+++ b/e-util/e-spell-entry.h
@@ -63,8 +63,6 @@ struct _ESpellEntryClass {
 
 GType          e_spell_entry_get_type          (void) G_GNUC_CONST;
 GtkWidget *    e_spell_entry_new               (void);
-void           e_spell_entry_set_languages     (ESpellEntry *spell_entry,
-                                                GList *languages);
 gboolean       e_spell_entry_get_checking_enabled
                                                (ESpellEntry *spell_entry);
 void           e_spell_entry_set_checking_enabled


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