Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'webtoolbar.py')
-rw-r--r--webtoolbar.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index cc1354e..a708b4f 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -401,8 +401,7 @@ class PrimaryToolbar(ToolbarBox):
palette.menu.remove(menu_item)
# (re)populate the palettes
- for item in history.get_back_list_with_limit(limit) + \
- history.get_forward_list_with_limit(limit):
+ for item in history.get_back_list_with_limit(limit):
menu_item = MenuItem(item.get_title(), text_maxlen=60)
menu_item.connect('activate', self.__history_item_activated_cb,
item)
@@ -411,6 +410,15 @@ class PrimaryToolbar(ToolbarBox):
palette.menu.append(menu_item)
menu_item.show()
+ for item in history.get_forward_list_with_limit(limit):
+ menu_item = MenuItem(item.get_title(), text_maxlen=60)
+ menu_item.connect('activate', self.__history_item_activated_cb,
+ item)
+
+ palette = self._forward.get_palette()
+ palette.menu.append(menu_item)
+ menu_item.show()
+
def __history_item_activated_cb(self, menu_item, history_item):
browser = self._tabbed_view.props.current_browser
browser.go_to_back_forward_item(history_item)