]> spindle.queued.net Git - midori/commitdiff
Ignore navigation for clicks in news feeds
authorDale Whittaker <dayul@users.sf.net>
Tue, 23 Mar 2010 19:26:08 +0000 (20:26 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 23 Mar 2010 19:27:00 +0000 (20:27 +0100)
extensions/feed-panel/feed-panel.c

index eacb56ab36638893d09e34b7ee86a3c81a7cff40..6620e9342d81f79659ecf79551ec1e6bd85410b4 100644 (file)
@@ -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*