[epiphany-extensions] adblock: disconnect the signals from the right widget



commit 7a587f826af8c2b6b6da55d70e767c253145b4d2
Author: Xan Lopez <xan gnome org>
Date:   Sat Dec 5 23:41:04 2009 +0200

    adblock: disconnect the signals from the right widget

 extensions/adblock/ephy-adblock-extension.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/extensions/adblock/ephy-adblock-extension.c b/extensions/adblock/ephy-adblock-extension.c
index b638129..6016867 100644
--- a/extensions/adblock/ephy-adblock-extension.c
+++ b/extensions/adblock/ephy-adblock-extension.c
@@ -477,7 +477,7 @@ impl_detach_window (EphyExtension *ext,
 }
 
 static void
-content_blocked_cb (EphyEmbed *embed,
+content_blocked_cb (EphyWebView *view,
 		    const char *address,
 		    AdBlocker *blocker)
 {
@@ -487,7 +487,7 @@ content_blocked_cb (EphyEmbed *embed,
 }
 
 static void
-location_changed_cb (EphyEmbed *embed,
+location_changed_cb (EphyWebView *view,
 		     const char *address,
 		     AdBlocker *blocker)
 {
@@ -561,14 +561,15 @@ impl_detach_tab (EphyExtension *ext,
 		 EphyEmbed *embed)
 {
 	AdBlocker *blocker;
+	EphyWebView *web_view = ephy_embed_get_web_view (embed);
 
 	blocker = g_object_steal_data (G_OBJECT (embed), AD_BLOCKER_KEY);
 	g_return_if_fail (blocker != NULL);
 
 	g_signal_handlers_disconnect_by_func
-		(embed, G_CALLBACK (content_blocked_cb), blocker);
+		(view, G_CALLBACK (content_blocked_cb), blocker);
 	g_signal_handlers_disconnect_by_func
-		(embed, G_CALLBACK (location_changed_cb), blocker);
+		(view, G_CALLBACK (location_changed_cb), blocker);
 	g_signal_handlers_disconnect_by_func
 		(blocker, G_CALLBACK (num_blocked_cb), embed);
 



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