aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-actions.c
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-06-25 20:13:39 +0800
committerTomas Popela <tpopela@redhat.com>2014-06-25 21:59:50 +0800
commitb5d682209bd8394c4fcccd6f2dd84ad53143a60c (patch)
tree8859c95fbb8e35ebff2d8c14cbc89e49d65760b2 /e-util/e-html-editor-actions.c
parent177b1a6abfe7b73d7534db819d52e3d87ad76756 (diff)
downloadgsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar
gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.gz
gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.bz2
gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.lz
gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.xz
gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.zst
gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.zip
Bug 731508 - [webkit-composer] no option to paste as text (without formatting)
Diffstat (limited to 'e-util/e-html-editor-actions.c')
-rw-r--r--e-util/e-html-editor-actions.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 4d1751e117..6b1276ceed 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -705,6 +705,16 @@ action_paste_cb (GtkAction *action,
}
static void
+action_paste_as_text_cb (GtkAction *action,
+ EHTMLEditor *editor)
+{
+ EHTMLEditorView *view = e_html_editor_get_view (editor);
+
+ e_html_editor_view_paste_as_text (view);
+ e_html_editor_view_force_spell_check (view);
+}
+
+static void
action_paste_quote_cb (GtkAction *action,
EHTMLEditor *editor)
{
@@ -1337,6 +1347,14 @@ static GtkActionEntry html_entries[] = {
NULL,
NULL,
NULL },
+
+ { "paste-as-text",
+ NULL,
+ N_("Paste As _Text"),
+ NULL,
+ NULL,
+ G_CALLBACK (action_paste_as_text_cb) },
+
};
static GtkToggleActionEntry html_toggle_entries[] = {