[Xfce4-commits] <midori:master> Implement midori_view_get_web_view function

Christian Dywan noreply at xfce.org
Wed Mar 31 00:18:01 CEST 2010


Updating branch refs/heads/master
         to 3e67ce525f91d40b1288eb6d778a76c9316eb941 (commit)
       from 3f36eddbc4e95704544b5ca792c6ce28adafe141 (commit)

commit 3e67ce525f91d40b1288eb6d778a76c9316eb941
Author: Arno Renevier <arno at renevier.net>
Date:   Tue Mar 30 22:38:45 2010 +0200

    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(+), 0 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 3f9d215..4a4475e 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 ca083b4..3bbc7d9 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__ */



More information about the Xfce4-commits mailing list