[evolution/webkit-composer: 143/147] Remove e_spell_entry_set_languages().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 143/147] Remove e_spell_entry_set_languages().
- Date: Mon, 21 Jan 2013 02:22:09 +0000 (UTC)
commit fd15d3c22f152de16298c69f5f75d0982d4dea74
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jan 20 16:09:54 2013 -0500
Remove e_spell_entry_set_languages().
No longer needed.
doc/reference/libeutil/libeutil-sections.txt | 1 -
e-util/e-spell-entry.c | 24 ------------------------
e-util/e-spell-entry.h | 2 --
3 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index 951c6d7..ea732d0 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -3713,7 +3713,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 3f0d5e4..47438e7 100644
--- a/e-util/e-spell-entry.c
+++ b/e-util/e-spell-entry.c
@@ -36,7 +36,6 @@ struct _ESpellEntryPrivate {
gint entry_scroll_offset;
gboolean custom_checkers;
gboolean checking_enabled;
- GList *dictionaries;
gchar **words;
gint *word_starts;
gint *word_ends;
@@ -747,9 +746,6 @@ spell_entry_dispose (GObject *object)
g_clear_object (&priv->spell_checker);
- g_list_free_full (priv->dictionaries, g_object_unref);
- priv->dictionaries = NULL;
-
if (priv->attr_list != NULL) {
pango_attr_list_unref (priv->attr_list);
priv->attr_list = NULL;
@@ -871,7 +867,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 (
@@ -894,25 +889,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]