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/webkit | |
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/webkit')
-rw-r--r-- | embed/webkit/webkit-embed.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index 6447f91b9..5a8546ae5 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -181,12 +181,16 @@ update_load_state (WebKitEmbed *embed, WebKitWebView *web_view) EphyEmbedNetState estate = EPHY_EMBED_STATE_UNKNOWN; if (embed->priv->load_state == WEBKIT_EMBED_LOAD_STARTED) + { estate = (EphyEmbedNetState) (estate | EPHY_EMBED_STATE_START | EPHY_EMBED_STATE_NEGOTIATING | EPHY_EMBED_STATE_IS_REQUEST | EPHY_EMBED_STATE_IS_NETWORK); + g_signal_emit_by_name (embed, "new-document-now", embed->priv->loading_uri); + } + if (embed->priv->load_state == WEBKIT_EMBED_LOAD_LOADING) estate = (EphyEmbedNetState) (estate | EPHY_EMBED_STATE_TRANSFERRING | |