[evolution/webkit-composer: 130/181] Remove e_editor_emit_spell_languages_changed().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 130/181] Remove e_editor_emit_spell_languages_changed().
- Date: Sun, 10 Feb 2013 12:19:26 +0000 (UTC)
commit f5ce158c650f23ebf444949703534cd78eb38f24
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 7c55644..2a057f1 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -1482,7 +1482,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 611e175..6493c2f 100644
--- a/e-util/e-editor.c
+++ b/e-util/e-editor.c
@@ -1045,19 +1045,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 f5dfdc6..9a01d1b 100644
--- a/e-util/e-editor.h
+++ b/e-util/e-editor.h
@@ -85,8 +85,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]