aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-06-21 16:11:06 +0800
committerXan Lopez <xan@gnome.org>2009-06-21 16:11:06 +0800
commita53d67263986a2edb8d7a5d85df91c73bdbb80cb (patch)
tree6d963caad6f64ea3fff4095236b5f4927d92486b /embed/ephy-embed.c
parentf570f60a13418e0dfe7bc75f7f3b2f5555d1fa06 (diff)
downloadgsoc2013-epiphany-a53d67263986a2edb8d7a5d85df91c73bdbb80cb.tar
gsoc2013-epiphany-a53d67263986a2edb8d7a5d85df91c73bdbb80cb.tar.gz
gsoc2013-epiphany-a53d67263986a2edb8d7a5d85df91c73bdbb80cb.tar.bz2
gsoc2013-epiphany-a53d67263986a2edb8d7a5d85df91c73bdbb80cb.tar.lz
gsoc2013-epiphany-a53d67263986a2edb8d7a5d85df91c73bdbb80cb.tar.xz
gsoc2013-epiphany-a53d67263986a2edb8d7a5d85df91c73bdbb80cb.tar.zst
gsoc2013-epiphany-a53d67263986a2edb8d7a5d85df91c73bdbb80cb.zip
Add a function to get the EphyWebView inside an EphyEmbed.
For the benefit of bindings.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 2a4404bf3..18c943f6b 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -720,3 +720,18 @@ ephy_embed_init (EphyEmbed *embed)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
}
+/**
+ * ephy_embed_get_web_view:
+ * @embed: and #EphyEmbed
+ *
+ * Returns the #EphyWebView wrapped by @embed.
+ *
+ * Returns: an #EphyWebView
+ **/
+EphyWebView*
+ephy_embed_get_web_view (EphyEmbed *embed)
+{
+ g_return_val_if_fail (EPHY_IS_EMBED (embed), NULL);
+
+ return EPHY_WEB_VIEW (embed->priv->web_view);
+}