]> spindle.queued.net Git - midori/commitdiff
Implement midori_view_get_web_view function
authorArno Renevier <arno@renevier.net>
Tue, 30 Mar 2010 20:38:45 +0000 (22:38 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 30 Mar 2010 22:18:41 +0000 (00:18 +0200)
This provides access to the child web view even if we change
the internal packing of MidoriView.

midori/midori-view.c
midori/midori-view.h

index 3f9d21583035a9ca04a8a4c770791319d3130789..4a4475e53d7852a65457002dcbcb1cb300718d78 100644 (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,
index ca083b489b244833dfd22544c1fc12fcba75b6a2..3bbc7d9751cf26b3de2fd3d45d83cdeb59b761c9 100644 (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__ */