From 15a2859c78526fd88586b5f84500f129ad3299c3 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 6 Nov 2007 18:41:43 +0000 Subject: Connect to "hovering-over-link" signal in WebKit to set link_message. svn path=/trunk/; revision=7638 --- embed/webkit/webkit-embed.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/embed/webkit/webkit-embed.cpp b/embed/webkit/webkit-embed.cpp index 499819abc..4442b9a53 100644 --- a/embed/webkit/webkit-embed.cpp +++ b/embed/webkit/webkit-embed.cpp @@ -176,6 +176,15 @@ webkit_embed_load_finished_cb (WebKitPage *page, update_load_state (wembed, page); } +static void +webkit_embed_hovering_over_link_cb (WebKitPage *page, + char *title, + char *location, + EphyEmbed *embed) +{ + ephy_base_embed_set_link_message (EPHY_BASE_EMBED (embed), location); +} + static void webkit_embed_class_init (WebKitEmbedClass *klass) { @@ -222,6 +231,8 @@ webkit_embed_init (WebKitEmbed *embed) G_CALLBACK (webkit_embed_title_changed_cb), embed); g_signal_connect (G_OBJECT (page), "load-progress-changed", G_CALLBACK (webkit_embed_load_progress_changed_cb), embed); + g_signal_connect (G_OBJECT (page), "hovering-over-link", + G_CALLBACK (webkit_embed_hovering_over_link_cb), embed); } static void -- cgit v1.2.3