epiphany r8093 - trunk/embed/webkit
- From: xan svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8093 - trunk/embed/webkit
- Date: Mon, 10 Mar 2008 19:57:45 +0000 (GMT)
Author: xan
Date: Mon Mar 10 19:57:45 2008
New Revision: 8093
URL: http://svn.gnome.org/viewvc/epiphany?rev=8093&view=rev
Log:
Add visited pages to history.
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	Mon Mar 10 19:57:45 2008
@@ -23,6 +23,7 @@
 
 #include "ephy-command-manager.h"
 #include "ephy-debug.h"
+#include "ephy-history.h"
 #include "ephy-embed-shell.h"
 #include "ephy-embed-single.h"
 #include "ephy-string.h"
@@ -66,6 +67,7 @@
   WebKitWebView *web_view;
   WebKitEmbedLoadState load_state;
   char *loading_uri;
+  EphyHistory *history;
 };
 
 static GList*
@@ -226,6 +228,12 @@
   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);
 }
 
@@ -312,6 +320,8 @@
                     NULL);
 
   webkit_embed_prefs_add_embed (embed);
+
+  embed->priv->history = EPHY_HISTORY (ephy_embed_shell_get_global_history (ephy_embed_shell_get_default ()));
 }
 
 static void
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]