aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2006-01-09 06:28:09 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2006-01-09 06:28:09 +0800
commitc682e0acc7c7ff2e9c194d7db1a5b756ac6beb69 (patch)
tree42bd9a664c00471209c04abed19ae83197c0a340 /embed/ephy-embed.c
parent02aa0ad6720d78042850f3b8cd92d020aad47881 (diff)
downloadgsoc2013-epiphany-c682e0acc7c7ff2e9c194d7db1a5b756ac6beb69.tar
gsoc2013-epiphany-c682e0acc7c7ff2e9c194d7db1a5b756ac6beb69.tar.gz
gsoc2013-epiphany-c682e0acc7c7ff2e9c194d7db1a5b756ac6beb69.tar.bz2
gsoc2013-epiphany-c682e0acc7c7ff2e9c194d7db1a5b756ac6beb69.tar.lz
gsoc2013-epiphany-c682e0acc7c7ff2e9c194d7db1a5b756ac6beb69.tar.xz
gsoc2013-epiphany-c682e0acc7c7ff2e9c194d7db1a5b756ac6beb69.tar.zst
gsoc2013-epiphany-c682e0acc7c7ff2e9c194d7db1a5b756ac6beb69.zip
EphyContentPolicy now emits a signal when a content is blocked.
2006-01-08 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/EphyContentPolicy.h: * embed/mozilla/EphyContentPolicy.cpp: (ShouldLoad): * embed/ephy-embed.h: * embed/ephy-embed.c: (ephy_embed_base_init): EphyContentPolicy now emits a signal when a content is blocked.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index c016408c7..7c6a5bf52 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -386,6 +386,22 @@ ephy_embed_base_init (gpointer g_class)
ephy_marshal_BOOLEAN__VOID,
G_TYPE_BOOLEAN,
0);
+/**
+ * EphyEmbed::content-blocked:
+ * @embed:
+ * @uri: blocked URI
+ *
+ * The ::content-blocked signal is emitted when an url has been blocked.
+ **/
+ g_signal_new ("content-blocked",
+ EPHY_TYPE_EMBED,
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (EphyEmbedIface, content_blocked),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__STRING,
+ G_TYPE_NONE,
+ 1,
+ G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
initialized = TRUE;
}