From 3e67ce525f91d40b1288eb6d778a76c9316eb941 Mon Sep 17 00:00:00 2001 From: Arno Renevier Date: Tue, 30 Mar 2010 22:38:45 +0200 Subject: [PATCH] Implement midori_view_get_web_view function This provides access to the child web view even if we change the internal packing of MidoriView. --- midori/midori-view.c | 16 ++++++++++++++++ midori/midori-view.h | 3 +++ 2 files changed, 19 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index 3f9d2158..4a4475e5 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -4859,6 +4859,22 @@ midori_view_get_snapshot (MidoriView* view, return pixbuf; } +/** + * midori_view_get_web_view + * @view: a #MidoriView + * + * Returns: The #WebKitWebView for this view + * + * Since: 0.2.5 + **/ +GtkWidget* +midori_view_get_web_view (MidoriView* view) +{ + g_return_val_if_fail (MIDORI_IS_VIEW (view), NULL); + + return view->web_view; +} + static void thumb_view_load_status_cb (MidoriView* thumb_view, GParamSpec* pspec, diff --git a/midori/midori-view.h b/midori/midori-view.h index ca083b48..3bbc7d97 100644 --- a/midori/midori-view.h +++ b/midori/midori-view.h @@ -209,6 +209,9 @@ midori_view_get_snapshot (MidoriView* view, gint width, gint height); +GtkWidget* +midori_view_get_web_view (MidoriView* view); + G_END_DECLS #endif /* __MIDORI_VIEW_H__ */