aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2007-11-07 02:41:43 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-11-07 02:41:43 +0800
commit15a2859c78526fd88586b5f84500f129ad3299c3 (patch)
treeb3df03d1500d469f4833ccf452b37b022b4c0048
parent7635194ece94dc3235fa557ecae8c3a7e838eddd (diff)
downloadgsoc2013-epiphany-15a2859c78526fd88586b5f84500f129ad3299c3.tar
gsoc2013-epiphany-15a2859c78526fd88586b5f84500f129ad3299c3.tar.gz
gsoc2013-epiphany-15a2859c78526fd88586b5f84500f129ad3299c3.tar.bz2
gsoc2013-epiphany-15a2859c78526fd88586b5f84500f129ad3299c3.tar.lz
gsoc2013-epiphany-15a2859c78526fd88586b5f84500f129ad3299c3.tar.xz
gsoc2013-epiphany-15a2859c78526fd88586b5f84500f129ad3299c3.tar.zst
gsoc2013-epiphany-15a2859c78526fd88586b5f84500f129ad3299c3.zip
Connect to "hovering-over-link" signal in WebKit to set link_message.
svn path=/trunk/; revision=7638
-rw-r--r--embed/webkit/webkit-embed.cpp11
1 files changed, 11 insertions, 0 deletions
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
@@ -177,6 +177,15 @@ webkit_embed_load_finished_cb (WebKitPage *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)
{
GObjectClass *object_class = G_OBJECT_CLASS (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