Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2011-11-30 15:00:12 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2011-11-30 18:26:50 (GMT)
commit9a52149c2cbfd0188235d1ae2fd6cfa6122e8361 (patch)
tree70e1383f2f48b8192a3de4598765c7bf79eea8b2
parentcb60c84225cdd1afb0e6008aecfdaa3b387e00ce (diff)
Restore navigation back-forward in toolbar buttons
Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--webtoolbar.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index c3b0e32..c923c01 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -373,10 +373,10 @@ class PrimaryToolbar(ToolbarBase):
def _update_navigation_buttons(self):
browser = self._tabbed_view.props.current_browser
- can_go_back = browser.web_navigation.canGoBack
+ can_go_back = browser.can_go_back()
self._back.props.sensitive = can_go_back
- can_go_forward = browser.web_navigation.canGoForward
+ can_go_forward = browser.can_go_forward()
self._forward.props.sensitive = can_go_forward
def _entry_activate_cb(self, entry):
@@ -389,11 +389,11 @@ class PrimaryToolbar(ToolbarBase):
def _go_back_cb(self, button):
browser = self._tabbed_view.props.current_browser
- browser.web_navigation.goBack()
+ browser.go_back()
def _go_forward_cb(self, button):
browser = self._tabbed_view.props.current_browser
- browser.web_navigation.goForward()
+ browser.go_forward()
def _title_changed_cb(self, widget, param):
self._set_title(widget.get_title())