From 21dde898a95d228708053e46a06f3d54053fb7b9 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 14 Dec 2008 23:18:24 +0000 Subject: [PATCH] GeoView : Code optmization. svn: r11476 --- src/DataViews/GeoView.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index bfb987631..5b59d0912 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -151,13 +151,13 @@ class Renderer(): raise NotImplementedError def go_back(self): - raise NotImplementedError + self.window.go_back(); def can_go_back(self): return self.window.can_go_back() def go_forward(self): - raise NotImplementedError + self.window.go_forward(); def can_go_forward(self): return self.window.can_go_forward() @@ -187,12 +187,6 @@ class RendererWebkit(Renderer): def refresh(self): self.window.reload(); - def go_back(self): - self.window.go_back(); - - def go_forward(self): - self.window.go_forward(); - def execute_script(self,url): self.window.execute_script(url); @@ -221,12 +215,6 @@ class RendererMozilla(Renderer): def refresh(self): self.window.reload(0); - def go_back(self): - self.window.go_back(); - - def go_forward(self): - self.window.go_forward(); - def __set_mozembed_proxy(self): """ Try to see if we have some proxy environment variable.