Implement midori_view_get_web_view function

This provides access to the child web view even if we change
the internal packing of MidoriView.
This commit is contained in:
Arno Renevier 2010-03-30 22:38:45 +02:00 committed by Christian Dywan
parent 3f36eddbc4
commit 3e67ce525f
2 changed files with 19 additions and 0 deletions

View file

@ -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,

View file

@ -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__ */