[Commits] [SCM] claws branch, master, updated. 3.17.0-50-g9b21fc5
ticho at claws-mail.org
ticho at claws-mail.org
Fri Sep 7 22:21:23 CEST 2018
The branch, master has been updated
via 9b21fc565b75fa36796deeec305890995101dee4 (commit)
from 39641415ecdedbeb2322b02207ebab740e2e8907 (commit)
Summary of changes:
src/plugins/fancy/fancy_viewer.c | 9 +++++++++
1 file changed, 9 insertions(+)
- Log -----------------------------------------------------------------
commit 9b21fc565b75fa36796deeec305890995101dee4
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Fri Sep 7 22:19:43 2018 +0200
Restore the hovering-over-link callback in Fancy viewer.
We still need it to display the hovered-over link in statusbar.
diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 5cb133c..52a90e5 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -580,6 +580,13 @@ static void load_finished_cb(WebKitWebView *view, gint progress,
gtk_progress_bar_set_text(GTK_PROGRESS_BAR(viewer->progress), "");
}
+static void over_link_cb(WebKitWebView *view, const gchar *wtf,
+ const gchar *link, FancyViewer *viewer, void *wtfa)
+{
+ /* Display the link in the bottom statusbar. */
+ gtk_label_set_text(GTK_LABEL(viewer->l_link), link);
+}
+
static void load_progress_cb(WebKitWebView *view, GParamSpec* pspec,
FancyViewer *viewer)
{
@@ -1074,6 +1081,8 @@ static MimeViewer *fancy_viewer_create(void)
G_CALLBACK(load_start_cb), viewer);
g_signal_connect(G_OBJECT(viewer->view), "load-finished",
G_CALLBACK(load_finished_cb), viewer);
+ g_signal_connect(G_OBJECT(viewer->view), "hovering-over-link",
+ G_CALLBACK(over_link_cb), viewer);
g_signal_connect(G_OBJECT(viewer->view), "notify::progress",
G_CALLBACK(load_progress_cb), viewer);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list