aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-06-02 23:56:28 +0800
committerXan Lopez <xan@gnome.org>2009-06-03 00:08:50 +0800
commita62be2bb0ad051a60b99b02e39c58f96dd5b3b9e (patch)
treec551691573045b474c0cb894cc98ba4dbd5fc6bb /embed/ephy-web-view.c
parent9f4b66ef75418ea4f51179432f4d5aeca4e586ed (diff)
downloadgsoc2013-epiphany-a62be2bb0ad051a60b99b02e39c58f96dd5b3b9e.tar.gz
gsoc2013-epiphany-a62be2bb0ad051a60b99b02e39c58f96dd5b3b9e.tar.zst
gsoc2013-epiphany-a62be2bb0ad051a60b99b02e39c58f96dd5b3b9e.zip
Move load_url method to EphyWebView.
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 7606e6d01..10e6d3475 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -77,6 +77,23 @@ ephy_web_view_load_request (EphyWebView *web_view,
}
/**
+ * ephy_web_view_load_url:
+ * @embed: an #EphyWebView
+ * @url: a URL
+ *
+ * Loads @url in @embed.
+ **/
+void
+ephy_web_view_load_url (EphyWebView *view,
+ const char *url)
+{
+ g_return_if_fail (EPHY_IS_WEB_VIEW (view));
+ g_return_if_fail (url);
+
+ webkit_web_view_open (WEBKIT_WEB_VIEW (view), url);
+}
+
+/**
* ephy_web_view_copy_back_history:
* @source: the #EphyWebView from which to get the back history
* @dest: the #EphyWebView to copy the history to