aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-05-28 22:55:53 +0800
committerXan Lopez <xan@gnome.org>2009-05-28 23:40:33 +0800
commit5e83fc07ff785200e9dd5078ce903fb0b053e526 (patch)
treee370822b5aec8c5e720b59160bc23298cd328166 /src
parent46fdef44c6e95fdaa841552a368d052b1164b983 (diff)
downloadgsoc2013-epiphany-5e83fc07ff785200e9dd5078ce903fb0b053e526.tar
gsoc2013-epiphany-5e83fc07ff785200e9dd5078ce903fb0b053e526.tar.gz
gsoc2013-epiphany-5e83fc07ff785200e9dd5078ce903fb0b053e526.tar.bz2
gsoc2013-epiphany-5e83fc07ff785200e9dd5078ce903fb0b053e526.tar.lz
gsoc2013-epiphany-5e83fc07ff785200e9dd5078ce903fb0b053e526.tar.xz
gsoc2013-epiphany-5e83fc07ff785200e9dd5078ce903fb0b053e526.tar.zst
gsoc2013-epiphany-5e83fc07ff785200e9dd5078ce903fb0b053e526.zip
Preserve back/forward history when opening links in new tabs/windows.
Bug #583459.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-navigation-action.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ephy-navigation-action.c b/src/ephy-navigation-action.c
index 1834a1342..07f202b56 100644
--- a/src/ephy-navigation-action.c
+++ b/src/ephy-navigation-action.c
@@ -39,7 +39,6 @@
#define HISTORY_ITEM_DATA_KEY "HistoryItem"
#define URL_DATA_KEY "GoURL"
-#define WEBKIT_BACK_FORWARD_LIMIT 100
#define EPHY_NAVIGATION_ACTION_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_NAVIGATION_ACTION, EphyNavigationActionPrivate))
@@ -197,10 +196,10 @@ webkit_construct_history_list (WebKitWebView *web_view, WebKitHistoryType hist_t
if (hist_type == WEBKIT_HISTORY_FORWARD)
webkit_items = webkit_web_back_forward_list_get_forward_list_with_limit (web_back_forward_list,
- WEBKIT_BACK_FORWARD_LIMIT);
+ EPHY_WEBKIT_BACK_FORWARD_LIMIT);
else
webkit_items = webkit_web_back_forward_list_get_back_list_with_limit (web_back_forward_list,
- WEBKIT_BACK_FORWARD_LIMIT);
+ EPHY_WEBKIT_BACK_FORWARD_LIMIT);
return webkit_items;
}
@@ -243,8 +242,8 @@ build_back_or_forward_menu (EphyNavigationAction *action)
item = new_history_menu_item (title ? title : url, url);
- g_object_set_data_full (G_OBJECT (item), HISTORY_ITEM_DATA_KEY, hitem,
- (GDestroyNotify) g_object_unref);
+ g_object_set_data_full (G_OBJECT (item), HISTORY_ITEM_DATA_KEY,
+ g_object_ref (hitem), g_object_unref);
g_signal_connect (item, "activate",
G_CALLBACK (activate_back_or_forward_menu_item_cb),