aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-single.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-12 03:15:27 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-12 03:15:27 +0800
commit4f4141d49c35db2106fc8b84f08a03a4e416dc20 (patch)
tree889188d66ca9d0c93440fc954cef5ce609266031 /embed/ephy-embed-single.c
parentfa0d7a25b665db353b859e3785271d02dfb2be36 (diff)
downloadgsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.gz
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.bz2
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.lz
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.xz
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.zst
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.zip
Add "check-content" signal.
2005-01-11 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-single.c: (ephy_embed_single_iface_init): * embed/ephy-embed-single.h: Add "check-content" signal. * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyContentPolicy.h: Emit from here. * lib/ephy-marshal.list: New marshal.
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r--embed/ephy-embed-single.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 012b11795..6f0d06321 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -21,6 +21,7 @@
#include "config.h"
#include "ephy-embed-single.h"
+#include "ephy-embed-type-builtins.h"
#include "ephy-marshal.h"
static void ephy_embed_single_iface_init (gpointer g_class);
@@ -116,6 +117,34 @@ ephy_embed_single_iface_init (gpointer g_class)
G_TYPE_STRING,
G_TYPE_STRING);
+/**
+ * EphyEmbedSingle::check_content:
+ * @single:
+ * @type: the type of content
+ * @address: the address of the content
+ * @requesting_address: the address of the requesting content (may be empty)
+ * @mime_type_guess: a guess of the mime type of the content (may be empty)
+ * @mime_type: the MIME type of the content
+ *
+ * The ::check-content signal is emitted when Epiphany loads any content from
+ * anywhere.
+ *
+ * If a connected callback returns %TRUE, the
+ * signal emission will stop, and the load be aborted.
+ **/
+ g_signal_new ("check_content",
+ EPHY_TYPE_EMBED_SINGLE,
+ G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (EphyEmbedSingleIface, check_content),
+ g_signal_accumulator_true_handled, NULL,
+ ephy_marshal_BOOLEAN__ENUM_STRING_STRING_STRING,
+ G_TYPE_BOOLEAN,
+ 4,
+ EPHY_TYPE_CONTENT_CHECK_TYPE,
+ G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE,
+ G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE,
+ G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE);
+
initialised = TRUE;
}
}