[epiphany] Add a function to get the EphyWebView inside an EphyEmbed.
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Subject: [epiphany] Add a function to get the EphyWebView inside an EphyEmbed.
- Date: Sun, 21 Jun 2009 04:13:42 -0400 (EDT)
commit a53d67263986a2edb8d7a5d85df91c73bdbb80cb
Author: Xan Lopez <xan gnome org>
Date: Sun Jun 21 11:11:06 2009 +0300
Add a function to get the EphyWebView inside an EphyEmbed.
For the benefit of bindings.
embed/ephy-embed.c | 15 +++++++++++++++
embed/ephy-embed.h | 3 ++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 2a4404b..18c943f 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 879c401..0c11e47 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]