[evolution/wip-webkit2] EWebView - Fix click on link in web view
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip-webkit2] EWebView - Fix click on link in web view
- Date: Tue, 10 Dec 2013 15:46:16 +0000 (UTC)
commit 6f4ada6cc99a94c4c41c4d5117cdabd37e67c0ff
Author: Tomas Popela <tpopela redhat com>
Date: Tue Dec 10 16:45:02 2013 +0100
EWebView - Fix click on link in web view
e-util/e-web-view.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 9a26c14..755a6a4 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -546,6 +546,7 @@ web_view_decide_policy_cb (EWebView *web_view,
{
EWebViewClass *class;
WebKitNavigationPolicyDecision *navigation_decision;
+ WebKitNavigationType navigation_type;
WebKitURIRequest *request;
const gchar *uri;
@@ -553,8 +554,9 @@ web_view_decide_policy_cb (EWebView *web_view,
return FALSE;
navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);
+ navigation_type = webkit_navigation_policy_decision_get_navigation_type (navigation_decision);
- if (navigation_decision != WEBKIT_NAVIGATION_TYPE_LINK_CLICKED)
+ if (navigation_type != WEBKIT_NAVIGATION_TYPE_LINK_CLICKED)
return FALSE;
/* XXX WebKitWebView does not provide a class method for
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]