[epiphany] ephy-web-view: stop using notify::uri in WebKit2



commit e41411e1077d18b0ba1c0abda97298cf1f9b8304
Author: Xan Lopez <xan igalia com>
Date:   Tue Jun 26 19:36:26 2012 +0200

    ephy-web-view: stop using notify::uri in WebKit2
    
    In WebKit2 notify::uri will come with the requested URI even
    before/during the STARTED status, so we cannot use it in the same way
    as we were using it in WebKit1, where the semantincs were different.

 embed/ephy-web-view.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index dd13195..a1e7b73 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1188,6 +1188,9 @@ uri_changed_cb (WebKitWebView *web_view,
                 GParamSpec *spec,
                 gpointer data)
 {
+#ifdef HAVE_WEBKIT2
+  /* TODO: update adress when clicking anchor links. */
+#else
   char *uri;
   const char *current_address;
 
@@ -1201,6 +1204,7 @@ uri_changed_cb (WebKitWebView *web_view,
     ephy_web_view_set_address (EPHY_WEB_VIEW (web_view), uri);
 
   g_free (uri);
+#endif
 }
 
 #ifdef HAVE_WEBKIT2



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