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.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index 4b1dee2..72cf8ab 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -334,13 +334,10 @@ class WebToolbar(gtk.Toolbar):
self._set_title(embed.props.title)
def _stop_and_reload_cb(self, button):
- #if self._loading:
- # self._browser.web_navigation.stop( \
- # interfaces.nsIWebNavigation.STOP_ALL)
- #else:
- # flags = interfaces.nsIWebNavigation.LOAD_FLAGS_NONE
- # self._browser.web_navigation.reload(flags)
- pass
+ if self._loading:
+ self._browser.stop_loading()
+ else:
+ self._browser.reload()
def _set_loading(self, loading):
self._loading = loading