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-12-20 22:59:45 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2011-12-20 22:59:45 (GMT)
commit5eab27719d17361477472d856c0ab5e55ab08c98 (patch)
tree447b5a7bdb5597184c940dd5deef733cf832793a
parentd268ce8836059de9a2e8e671d846c3d13d278319 (diff)
Restore reload/stop loading functionality
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
-rw-r--r--webtoolbar.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index 869da8b..47ece72 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -347,7 +347,7 @@ class PrimaryToolbar(ToolbarBase):
status = widget.get_load_status()
if status <= WebKit.LoadStatus.COMMITTED:
self._set_title(None)
- self._set_loading(status >= WebKit.LoadStatus.FINISHED)
+ self._set_loading(status < WebKit.LoadStatus.FINISHED)
self._update_navigation_buttons()
def __progress_changed_cb(self, widget, param):
@@ -410,10 +410,9 @@ class PrimaryToolbar(ToolbarBase):
def _stop_and_reload_cb(self, entry, icon_pos, button):
browser = self._tabbed_view.props.current_browser
if self._loading:
- browser.web_navigation.stop(interfaces.nsIWebNavigation.STOP_ALL)
+ browser.stop_loading()
else:
- flags = interfaces.nsIWebNavigation.LOAD_FLAGS_NONE
- browser.web_navigation.reload(flags)
+ browser.reload()
def _set_loading(self, loading):
self._loading = loading