[evolution/wip/webkit-composer: 192/372] Remove e_editor_emit_spell_languages_changed().
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 192/372] Remove e_editor_emit_spell_languages_changed().
- Date: Thu, 6 Feb 2014 11:39:38 +0000 (UTC)
commit 3b6b506b5460facb511ad638e3bb42250f592bdc
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?
.../evolution-util/evolution-util-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/evolution-util/evolution-util-sections.txt
b/doc/reference/evolution-util/evolution-util-sections.txt
index a902452..b10eb38 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -1581,7 +1581,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]