[evolution/webkit-composer: 144/147] EEditorWidget: Remove "spell-languages" property.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 144/147] EEditorWidget: Remove "spell-languages" property.
- Date: Mon, 21 Jan 2013 02:22:14 +0000 (UTC)
commit a1b6878f034f5defd4f91d78e4c6df0fb9607f9f
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.
doc/reference/libeutil/libeutil-sections.txt | 2 -
e-util/e-editor-widget.c | 61 +-------------------------
2 files changed, 1 insertions(+), 62 deletions(-)
---
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index ea732d0..34634e0 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -1809,8 +1809,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 57ef18e..bcd4ce8 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 {
@@ -966,21 +962,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.
@@ -1470,46 +1451,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,
- const 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
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]