diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-02-18 02:20:39 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-02-18 02:20:39 +0800 |
commit | 861720c0698e978b8278ab17f003c297f44beff4 (patch) | |
tree | e70e9ce25658814f8054f19f729cf72328d51e3a /embed/ephy-embed.c | |
parent | 8b6ad442626717a523b284720ba2545cbeb84181 (diff) | |
download | gsoc2013-epiphany-861720c0698e978b8278ab17f003c297f44beff4.tar gsoc2013-epiphany-861720c0698e978b8278ab17f003c297f44beff4.tar.gz gsoc2013-epiphany-861720c0698e978b8278ab17f003c297f44beff4.tar.bz2 gsoc2013-epiphany-861720c0698e978b8278ab17f003c297f44beff4.tar.lz gsoc2013-epiphany-861720c0698e978b8278ab17f003c297f44beff4.tar.xz gsoc2013-epiphany-861720c0698e978b8278ab17f003c297f44beff4.tar.zst gsoc2013-epiphany-861720c0698e978b8278ab17f003c297f44beff4.zip |
Add ephy-embed::new-document-now signal, does the same than old
ge-content-change (used by adblock extension).
Part of #502283
svn path=/trunk/; revision=7959
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r-- | embed/ephy-embed.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 267b353fc..98f9d30b5 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -345,6 +345,26 @@ ephy_embed_base_init (gpointer g_class) G_TYPE_NONE, 1, G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE); +/** + * EphyEmbed::new-document-now: + * @embed: + * @uri: URI of the new content + * + * The ::new-document-now signal is emitted when a new page content + * is being loaded into the browser. It's a good place to do view + * related changes, for example to restore the zoom level of a page + * or to set an user style sheet. + **/ + g_signal_new ("new-document-now", + EPHY_TYPE_EMBED, + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (EphyEmbedIface, new_document_now), + NULL, NULL, + g_cclosure_marshal_VOID__STRING, + G_TYPE_NONE, + 1, + G_TYPE_STRING | G_SIGNAL_TYPE_STATIC_SCOPE); + initialized = TRUE; } |