Author: xan
Date: Sun Feb 10 14:52:00 2008
New Revision: 7926
URL: http://svn.gnome.org/viewvc/epiphany?rev=7926&view=rev
Log:
Do not use history API if we only want to go back or forward, only use it
when necessary (ie, when we want to open item in new tab).
Bug #515554
Modified:
trunk/src/ephy-navigation-action.c
Modified: trunk/src/ephy-navigation-action.c
==============================================================================
--- trunk/src/ephy-navigation-action.c (original)
+++ trunk/src/ephy-navigation-action.c Sun Feb 10 14:52:00 2008
@@ -394,11 +394,6 @@
if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_BACK)
{
- EphyHistoryItem *back_item;
-
- back_item = ephy_embed_get_previous_history_item (embed);
- if (back_item == NULL) return;
-
if (ephy_gui_is_middle_click ())
{
embed = ephy_link_open (EPHY_LINK (action),
@@ -406,16 +401,10 @@
NULL,
EPHY_LINK_NEW_TAB);
}
- ephy_embed_go_to_history_item (embed, back_item);
- g_object_unref (back_item);
+ ephy_embed_go_back (embed);
}
else if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_FORWARD)
{
- EphyHistoryItem *forward_item;
-
- forward_item = ephy_embed_get_next_history_item (embed);
- if (forward_item == NULL) return;
-
if (ephy_gui_is_middle_click ())
{
embed = ephy_link_open (EPHY_LINK (action),
@@ -423,8 +412,7 @@
NULL,
EPHY_LINK_NEW_TAB);
}
- ephy_embed_go_to_history_item (embed, forward_item);
- g_object_unref (forward_item);
+ ephy_embed_go_forward (embed);
}
else if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_UP)
{
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.