[evolution/wip/webkit-composer: 207/372] Remove e_spell_entry_set_languages().
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 207/372] Remove e_spell_entry_set_languages().
- Date: Thu, 6 Feb 2014 11:40:54 +0000 (UTC)
commit 9d97a77299d6e030e283e29c5178c6622bf2ea76
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 3d8a337..b156182 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -3967,7 +3967,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 622ddcd..0a8f8eb 100644
--- a/e-util/e-spell-entry.c
+++ b/e-util/e-spell-entry.c
@@ -37,7 +37,6 @@ struct _ESpellEntryPrivate {
gint entry_scroll_offset;
gboolean custom_checkers;
gboolean checking_enabled;
- GList *dictionaries;
gchar **words;
gint *word_starts;
gint *word_ends;
@@ -750,10 +749,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;
@@ -877,7 +872,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 (
@@ -900,25 +894,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 95400cd..a07d68f 100644
--- a/e-util/e-spell-entry.h
+++ b/e-util/e-spell-entry.h
@@ -62,8 +62,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]