aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-06-21 18:30:16 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-06-21 18:45:22 +0800
commita8767266443074689200fff9ca43531d88d65aed (patch)
tree30d9ae7283c832c8618c761e8014fbfb994868cf /embed/ephy-web-view.c
parent32c03a55b26a95bebfbde11a167c4f563070d024 (diff)
downloadgsoc2013-epiphany-a8767266443074689200fff9ca43531d88d65aed.tar.gz
gsoc2013-epiphany-a8767266443074689200fff9ca43531d88d65aed.tar.zst
gsoc2013-epiphany-a8767266443074689200fff9ca43531d88d65aed.zip
ephy-web-view: Use webkit_web_view_load_uri() instead of webkit_web_view_open()
webkit_web_view_open() is deprecated in WebKit1 and webkit_web_view_load_uri() is compatible with WebKit2.
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index a3677e953..5aa5bff25 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2493,7 +2493,7 @@ effective_url_head_cb (SoupSession *session,
if (message->status_code == SOUP_STATUS_OK) {
char *uri = soup_uri_to_string (soup_message_get_uri (message), FALSE);
- webkit_web_view_open (WEBKIT_WEB_VIEW (view), uri);
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW (view), uri);
g_free (uri);
} else {
@@ -2508,7 +2508,7 @@ effective_url_head_cb (SoupSession *session,
g_error_free (error);
/* Load the original URI to trigger an error in the view. */
- webkit_web_view_open (WEBKIT_WEB_VIEW (view), data->original_uri);
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW (view), data->original_uri);
}
}
@@ -2565,7 +2565,7 @@ ephy_web_view_load_url (EphyWebView *view,
/* If we cannot even create a message fallback to the effective
* url, the gtk_show_uri code will make another attempt in
* EphyWindow's policy code. */
- webkit_web_view_open (WEBKIT_WEB_VIEW (view), effective_url);
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW (view), effective_url);
}
g_free (temp_url);
@@ -2576,7 +2576,7 @@ ephy_web_view_load_url (EphyWebView *view,
webkit_web_view_execute_script (WEBKIT_WEB_VIEW (view), decoded_url);
g_free (decoded_url);
} else
- webkit_web_view_open (WEBKIT_WEB_VIEW (view), effective_url);
+ webkit_web_view_load_uri (WEBKIT_WEB_VIEW (view), effective_url);
g_free (effective_url);
}