[evolution/wip/webkit2: 125/128] 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: 125/128] EHTMLEditorActions - Port it to webkit_web_view_execute_editing_command ()
- Date: Tue, 18 Nov 2014 12:08:30 +0000 (UTC)
commit a89a5a11bd7a0437cf11c4b777d1a0ad6a4a4e32
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 | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 373a131..3923068 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -428,7 +428,8 @@ action_copy_cb (GtkAction *action,
EHTMLEditorView *view = e_html_editor_get_view (editor);
if (gtk_widget_has_focus (GTK_WIDGET (view)))
- webkit_web_view_copy_clipboard (WEBKIT_WEB_VIEW (view));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (view), WEBKIT_EDITING_COMMAND_COPY);
}
static void
@@ -438,7 +439,8 @@ action_cut_cb (GtkAction *action,
EHTMLEditorView *view = e_html_editor_get_view (editor);
if (gtk_widget_has_focus (GTK_WIDGET (view)))
- webkit_web_view_cut_clipboard (WEBKIT_WEB_VIEW (view));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (view), WEBKIT_EDITING_COMMAND_CUT);
}
static void
@@ -705,7 +707,8 @@ action_paste_cb (GtkAction *action,
/* If WebView doesn't have focus, focus it */
if (gtk_widget_has_focus (GTK_WIDGET (view))) {
- webkit_web_view_paste_clipboard (WEBKIT_WEB_VIEW (view));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (view), WEBKIT_EDITING_COMMAND_PASTE);
e_html_editor_view_force_spell_check (view);
}
@@ -842,7 +845,8 @@ action_redo_cb (GtkAction *action,
EHTMLEditorView *view = e_html_editor_get_view (editor);
if (gtk_widget_has_focus (GTK_WIDGET (view)))
- webkit_web_view_redo (WEBKIT_WEB_VIEW (view));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (view), WEBKIT_EDITING_COMMAND_REDO);
}
static void
@@ -852,7 +856,8 @@ action_select_all_cb (GtkAction *action,
EHTMLEditorView *view = e_html_editor_get_view (editor);
if (gtk_widget_has_focus (GTK_WIDGET (view)))
- webkit_web_view_select_all (WEBKIT_WEB_VIEW (view));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (view), WEBKIT_EDITING_COMMAND_SELECT_ALL);
}
static void
@@ -909,7 +914,8 @@ action_undo_cb (GtkAction *action,
EHTMLEditorView *view = e_html_editor_get_view (editor);
if (gtk_widget_has_focus (GTK_WIDGET (view)))
- webkit_web_view_undo (WEBKIT_WEB_VIEW (view));
+ webkit_web_view_execute_editing_command (
+ WEBKIT_WEB_VIEW (view), WEBKIT_EDITING_COMMAND_UNDO);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]