From: Arno Renevier Date: Tue, 30 Mar 2010 20:38:45 +0000 (+0200) Subject: Implement midori_view_get_web_view function X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e67ce525f91d40b1288eb6d778a76c9316eb941;p=midori Implement midori_view_get_web_view function This provides access to the child web view even if we change the internal packing of MidoriView. --- 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__ */