[epiphany] Move link message updating to EphyWebView



commit 64468d01ba26f414eefff08541caf4c6f6168ffb
Author: Xan Lopez <xan gnome org>
Date:   Sun May 2 15:57:42 2010 +0200

    Move link message updating to EphyWebView

 embed/ephy-embed.c    |   10 ----------
 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 5f1a391..a7758f9 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 2192532..19498da 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]