aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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
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')
-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