aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--embed/ephy-embed.c15
-rw-r--r--embed/ephy-embed.h3
2 files changed, 17 insertions, 1 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);
+}
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index 879c40193..0c11e4788 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -52,7 +52,8 @@ struct EphyEmbedClass {
GtkScrolledWindowClass parent_class;
};
-GType ephy_embed_get_type (void);
+GType ephy_embed_get_type (void);
+EphyWebView* ephy_embed_get_web_view (EphyEmbed *embed);
G_END_DECLS