[Xfce4-commits] <midori:master> Don't show infobar installer on "view source" pages

Christian Dywan noreply at xfce.org
Fri Feb 18 02:24:01 CET 2011


Updating branch refs/heads/master
         to 85bdfac81ac7551d22f8c3b76a2e70f0c4c27f07 (commit)
       from 846a7f708833f4cce08d3e2c75865eadadb24e7e (commit)

commit 85bdfac81ac7551d22f8c3b76a2e70f0c4c27f07
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Fri Feb 18 02:22:11 2011 +0100

    Don't show infobar installer on "view source" pages

 extensions/addons.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/extensions/addons.c b/extensions/addons.c
index 10c55c1..d0bba27 100644
--- a/extensions/addons.c
+++ b/extensions/addons.c
@@ -248,6 +248,12 @@ addons_notify_load_status_cb (MidoriView*      view,
                               MidoriExtension* extension)
 {
     const gchar* uri = midori_view_get_display_uri (view);
+    WebKitWebView* web_view = WEBKIT_WEB_VIEW (midori_view_get_web_view (view));
+
+    #if WEBKIT_CHECK_VERSION (1, 1, 14)
+    if (webkit_web_view_get_view_source_mode (web_view))
+        return;
+    #endif
 
     if (uri && *uri)
     {



More information about the Xfce4-commits mailing list