GeoView : gtkmozembed get_location instead of get_uri.

svn: r11574
This commit is contained in:
Serge Noiraud 2009-01-05 11:40:23 +00:00
parent 429d53eed8
commit cc67aac37b

View File

@ -138,7 +138,7 @@ class Renderer():
return self.window return self.window
def get_uri(self): def get_uri(self):
return self.window.get_main_frame().get_uri() raise NotImplementedError
def show_all(self): def show_all(self):
self.window.show_all() self.window.show_all()
@ -191,6 +191,9 @@ class RendererWebkit(Renderer):
def execute_script(self,url): def execute_script(self,url):
self.window.execute_script(url); self.window.execute_script(url);
def get_uri(self):
return self.window.get_main_frame().get_uri()
class RendererMozilla(Renderer): class RendererMozilla(Renderer):
""" """
Implementation of Renderer with gtkmozembed Implementation of Renderer with gtkmozembed
@ -213,6 +216,9 @@ class RendererMozilla(Renderer):
def execute_script(self,url): def execute_script(self,url):
self.window.load_url(url); self.window.load_url(url);
def get_uri(self):
return self.window.get_location()
def refresh(self): def refresh(self):
self.window.reload(0); self.window.reload(0);