[epiphany-extensions] Use correct object when connecting to signals
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany-extensions] Use correct object when connecting to signals
- Date: Fri, 4 Sep 2009 17:35:44 +0000 (UTC)
commit 7f88449c0b08e8660b8811d352a18595b9e01a2f
Author: Gustavo Noronha Silva <kov debian org>
Date: Fri Sep 4 14:34:39 2009 -0300
Use correct object when connecting to signals
The "content-blocked" and "new-document-now" signals are now provided
by EphyWebView, not EphyEmbed.
extensions/adblock/ephy-adblock-extension.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/extensions/adblock/ephy-adblock-extension.c b/extensions/adblock/ephy-adblock-extension.c
index f36dda2..b638129 100644
--- a/extensions/adblock/ephy-adblock-extension.c
+++ b/extensions/adblock/ephy-adblock-extension.c
@@ -517,6 +517,7 @@ ensure_adblocker (EphyAdblockExtension *ext,
EphyEmbed *embed)
{
AdBlocker *blocker;
+ EphyWebView *web_view = ephy_embed_get_web_view (embed);
blocker = g_object_get_data (G_OBJECT (embed), AD_BLOCKER_KEY);
@@ -530,10 +531,10 @@ ensure_adblocker (EphyAdblockExtension *ext,
g_object_set_data_full (G_OBJECT (embed), AD_BLOCKER_KEY,
blocker, (GDestroyNotify) g_object_unref);
- g_signal_connect (embed, "new-document-now",
+ g_signal_connect (web_view, "new-document-now",
G_CALLBACK (location_changed_cb), blocker);
- g_signal_connect (embed, "content-blocked",
+ g_signal_connect (web_view, "content-blocked",
G_CALLBACK (content_blocked_cb), blocker);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]