[evolution/wip/webkit2] EHTMLEditorActions - Port it to webkit_web_view_execute_editing_command ()
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorActions - Port it to webkit_web_view_execute_editing_command ()
- Date: Wed, 17 Sep 2014 08:11:34 +0000 (UTC)
commit f1a002eb5fa0f625d08bbb27df302875ec26426f
Author: Tomas Popela <tpopela redhat com>
Date: Wed Sep 17 10:10:38 2014 +0200
EHTMLEditorActions - Port it to webkit_web_view_execute_editing_command ()
e-util/e-html-editor-actions.c | 29 ++++++++++++++++++-----------
1 files changed, 18 insertions(+), 11 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index d4cd329..8aa9733 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -424,16 +424,18 @@ static void
action_copy_cb (GtkAction *action,
EHTMLEditor *editor)
{
- webkit_web_view_copy_clipboard (
- WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)),
+ WEBKIT_EDITING_COMMAND_COPY);
}
static void
action_cut_cb (GtkAction *action,
EHTMLEditor *editor)
{
- webkit_web_view_cut_clipboard (
- WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)),
+ WEBKIT_EDITING_COMMAND_CUT);
}
static void
@@ -699,7 +701,9 @@ action_paste_cb (GtkAction *action,
if (gtk_widget_has_focus (GTK_WIDGET (view)))
gtk_widget_grab_focus (GTK_WIDGET (view));
- webkit_web_view_paste_clipboard (WEBKIT_WEB_VIEW (view));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)),
+ WEBKIT_EDITING_COMMAND_PASTE);
e_html_editor_view_force_spell_check (view);
}
@@ -827,16 +831,18 @@ static void
action_redo_cb (GtkAction *action,
EHTMLEditor *editor)
{
- webkit_web_view_redo (
- WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)),
+ WEBKIT_EDITING_COMMAND_REDO);
}
static void
action_select_all_cb (GtkAction *action,
EHTMLEditor *editor)
{
- webkit_web_view_select_all (
- WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)),
+ WEBKIT_EDITING_COMMAND_SELECT_ALL);
}
static void
@@ -891,8 +897,9 @@ static void
action_undo_cb (GtkAction *action,
EHTMLEditor *editor)
{
- webkit_web_view_undo (
- WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (e_html_editor_get_view (editor)),
+ WEBKIT_EDITING_COMMAND_UNDO);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]