[evolution/webkit-composer: 145/182] Remove e_spell_entry_set_languages().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 145/182] Remove e_spell_entry_set_languages().
- Date: Sun, 17 Mar 2013 14:49:53 +0000 (UTC)
commit ed7160b25ac3ff9df1eb4595dc1b88697efafcf5
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 | 25 -------------------------
e-util/e-spell-entry.h | 2 --
3 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index cef76d1..0bcd305 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -3827,7 +3827,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]