[Xfce4-commits] <midori:master> Ignore navigation for clicks in news feeds

Christian Dywan noreply at xfce.org
Tue Mar 23 20:34:01 CET 2010


Updating branch refs/heads/master
         to a8c055bdbcfdaf853edc4b3e5be798af13917aa8 (commit)
       from 6496dd5403ecd03705d8d7f0d6bca1aacc0d8e3f (commit)

commit a8c055bdbcfdaf853edc4b3e5be798af13917aa8
Author: Dale Whittaker <dayul at users.sf.net>
Date:   Tue Mar 23 20:26:08 2010 +0100

    Ignore navigation for clicks in news feeds

 extensions/feed-panel/feed-panel.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/extensions/feed-panel/feed-panel.c b/extensions/feed-panel/feed-panel.c
index eacb56a..6620e93 100644
--- a/extensions/feed-panel/feed-panel.c
+++ b/extensions/feed-panel/feed-panel.c
@@ -657,8 +657,12 @@ webview_navigation_request_cb (WebKitWebView*             web_view,
         uri = webkit_network_request_get_uri (request);
         n = midori_browser_add_uri (browser, uri);
         midori_browser_set_current_page (browser, n);
+        webkit_web_policy_decision_ignore (policy_decision);
+
+        return TRUE;
     }
-    return TRUE;
+
+    return FALSE;
 }
 
 static const gchar*



More information about the Xfce4-commits mailing list