From e41411e1077d18b0ba1c0abda97298cf1f9b8304 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Tue, 26 Jun 2012 19:36:26 +0200 Subject: 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 file changed, 4 insertions(+) (limited to 'embed') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index dd13195b7..a1e7b7331 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 -- cgit