aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-03-11 03:57:45 +0800
committerXan Lopez <xan@src.gnome.org>2008-03-11 03:57:45 +0800
commit888c589bd3ee139571fccf55d2b4bdfee27c2c7f (patch)
tree59ab61c51e4935a96048a2e77ef30132129355cb /embed
parent47ed2de5329c3338c086cf396d8b296a0b58cf37 (diff)
downloadgsoc2013-epiphany-888c589bd3ee139571fccf55d2b4bdfee27c2c7f.tar
gsoc2013-epiphany-888c589bd3ee139571fccf55d2b4bdfee27c2c7f.tar.gz
gsoc2013-epiphany-888c589bd3ee139571fccf55d2b4bdfee27c2c7f.tar.bz2
gsoc2013-epiphany-888c589bd3ee139571fccf55d2b4bdfee27c2c7f.tar.lz
gsoc2013-epiphany-888c589bd3ee139571fccf55d2b4bdfee27c2c7f.tar.xz
gsoc2013-epiphany-888c589bd3ee139571fccf55d2b4bdfee27c2c7f.tar.zst
gsoc2013-epiphany-888c589bd3ee139571fccf55d2b4bdfee27c2c7f.zip
Add visited pages to history.
svn path=/trunk/; revision=8093
Diffstat (limited to 'embed')
-rw-r--r--embed/webkit/webkit-embed.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index b83d645c5..84851b0b9 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -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 @@ struct WebKitEmbedPrivate
WebKitWebView *web_view;
WebKitEmbedLoadState load_state;
char *loading_uri;
+ EphyHistory *history;
};
static GList*
@@ -226,6 +228,12 @@ webkit_embed_load_started_cb (WebKitWebView *web_view,
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 @@ webkit_embed_init (WebKitEmbed *embed)
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