[evolution/webkit-composer: 128/130] Remove e_editor_emit_spell_languages_changed().



commit e654a73b440a9321be2e53b4c0ea020b4119b459
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Jan 18 08:58:34 2013 -0500

    Remove e_editor_emit_spell_languages_changed().
    
    Since EEditor::spell-languages-changed is a private signal with no
    arguments, we can just emit by name.
    
    XXX Maybe we ought to just eliminate the signal entirely?

 doc/reference/libeutil/libeutil-sections.txt |    1 -
 e-util/e-editor-actions.c                    |    2 +-
 e-util/e-editor.c                            |   16 ----------------
 e-util/e-editor.h                            |    2 --
 4 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index d308a8d..5a8d665 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -1491,7 +1491,6 @@ e_editor_get_managed_widget
 e_editor_get_filename
 e_editor_set_filename
 e_editor_pack_above
-e_editor_emit_spell_languages_changed
 e_editor_save
 <SUBSECTION Standard>
 E_EDITOR
diff --git a/e-util/e-editor-actions.c b/e-util/e-editor-actions.c
index 2216816..7e266c2 100644
--- a/e-util/e-editor-actions.c
+++ b/e-util/e-editor-actions.c
@@ -605,7 +605,7 @@ action_language_cb (GtkToggleAction *toggle_action,
 
 	gtk_action_set_sensitive (ACTION (SPELL_CHECK), count > 0);
 
-	e_editor_emit_spell_languages_changed (editor);
+	g_signal_emit_by_name (editor, "spell-languages-changed");
 }
 
 static gboolean
diff --git a/e-util/e-editor.c b/e-util/e-editor.c
index 5ed79fa..e384fe6 100644
--- a/e-util/e-editor.c
+++ b/e-util/e-editor.c
@@ -1049,19 +1049,3 @@ e_editor_save (EEditor *editor,
 	return TRUE;
 }
 
-/**
- * e_editor_emit_spell_languages_changed:
- * @editor: an #EEditor
- *
- * Emits "spell-languages-checked" signal on the @editor.
- *
- * This function is for internal use by the editor components and should not
- * be called from outside the editor.
- */
-void
-e_editor_emit_spell_languages_changed (EEditor *editor)
-{
-	g_return_if_fail (editor != NULL);
-
-	g_signal_emit (editor, signals[SPELL_LANGUAGES_CHANGED], 0);
-}
diff --git a/e-util/e-editor.h b/e-util/e-editor.h
index 3e34eb6..5aa8945 100644
--- a/e-util/e-editor.h
+++ b/e-util/e-editor.h
@@ -86,8 +86,6 @@ void		e_editor_set_filename		(EEditor *editor,
 						 const gchar *filename);
 void		e_editor_pack_above		(EEditor *editor,
 						 GtkWidget *child);
-void		e_editor_emit_spell_languages_changed
-						(EEditor *editor);
 
 /*****************************************************************************
  * High-Level Editing Interface



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