epiphany r8272 - trunk/embed/webkit
- From: xan svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8272 - trunk/embed/webkit
- Date: Wed, 4 Jun 2008 20:16:19 +0000 (UTC)
Author: xan
Date: Wed Jun 4 20:16:19 2008
New Revision: 8272
URL: http://svn.gnome.org/viewvc/epiphany?rev=8272&view=rev
Log:
Add pages to ephy history on load-committed.
On load-started there's no guarantee that the page actually exists.
Modified:
trunk/embed/webkit/webkit-embed.c
Modified: trunk/embed/webkit/webkit-embed.c
==============================================================================
--- trunk/embed/webkit/webkit-embed.c (original)
+++ trunk/embed/webkit/webkit-embed.c Wed Jun 4 20:16:19 2008
@@ -218,6 +218,11 @@
const gchar* uri = webkit_web_frame_get_uri(web_frame);
ephy_base_embed_location_changed (EPHY_BASE_EMBED (embed),
uri);
+
+ ephy_history_add_page (WEBKIT_EMBED (embed)->priv->history,
+ uri,
+ FALSE,
+ FALSE);
}
static void
@@ -228,12 +233,6 @@
WebKitEmbed *wembed = WEBKIT_EMBED (embed);
wembed->priv->load_state = WEBKIT_EMBED_LOAD_STARTED;
- if (wembed->priv->loading_uri)
- ephy_history_add_page (wembed->priv->history,
- wembed->priv->loading_uri,
- FALSE,
- FALSE);
-
update_load_state (wembed, web_view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]