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-02 12:05:16 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2011-11-03 01:38:44 (GMT)
commit52420ef8d4b9ba8f571a1da709980000568edbf1 (patch)
tree93f5d9675c6e05f85bf90eb4e864cb300c0dfbea
parent594845eb623c5a71bbcc0065040b4cdca592c733 (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 0e4183b..db45cb1 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -343,7 +343,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):
@@ -400,10 +400,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