[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-98-gf6269b6eb
paul at claws-mail.org
paul at claws-mail.org
Mon May 17 18:04:45 CEST 2021
The branch, gtk3 has been updated
via f6269b6eb76e33668b9c3b0c37b72aacb37ec58c (commit)
from 0ae84961ce30b9049aebb1bebe3c37bd030d282e (commit)
Summary of changes:
src/plugins/fancy/fancy_viewer.c | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
- Log -----------------------------------------------------------------
commit f6269b6eb76e33668b9c3b0c37b72aacb37ec58c
Author: paul <paul at claws-mail.org>
Date: Mon May 17 17:04:41 2021 +0100
fix code style a little
diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 92a82af70..4e232f7f7 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -453,24 +453,25 @@ navigation_policy_cb (WebKitWebView *web_view,
if (viewer->cur_link) {
if (!strncmp(viewer->cur_link, "mailto:", 7)) {
- debug_print("Opening message window\n");
- compose_new(NULL, viewer->cur_link + 7, NULL);
- webkit_policy_decision_ignore(policy_decision);
- } else if (!strncmp(viewer->cur_link, "file://", 7) || !strcmp(viewer->cur_link, "about:blank")) {
- debug_print("local navigation request ACCEPTED\n");
- webkit_policy_decision_use(policy_decision);
+ debug_print("Opening message window\n");
+ compose_new(NULL, viewer->cur_link + 7, NULL);
+ webkit_policy_decision_ignore(policy_decision);
+ } else if (!strncmp(viewer->cur_link, "file://", 7) ||
+ !strcmp(viewer->cur_link, "about:blank")) {
+ debug_print("local navigation request ACCEPTED\n");
+ webkit_policy_decision_use(policy_decision);
} else if (viewer->override_prefs_external &&
- webkit_navigation_action_get_navigation_type(navigation_action) == WEBKIT_NAVIGATION_TYPE_LINK_CLICKED) {
- debug_print("remote navigation request OPENED\n");
- open_uri(viewer->cur_link, prefs_common_get_uri_cmd());
- webkit_policy_decision_ignore(policy_decision);
+ webkit_navigation_action_get_navigation_type(navigation_action) == WEBKIT_NAVIGATION_TYPE_LINK_CLICKED) {
+ debug_print("remote navigation request OPENED\n");
+ open_uri(viewer->cur_link, prefs_common_get_uri_cmd());
+ webkit_policy_decision_ignore(policy_decision);
} else if (viewer->override_prefs_remote_content) {
- debug_print("remote navigation request ACCEPTED\n");
- webkit_policy_decision_use(policy_decision);
+ debug_print("remote navigation request ACCEPTED\n");
+ webkit_policy_decision_use(policy_decision);
} else {
- debug_print("remote navigation request IGNORED\n");
- fancy_show_notice(viewer, _("Remote content loading is disabled."));
- webkit_policy_decision_ignore(policy_decision);
+ debug_print("remote navigation request IGNORED\n");
+ fancy_show_notice(viewer, _("Remote content loading is disabled."));
+ webkit_policy_decision_ignore(policy_decision);
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list