[devhelp/webkit2-for-3.4: 7/9] Port editing commands to WebKit2



commit 7cd22bdfdc21a0b401b9df70de79c3400db17b71
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Fri Mar 2 14:26:24 2012 +0100

    Port editing commands to WebKit2

 src/dh-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 8774e29..39bec65 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -264,12 +264,12 @@ window_activate_copy (GtkAction *action,
                 gtk_clipboard_set_text (clipboard,
                                 dh_link_get_name(priv->selected_search_link), -1);
         } else {
-#ifdef HAVE_WEBKIT2
-/* TODO: Editor API */
-#else
                 WebKitWebView *web_view;
 
                 web_view = window_get_active_web_view (window);
+#ifdef HAVE_WEBKIT2
+                webkit_web_view_execute_editing_command (web_view, WEBKIT_EDITING_COMMAND_COPY);
+#else
                 webkit_web_view_copy_clipboard (web_view);
 #endif
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]