[evolution/wip/webkit-composer: 957/966] Rename EEditorSpellCheckDialog to EHTMLEditorSpellCheckDialog
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 957/966] Rename EEditorSpellCheckDialog to EHTMLEditorSpellCheckDialog
- Date: Wed, 23 Apr 2014 11:13:53 +0000 (UTC)
commit 517993948a9b4b7fd41e665756c2e70cc8efd722
Author: Tomas Popela <tpopela redhat com>
Date: Mon Mar 31 13:22:29 2014 +0200
Rename EEditorSpellCheckDialog to EHTMLEditorSpellCheckDialog
.../evolution-util/evolution-util-docs.sgml | 2 +-
.../evolution-util/evolution-util-sections.txt | 30 +++---
doc/reference/evolution-util/evolution-util.types | 2 +-
e-util/Makefile.am | 4 +-
e-util/e-editor-spell-check-dialog.h | 73 -------------
e-util/e-html-editor-actions.c | 2 +-
e-util/e-html-editor-private.h | 2 +-
...dialog.c => e-html-editor-spell-check-dialog.c} | 114 ++++++++++----------
e-util/e-html-editor-spell-check-dialog.h | 73 +++++++++++++
e-util/e-html-editor.c | 4 +-
e-util/e-util.h | 2 +-
11 files changed, 154 insertions(+), 154 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-docs.sgml
b/doc/reference/evolution-util/evolution-util-docs.sgml
index b49f264..2682f69 100644
--- a/doc/reference/evolution-util/evolution-util-docs.sgml
+++ b/doc/reference/evolution-util/evolution-util-docs.sgml
@@ -100,7 +100,6 @@
<chapter>
<title>HTML Editing</title>
- <xi:include href="xml/e-editor-spell-check-dialog.xml"/>
<xi:include href="xml/e-editor-table-dialog.xml"/>
<xi:include href="xml/e-editor-text-dialog.xml"/>
<xi:include href="xml/e-color-chooser-widget.xml"/>
@@ -121,6 +120,7 @@
<xi:include href="xml/e-html-editor-paragraph-dialog.xml"/>
<xi:include href="xml/e-html-editor-replace-dialog.xml"/>
<xi:include href="xml/e-html-editor-selection.xml"/>
+ <xi:include href="xml/e-html-editor-spell-check-dialog.xml"/>
<xi:include href="xml/e-html-editor-widget.xml"/>
<xi:include href="xml/e-image-chooser-dialog.xml"/>
<xi:include href="xml/e-spell-checker.xml"/>
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt
b/doc/reference/evolution-util/evolution-util-sections.txt
index 0013c01..73a46c9 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -1830,22 +1830,22 @@ EEditorSelectionPrivate
</SECTION>
<SECTION>
-<FILE>e-editor-spell-check-dialog</FILE>
-<TITLE>EEditorSpellCheckDialog</TITLE>
-EEditorSpellCheckDialog
-e_editor_spell_check_dialog_new
-e_editor_spell_check_dialog_update_dictionaries
-<SUBSECTION Standard>
-E_EDITOR_SPELL_CHECK_DIALOG
-E_IS_EDITOR_SPELL_CHECK_DIALOG
-E_TYPE_EDITOR_SPELL_CHECK_DIALOG
-E_EDITOR_SPELL_CHECK_DIALOG_CLASS
-E_IS_EDITOR_SPELL_CHECK_DIALOG_CLASS
-E_EDITOR_SPELL_CHECK_DIALOG_GET_CLASS
-EEditorSpellCheckDialogClass
-e_editor_spell_check_dialog_get_type
-<SUBSECTION Private>
-EEditorSpellCheckDialogPrivate
+<FILE>e-html-editor-spell-check-dialog</FILE>
+<TITLE>EHTMLEditorSpellCheckDialog</TITLE>
+EHTMLEditorSpellCheckDialog
+e_html_editor_spell_check_dialog_new
+e_html_editor_spell_check_dialog_update_dictionaries
+<SUBSECTION Standard>
+E_HTML_EDITOR_SPELL_CHECK_DIALOG
+E_IS_HTML_EDITOR_SPELL_CHECK_DIALOG
+E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG
+E_HTML_EDITOR_SPELL_CHECK_DIALOG_CLASS
+E_IS_HTML_EDITOR_SPELL_CHECK_DIALOG_CLASS
+E_HTML_EDITOR_SPELL_CHECK_DIALOG_GET_CLASS
+EHTMLEditorSpellCheckDialogClass
+e_html_editor_spell_check_dialog_get_type
+<SUBSECTION Private>
+EHTMLEditorSpellCheckDialogPrivate
</SECTION>
<SECTION>
diff --git a/doc/reference/evolution-util/evolution-util.types
b/doc/reference/evolution-util/evolution-util.types
index a298136..570cec6 100644
--- a/doc/reference/evolution-util/evolution-util.types
+++ b/doc/reference/evolution-util/evolution-util.types
@@ -63,7 +63,6 @@ e_contact_store_get_type
e_data_capture_get_type
e_date_edit_get_type
e_destination_store_get_type
-e_editor_spell_check_dialog_get_type
e_editor_table_dialog_get_type
e_editor_text_dialog_get_type
e_html_editor_get_type
@@ -77,6 +76,7 @@ e_html_editor_page_dialog_get_type
e_html_editor_paragraph_dialog_get_type
e_html_editor_replace_dialog_get_type
e_html_editor_selection_get_type
+e_html_editor_spell_check_dialog_get_type
e_html_editor_view_get_type
e_emoticon_action_get_type
e_emoticon_chooser_get_type
diff --git a/e-util/Makefile.am b/e-util/Makefile.am
index 50416b3..a17d45d 100644
--- a/e-util/Makefile.am
+++ b/e-util/Makefile.am
@@ -177,7 +177,6 @@ evolution_util_include_HEADERS = \
e-destination-store.h \
e-dialog-utils.h \
e-dialog-widgets.h \
- e-editor-spell-check-dialog.h \
e-editor-table-dialog.h \
e-editor-text-dialog.h \
e-emoticon-action.h \
@@ -210,6 +209,7 @@ evolution_util_include_HEADERS = \
e-html-editor-paragraph-dialog.h \
e-html-editor-replace-dialog.h \
e-html-editor-selection.h \
+ e-html-editor-spell-check-dialog.h \
e-html-editor-utils.h \
e-html-editor-view.h \
e-html-editor.h \
@@ -448,7 +448,6 @@ libevolution_util_la_SOURCES = \
e-destination-store.c \
e-dialog-utils.c \
e-dialog-widgets.c \
- e-editor-spell-check-dialog.c \
e-editor-table-dialog.c \
e-editor-text-dialog.c \
e-emoticon-action.c \
@@ -482,6 +481,7 @@ libevolution_util_la_SOURCES = \
e-html-editor-private.h \
e-html-editor-replace-dialog.c \
e-html-editor-selection.c \
+ e-html-editor-spell-check-dialog.c \
e-html-editor-utils.c \
e-html-editor-view.c \
e-html-editor.c \
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 960d473..1b0d38b 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -874,7 +874,7 @@ action_spell_check_cb (GtkAction *action,
{
if (editor->priv->spell_check_dialog == NULL) {
editor->priv->spell_check_dialog =
- e_editor_spell_check_dialog_new (editor);
+ e_html_editor_spell_check_dialog_new (editor);
}
gtk_window_present (GTK_WINDOW (editor->priv->spell_check_dialog));
diff --git a/e-util/e-html-editor-private.h b/e-util/e-html-editor-private.h
index fbf0756..e5fc8b1 100644
--- a/e-util/e-html-editor-private.h
+++ b/e-util/e-html-editor-private.h
@@ -33,10 +33,10 @@
#include <e-html-editor-page-dialog.h>
#include <e-html-editor-paragraph-dialog.h>
#include <e-html-editor-replace-dialog.h>
+#include <e-html-editor-spell-check-dialog.h>
#include <e-html-editor-view.h>
#include <e-editor-table-dialog.h>
#include <e-editor-text-dialog.h>
-#include <e-editor-spell-check-dialog.h>
#ifdef HAVE_XFREE
#include <X11/XF86keysym.h>
diff --git a/e-util/e-editor-spell-check-dialog.c b/e-util/e-html-editor-spell-check-dialog.c
similarity index 83%
rename from e-util/e-editor-spell-check-dialog.c
rename to e-util/e-html-editor-spell-check-dialog.c
index c70c42c..b399dfa 100644
--- a/e-util/e-editor-spell-check-dialog.c
+++ b/e-util/e-html-editor-spell-check-dialog.c
@@ -1,5 +1,5 @@
/*
- * e-editor-spell-dialog.c
+ * e-html-editor-spell-dialog.c
*
* Copyright (C) 2012 Dan Vrátil <dvratil redhat com>
*
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include "e-editor-spell-check-dialog.h"
+#include "e-html-editor-spell-check-dialog.h"
#include <glib/gi18n-lib.h>
#include <enchant/enchant.h>
@@ -31,11 +31,11 @@
#include "e-spell-checker.h"
#include "e-spell-dictionary.h"
-#define E_EDITOR_SPELL_CHECK_DIALOG_GET_PRIVATE(obj) \
+#define E_HTML_EDITOR_SPELL_CHECK_DIALOG_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), E_TYPE_EDITOR_SPELL_CHECK_DIALOG, EEditorSpellCheckDialogPrivate))
+ ((obj), E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG, EHTMLEditorSpellCheckDialogPrivate))
-struct _EEditorSpellCheckDialogPrivate {
+struct _EHTMLEditorSpellCheckDialogPrivate {
GtkWidget *add_word_button;
GtkWidget *back_button;
GtkWidget *dictionary_combo;
@@ -59,13 +59,13 @@ enum {
};
G_DEFINE_TYPE (
- EEditorSpellCheckDialog,
- e_editor_spell_check_dialog,
+ EHTMLEditorSpellCheckDialog,
+ e_html_editor_spell_check_dialog,
E_TYPE_HTML_EDITOR_DIALOG)
static void
-editor_spell_check_dialog_set_word (EEditorSpellCheckDialog *dialog,
- const gchar *word)
+html_editor_spell_check_dialog_set_word (EHTMLEditorSpellCheckDialog *dialog,
+ const gchar *word)
{
EHTMLEditor *editor;
EHTMLEditorView *view;
@@ -115,7 +115,7 @@ editor_spell_check_dialog_set_word (EEditorSpellCheckDialog *dialog,
}
static gboolean
-select_next_word (EEditorSpellCheckDialog *dialog)
+select_next_word (EHTMLEditorSpellCheckDialog *dialog)
{
WebKitDOMNode *anchor, *focus;
gulong anchor_offset, focus_offset;
@@ -149,7 +149,7 @@ select_next_word (EEditorSpellCheckDialog *dialog)
}
static gboolean
-editor_spell_check_dialog_next (EEditorSpellCheckDialog *dialog)
+html_editor_spell_check_dialog_next (EHTMLEditorSpellCheckDialog *dialog)
{
WebKitDOMNode *start = NULL, *end = NULL;
gulong start_offset, end_offset;
@@ -185,7 +185,7 @@ editor_spell_check_dialog_next (EEditorSpellCheckDialog *dialog)
/* Found misspelled word! */
if (loc != -1) {
- editor_spell_check_dialog_set_word (dialog, word);
+ html_editor_spell_check_dialog_set_word (dialog, word);
g_free (word);
return TRUE;
}
@@ -207,7 +207,7 @@ editor_spell_check_dialog_next (EEditorSpellCheckDialog *dialog)
}
static gboolean
-select_previous_word (EEditorSpellCheckDialog *dialog)
+select_previous_word (EHTMLEditorSpellCheckDialog *dialog)
{
WebKitDOMNode *old_anchor_node;
WebKitDOMNode *new_anchor_node;
@@ -242,7 +242,7 @@ select_previous_word (EEditorSpellCheckDialog *dialog)
}
static gboolean
-editor_spell_check_dialog_prev (EEditorSpellCheckDialog *dialog)
+html_editor_spell_check_dialog_prev (EHTMLEditorSpellCheckDialog *dialog)
{
WebKitDOMNode *start = NULL, *end = NULL;
gulong start_offset, end_offset;
@@ -282,7 +282,7 @@ editor_spell_check_dialog_prev (EEditorSpellCheckDialog *dialog)
/* Found misspelled word! */
if (loc != -1) {
- editor_spell_check_dialog_set_word (dialog, word);
+ html_editor_spell_check_dialog_set_word (dialog, word);
g_free (word);
return TRUE;
}
@@ -304,7 +304,7 @@ editor_spell_check_dialog_prev (EEditorSpellCheckDialog *dialog)
}
static void
-editor_spell_check_dialog_replace (EEditorSpellCheckDialog *dialog)
+html_editor_spell_check_dialog_replace (EHTMLEditorSpellCheckDialog *dialog)
{
EHTMLEditor *editor;
EHTMLEditorView *view;
@@ -327,11 +327,11 @@ editor_spell_check_dialog_replace (EEditorSpellCheckDialog *dialog)
editor_selection, replacement);
g_free (replacement);
- editor_spell_check_dialog_next (dialog);
+ html_editor_spell_check_dialog_next (dialog);
}
static void
-editor_spell_check_dialog_replace_all (EEditorSpellCheckDialog *dialog)
+html_editor_spell_check_dialog_replace_all (EHTMLEditorSpellCheckDialog *dialog)
{
EHTMLEditor *editor;
EHTMLEditorView *view;
@@ -362,11 +362,11 @@ editor_spell_check_dialog_replace_all (EEditorSpellCheckDialog *dialog)
}
g_free (replacement);
- editor_spell_check_dialog_next (dialog);
+ html_editor_spell_check_dialog_next (dialog);
}
static void
-editor_spell_check_dialog_ignore (EEditorSpellCheckDialog *dialog)
+html_editor_spell_check_dialog_ignore (EHTMLEditorSpellCheckDialog *dialog)
{
if (dialog->priv->word == NULL)
return;
@@ -374,11 +374,11 @@ editor_spell_check_dialog_ignore (EEditorSpellCheckDialog *dialog)
e_spell_dictionary_ignore_word (
dialog->priv->current_dict, dialog->priv->word, -1);
- editor_spell_check_dialog_next (dialog);
+ html_editor_spell_check_dialog_next (dialog);
}
static void
-editor_spell_check_dialog_learn (EEditorSpellCheckDialog *dialog)
+html_editor_spell_check_dialog_learn (EHTMLEditorSpellCheckDialog *dialog)
{
if (dialog->priv->word == NULL)
return;
@@ -386,11 +386,11 @@ editor_spell_check_dialog_learn (EEditorSpellCheckDialog *dialog)
e_spell_dictionary_learn_word (
dialog->priv->current_dict, dialog->priv->word, -1);
- editor_spell_check_dialog_next (dialog);
+ html_editor_spell_check_dialog_next (dialog);
}
static void
-editor_spell_check_dialog_set_dictionary (EEditorSpellCheckDialog *dialog)
+html_editor_spell_check_dialog_set_dictionary (EHTMLEditorSpellCheckDialog *dialog)
{
GtkComboBox *combo_box;
GtkTreeModel *model;
@@ -406,19 +406,19 @@ editor_spell_check_dialog_set_dictionary (EEditorSpellCheckDialog *dialog)
dialog->priv->current_dict = dictionary;
/* Update suggestions */
- editor_spell_check_dialog_set_word (dialog, dialog->priv->word);
+ html_editor_spell_check_dialog_set_word (dialog, dialog->priv->word);
}
static void
-editor_spell_check_dialog_show (GtkWidget *widget)
+html_editor_spell_check_dialog_show (GtkWidget *widget)
{
EHTMLEditor *editor;
EHTMLEditorView *view;
- EEditorSpellCheckDialog *dialog;
+ EHTMLEditorSpellCheckDialog *dialog;
WebKitDOMDocument *document;
WebKitDOMDOMWindow *window;
- dialog = E_EDITOR_SPELL_CHECK_DIALOG (widget);
+ dialog = E_HTML_EDITOR_SPELL_CHECK_DIALOG (widget);
g_free (dialog->priv->word);
dialog->priv->word = NULL;
@@ -431,58 +431,58 @@ editor_spell_check_dialog_show (GtkWidget *widget)
dialog->priv->selection = webkit_dom_dom_window_get_selection (window);
/* Select the first word or quit */
- if (editor_spell_check_dialog_next (dialog)) {
- GTK_WIDGET_CLASS (e_editor_spell_check_dialog_parent_class)->
+ if (html_editor_spell_check_dialog_next (dialog)) {
+ GTK_WIDGET_CLASS (e_html_editor_spell_check_dialog_parent_class)->
show (widget);
}
}
static void
-editor_spell_check_dialog_finalize (GObject *object)
+html_editor_spell_check_dialog_finalize (GObject *object)
{
- EEditorSpellCheckDialogPrivate *priv;
+ EHTMLEditorSpellCheckDialogPrivate *priv;
- priv = E_EDITOR_SPELL_CHECK_DIALOG_GET_PRIVATE (object);
+ priv = E_HTML_EDITOR_SPELL_CHECK_DIALOG_GET_PRIVATE (object);
g_free (priv->word);
/* Chain up to parent's finalize() method. */
- G_OBJECT_CLASS (e_editor_spell_check_dialog_parent_class)->
+ G_OBJECT_CLASS (e_html_editor_spell_check_dialog_parent_class)->
finalize (object);
}
static void
-editor_spell_check_dialog_constructed (GObject *object)
+html_editor_spell_check_dialog_constructed (GObject *object)
{
- EEditorSpellCheckDialog *dialog;
+ EHTMLEditorSpellCheckDialog *dialog;
/* Chain up to parent's constructed() method. */
- G_OBJECT_CLASS (e_editor_spell_check_dialog_parent_class)->
+ G_OBJECT_CLASS (e_html_editor_spell_check_dialog_parent_class)->
constructed (object);
- dialog = E_EDITOR_SPELL_CHECK_DIALOG (object);
- e_editor_spell_check_dialog_update_dictionaries (dialog);
+ dialog = E_HTML_EDITOR_SPELL_CHECK_DIALOG (object);
+ e_html_editor_spell_check_dialog_update_dictionaries (dialog);
}
static void
-e_editor_spell_check_dialog_class_init (EEditorSpellCheckDialogClass *class)
+e_html_editor_spell_check_dialog_class_init (EHTMLEditorSpellCheckDialogClass *class)
{
GtkWidgetClass *widget_class;
GObjectClass *object_class;
g_type_class_add_private (
- class, sizeof (EEditorSpellCheckDialogPrivate));
+ class, sizeof (EHTMLEditorSpellCheckDialogPrivate));
object_class = G_OBJECT_CLASS (class);
- object_class->finalize = editor_spell_check_dialog_finalize;
- object_class->constructed = editor_spell_check_dialog_constructed;
+ object_class->finalize = html_editor_spell_check_dialog_finalize;
+ object_class->constructed = html_editor_spell_check_dialog_constructed;
widget_class = GTK_WIDGET_CLASS (class);
- widget_class->show = editor_spell_check_dialog_show;
+ widget_class->show = html_editor_spell_check_dialog_show;
}
static void
-e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
+e_html_editor_spell_check_dialog_init (EHTMLEditorSpellCheckDialog *dialog)
{
GtkWidget *widget;
GtkGrid *main_layout;
@@ -490,7 +490,7 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
GtkTreeViewColumn *column;
GtkCellRenderer *renderer;
- dialog->priv = E_EDITOR_SPELL_CHECK_DIALOG_GET_PRIVATE (dialog);
+ dialog->priv = E_HTML_EDITOR_SPELL_CHECK_DIALOG_GET_PRIVATE (dialog);
main_layout = e_html_editor_dialog_get_container (E_HTML_EDITOR_DIALOG (dialog));
@@ -541,7 +541,7 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
g_signal_connect_swapped (
widget, "clicked",
- G_CALLBACK (editor_spell_check_dialog_replace), dialog);
+ G_CALLBACK (html_editor_spell_check_dialog_replace), dialog);
/* Replace All */
widget = gtk_button_new_with_mnemonic (_("Replace All"));
@@ -554,7 +554,7 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
g_signal_connect_swapped (
widget, "clicked",
- G_CALLBACK (editor_spell_check_dialog_replace_all), dialog);
+ G_CALLBACK (html_editor_spell_check_dialog_replace_all), dialog);
/* Ignore */
widget = gtk_button_new_with_mnemonic (_("Ignore"));
@@ -567,7 +567,7 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
g_signal_connect_swapped (
widget, "clicked",
- G_CALLBACK (editor_spell_check_dialog_ignore), dialog);
+ G_CALLBACK (html_editor_spell_check_dialog_ignore), dialog);
/* Skip */
widget = gtk_button_new_with_mnemonic (_("Skip"));
@@ -580,7 +580,7 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
g_signal_connect_swapped (
widget, "clicked",
- G_CALLBACK (editor_spell_check_dialog_next), dialog);
+ G_CALLBACK (html_editor_spell_check_dialog_next), dialog);
/* Back */
widget = gtk_button_new_with_mnemonic (_("Back"));
@@ -592,7 +592,7 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
g_signal_connect_swapped (
widget, "clicked",
- G_CALLBACK (editor_spell_check_dialog_prev), dialog);
+ G_CALLBACK (html_editor_spell_check_dialog_prev), dialog);
/* Dictionary label */
widget = gtk_label_new ("");
@@ -613,7 +613,7 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
g_signal_connect_swapped (
widget, "changed",
- G_CALLBACK (editor_spell_check_dialog_set_dictionary), dialog);
+ G_CALLBACK (html_editor_spell_check_dialog_set_dictionary), dialog);
/* Add Word button */
widget = gtk_button_new_with_mnemonic (_("Add Word"));
@@ -626,23 +626,23 @@ e_editor_spell_check_dialog_init (EEditorSpellCheckDialog *dialog)
g_signal_connect_swapped (
widget, "clicked",
- G_CALLBACK (editor_spell_check_dialog_learn), dialog);
+ G_CALLBACK (html_editor_spell_check_dialog_learn), dialog);
gtk_widget_show_all (GTK_WIDGET (main_layout));
}
GtkWidget *
-e_editor_spell_check_dialog_new (EHTMLEditor *editor)
+e_html_editor_spell_check_dialog_new (EHTMLEditor *editor)
{
return g_object_new (
- E_TYPE_EDITOR_SPELL_CHECK_DIALOG,
+ E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG,
"editor", editor,
"title", N_("Spell Checking"),
NULL);
}
void
-e_editor_spell_check_dialog_update_dictionaries (EEditorSpellCheckDialog *dialog)
+e_html_editor_spell_check_dialog_update_dictionaries (EHTMLEditorSpellCheckDialog *dialog)
{
EHTMLEditor *editor;
EHTMLEditorView *view;
@@ -654,7 +654,7 @@ e_editor_spell_check_dialog_update_dictionaries (EEditorSpellCheckDialog *dialog
guint n_languages = 0;
guint ii;
- g_return_if_fail (E_IS_EDITOR_SPELL_CHECK_DIALOG (dialog));
+ g_return_if_fail (E_IS_HTML_EDITOR_SPELL_CHECK_DIALOG (dialog));
editor = e_html_editor_dialog_get_editor (E_HTML_EDITOR_DIALOG (dialog));
view = e_html_editor_get_view (editor);
diff --git a/e-util/e-html-editor-spell-check-dialog.h b/e-util/e-html-editor-spell-check-dialog.h
new file mode 100644
index 0000000..4191cd9
--- /dev/null
+++ b/e-util/e-html-editor-spell-check-dialog.h
@@ -0,0 +1,73 @@
+/*
+ * e-html-editor-spell-check-dialog.h
+ *
+ * Copyright (C) 2012 Dan Vrátil <dvratil redhat com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU Lesser General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
+#error "Only <e-util/e-util.h> should be included directly."
+#endif
+
+#ifndef E_HTML_EDITOR_SPELL_CHECK_DIALOG_H
+#define E_HTML_EDITOR_SPELL_CHECK_DIALOG_H
+
+#include <e-util/e-html-editor-dialog.h>
+
+/* Standard GObject macros */
+#define E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG \
+ (e_html_editor_spell_check_dialog_get_type ())
+#define E_HTML_EDITOR_SPELL_CHECK_DIALOG(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST \
+ ((obj), E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG, EHTMLEditorSpellCheckDialog))
+#define E_HTML_EDITOR_SPELL_CHECK_DIALOG_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_CAST \
+ ((cls), E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG, EHTMLEditorSpellCheckDialogClass))
+#define E_IS_HTML_EDITOR_SPELL_CHECK_DIALOG(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE \
+ ((obj), E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG))
+#define E_IS_HTML_EDITOR_SPELL_CHECK_DIALOG_CLASS(cls) \
+ (G_TYPE_CHECK_CLASS_TYPE \
+ ((cls), E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG))
+#define E_HTML_EDITOR_SPELL_CHECK_DIALOG_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS \
+ ((obj), E_TYPE_HTML_EDITOR_SPELL_CHECK_DIALOG, EHTMLEditorSpellCheckDialogClass))
+
+G_BEGIN_DECLS
+
+typedef struct _EHTMLEditorSpellCheckDialog EHTMLEditorSpellCheckDialog;
+typedef struct _EHTMLEditorSpellCheckDialogClass EHTMLEditorSpellCheckDialogClass;
+typedef struct _EHTMLEditorSpellCheckDialogPrivate EHTMLEditorSpellCheckDialogPrivate;
+
+struct _EHTMLEditorSpellCheckDialog {
+ EHTMLEditorDialog parent;
+ EHTMLEditorSpellCheckDialogPrivate *priv;
+};
+
+struct _EHTMLEditorSpellCheckDialogClass {
+ EHTMLEditorDialogClass parent_class;
+};
+
+GType e_html_editor_spell_check_dialog_get_type
+ (void) G_GNUC_CONST;
+GtkWidget * e_html_editor_spell_check_dialog_new
+ (EHTMLEditor *editor);
+void e_html_editor_spell_check_dialog_update_dictionaries
+ (EHTMLEditorSpellCheckDialog *dialog);
+
+G_END_DECLS
+
+#endif /* E_HTML_EDITOR_SPELL_CHECK_DIALOG_H */
diff --git a/e-util/e-html-editor.c b/e-util/e-html-editor.c
index 8bf7995..485dc77 100644
--- a/e-util/e-html-editor.c
+++ b/e-util/e-html-editor.c
@@ -482,8 +482,8 @@ html_editor_spell_languages_changed (EHTMLEditor *editor)
NULL);
if (editor->priv->spell_check_dialog != NULL)
- e_editor_spell_check_dialog_update_dictionaries (
- E_EDITOR_SPELL_CHECK_DIALOG (
+ e_html_editor_spell_check_dialog_update_dictionaries (
+ E_HTML_EDITOR_SPELL_CHECK_DIALOG (
editor->priv->spell_check_dialog));
if (*comma_separated)
diff --git a/e-util/e-util.h b/e-util/e-util.h
index ec86aa4..61f3b70 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -91,7 +91,6 @@
#include <e-util/e-destination-store.h>
#include <e-util/e-dialog-utils.h>
#include <e-util/e-dialog-widgets.h>
-#include <e-util/e-editor-spell-check-dialog.h>
#include <e-util/e-editor-table-dialog.h>
#include <e-util/e-editor-text-dialog.h>
#include <e-util/e-emoticon-action.h>
@@ -124,6 +123,7 @@
#include <e-util/e-html-editor-paragraph-dialog.h>
#include <e-util/e-html-editor-replace-dialog.h>
#include <e-util/e-html-editor-selection.h>
+#include <e-util/e-html-editor-spell-check-dialog.h>
#include <e-util/e-html-editor-utils.h>
#include <e-util/e-html-editor-view.h>
#include <e-util/e-html-editor.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]