diff options
author | Xan Lopez <xan@gnome.org> | 2010-05-02 21:57:42 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-05-03 19:40:33 +0800 |
commit | 64468d01ba26f414eefff08541caf4c6f6168ffb (patch) | |
tree | e18b4e583d615b0015252db31fd5f57c5a92f8dd /embed | |
parent | fb45861008ad3bc272ef50f11c37be64078ff7bd (diff) | |
download | gsoc2013-epiphany-64468d01ba26f414eefff08541caf4c6f6168ffb.tar gsoc2013-epiphany-64468d01ba26f414eefff08541caf4c6f6168ffb.tar.gz gsoc2013-epiphany-64468d01ba26f414eefff08541caf4c6f6168ffb.tar.bz2 gsoc2013-epiphany-64468d01ba26f414eefff08541caf4c6f6168ffb.tar.lz gsoc2013-epiphany-64468d01ba26f414eefff08541caf4c6f6168ffb.tar.xz gsoc2013-epiphany-64468d01ba26f414eefff08541caf4c6f6168ffb.tar.zst gsoc2013-epiphany-64468d01ba26f414eefff08541caf4c6f6168ffb.zip |
Move link message updating to EphyWebView
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed.c | 10 | ||||
-rw-r--r-- | embed/ephy-web-view.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 5f1a39177..a7758f9e0 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -170,15 +170,6 @@ load_status_changed_cb (WebKitWebView *view, } static void -hovering_over_link_cb (WebKitWebView *web_view, - char *title, - char *location, - EphyEmbed *embed) -{ - ephy_web_view_set_link_message (EPHY_WEB_VIEW (web_view), location); -} - -static void zoom_changed_cb (WebKitWebView *web_view, GParamSpec *pspec, EphyEmbed *embed) @@ -806,7 +797,6 @@ ephy_embed_constructed (GObject *object) g_object_connect (web_view, "signal::notify::load-status", G_CALLBACK (load_status_changed_cb), embed, "signal::resource-request-starting", G_CALLBACK (resource_request_starting_cb), embed, - "signal::hovering-over-link", G_CALLBACK (hovering_over_link_cb), embed, "signal::download-requested", G_CALLBACK (download_requested_cb), embed, "signal::notify::zoom-level", G_CALLBACK (zoom_changed_cb), embed, NULL); diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 21925321b..19498da67 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1344,6 +1344,15 @@ uri_changed_cb (WebKitWebView *web_view, } static void +hovering_over_link_cb (EphyWebView *web_view, + char *title, + char *location, + gpointer data) +{ + ephy_web_view_set_link_message (web_view, location); +} + +static void ephy_web_view_constructed (GObject *object) { EphyWebView *web_view = EPHY_WEB_VIEW (object); @@ -1351,6 +1360,7 @@ ephy_web_view_constructed (GObject *object) g_object_connect (web_view, "signal::notify::title", G_CALLBACK (title_changed_cb), NULL, "signal::notify::uri", G_CALLBACK (uri_changed_cb), NULL, + "signal::hovering-over-link", G_CALLBACK (hovering_over_link_cb), NULL, NULL); } |