[Xfce4-commits] <midori:master> Use DOM API to get selected text in WebKitGTK+ 1.4.3

Christian Dywan noreply at xfce.org
Wed Oct 5 20:56:01 CEST 2011


Updating branch refs/heads/master
         to b46db9b1708291def5876a0d3522598f3c9785da (commit)
       from bd5a85fb9f21d74d0808d66f6af07e5f9f7cf615 (commit)

commit b46db9b1708291def5876a0d3522598f3c9785da
Author: Lucas Baudin <xapantu at gmail.com>
Date:   Wed Oct 5 20:50:31 2011 +0200

    Use DOM API to get selected text in WebKitGTK+ 1.4.3
    
    Related to https://bugs.launchpad.net/midori/+bug/799603

 midori/midori-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 570e329..fd45fb7 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -39,7 +39,7 @@
     #include <sys/utsname.h>
 #endif
 
-#if !WEBKIT_CHECK_VERSION (1, 5, 1)
+#if !WEBKIT_CHECK_VERSION (1, 4, 3)
 /* This is unstable API, so we need to declare it */
 gchar*
 webkit_web_view_get_selected_text (WebKitWebView* web_view);
@@ -4184,7 +4184,7 @@ midori_view_get_link_uri (MidoriView* view)
 gboolean
 midori_view_has_selection (MidoriView* view)
 {
-#if WEBKIT_CHECK_VERSION (1, 5, 1)
+#if WEBKIT_CHECK_VERSION (1, 4, 3)
     WebKitDOMDocument* doc;
     WebKitDOMDOMWindow* window;
     WebKitDOMDOMSelection* selection;
@@ -4194,7 +4194,7 @@ midori_view_has_selection (MidoriView* view)
     g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE);
 
 
-#if WEBKIT_CHECK_VERSION (1, 5, 1)
+#if WEBKIT_CHECK_VERSION (1, 4, 3)
     doc = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view->web_view));
     window = webkit_dom_document_get_default_view (doc);
     selection = webkit_dom_dom_window_get_selection (window);


More information about the Xfce4-commits mailing list