diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-04-11 02:52:05 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-04-11 02:52:05 +0800 |
commit | b88345e8ac844db6bbefecff212e5e4ca37905f7 (patch) | |
tree | 47020464202bda477accbeee80510346e541fee9 | |
parent | d741e9b7703b4911cee4c4069845da9d37fc4b7b (diff) | |
download | gsoc2013-epiphany-b88345e8ac844db6bbefecff212e5e4ca37905f7.tar gsoc2013-epiphany-b88345e8ac844db6bbefecff212e5e4ca37905f7.tar.gz gsoc2013-epiphany-b88345e8ac844db6bbefecff212e5e4ca37905f7.tar.bz2 gsoc2013-epiphany-b88345e8ac844db6bbefecff212e5e4ca37905f7.tar.lz gsoc2013-epiphany-b88345e8ac844db6bbefecff212e5e4ca37905f7.tar.xz gsoc2013-epiphany-b88345e8ac844db6bbefecff212e5e4ca37905f7.tar.zst gsoc2013-epiphany-b88345e8ac844db6bbefecff212e5e4ca37905f7.zip |
Emit document-change event on fastback restore. Fixes bug #312785.
2006-04-10 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-embed.cpp:
Emit document-change event on fastback restore. Fixes bug #312785.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 15 |
2 files changed, 20 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-04-10 Christian Persch <chpe@cvs.gnome.org> + + * embed/mozilla/mozilla-embed.cpp: + + Emit document-change event on fastback restore. Fixes bug #312785. + 2006-04-09 Christian Persch <chpe@cvs.gnome.org> * data/default-prefs-common.js: diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index cbf728559..9d27d1c27 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -923,6 +923,19 @@ update_load_state (MozillaEmbed *membed, gint state) priv->browser->GetDocumentType ()); } +#ifdef HAVE_GECKO_1_8 + if (state & GTK_MOZ_EMBED_FLAG_RESTORING && + priv->load_state == MOZILLA_EMBED_LOAD_STARTED) + { + priv->load_state = MOZILLA_EMBED_LOAD_LOADING; + + char *address; + address = gtk_moz_embed_get_location (GTK_MOZ_EMBED (membed)); + g_signal_emit_by_name (membed, "ge-content-change", address); + g_free (address); + } +#endif + if (state & GTK_MOZ_EMBED_FLAG_IS_NETWORK) { if (state & GTK_MOZ_EMBED_FLAG_START) @@ -997,7 +1010,7 @@ mozilla_embed_net_state_all_cb (GtkMozEmbed *embed, const char *aURI, update_load_state (membed, state); - g_signal_emit_by_name (membed, "ge_net_state", aURI, estate); + g_signal_emit_by_name (membed, "ge_net_state", aURI, /* FIXME: (gulong) */ estate); } static gboolean |