From cc67aac37b2ad97767d4672bf0f67cc676ca672b Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Mon, 5 Jan 2009 11:40:23 +0000 Subject: [PATCH] GeoView : gtkmozembed get_location instead of get_uri. svn: r11574 --- src/DataViews/GeoView.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index f98cc1c02..40fff0717 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -138,7 +138,7 @@ class Renderer(): return self.window def get_uri(self): - return self.window.get_main_frame().get_uri() + raise NotImplementedError def show_all(self): self.window.show_all() @@ -191,6 +191,9 @@ class RendererWebkit(Renderer): def execute_script(self,url): self.window.execute_script(url); + def get_uri(self): + return self.window.get_main_frame().get_uri() + class RendererMozilla(Renderer): """ Implementation of Renderer with gtkmozembed @@ -213,6 +216,9 @@ class RendererMozilla(Renderer): def execute_script(self,url): self.window.load_url(url); + def get_uri(self): + return self.window.get_location() + def refresh(self): self.window.reload(0);