aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed.cpp
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-12-30 00:59:25 +0800
committerXan Lopez <xan@src.gnome.org>2007-12-30 00:59:25 +0800
commit8fdb4086efaad93d0c9349520081a9608853fca0 (patch)
treeed0a05d32fbe2cc2575e8ec5013fbc6f6ff725d8 /embed/mozilla/mozilla-embed.cpp
parenteeecbfedf3b0a9c1bdf3f17981dc885603d268af (diff)
downloadgsoc2013-epiphany-8fdb4086efaad93d0c9349520081a9608853fca0.tar
gsoc2013-epiphany-8fdb4086efaad93d0c9349520081a9608853fca0.tar.gz
gsoc2013-epiphany-8fdb4086efaad93d0c9349520081a9608853fca0.tar.bz2
gsoc2013-epiphany-8fdb4086efaad93d0c9349520081a9608853fca0.tar.lz
gsoc2013-epiphany-8fdb4086efaad93d0c9349520081a9608853fca0.tar.xz
gsoc2013-epiphany-8fdb4086efaad93d0c9349520081a9608853fca0.tar.zst
gsoc2013-epiphany-8fdb4086efaad93d0c9349520081a9608853fca0.zip
Use the new interfaces for backward/forward menus.
Store nth data in the HistoryItem itself. Try to use HISTORY_ITEM_DATA_KEY data from object in navigation action before falling back to URL_DATA_KEY. Bug #506005 svn path=/trunk/; revision=7834
Diffstat (limited to 'embed/mozilla/mozilla-embed.cpp')
-rw-r--r--embed/mozilla/mozilla-embed.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index ba1b589d8..ad52392fb 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -971,10 +971,9 @@ impl_get_previous_history_item (EphyEmbed *embed)
static void
impl_go_to_history_item (EphyEmbed *embed, EphyHistoryItem *item)
{
- int index = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item),
- HISTORY_ITEM_INDEX_KEY));
+ MozillaHistoryItem *mitem = MOZILLA_HISTORY_ITEM (item);
- MOZILLA_EMBED (embed)->priv->browser->GoToHistoryIndex (index);
+ MOZILLA_EMBED (embed)->priv->browser->GoToHistoryIndex (mitem->nth);
}
static void