Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-13 12:16:03 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-13 12:16:03 (GMT)
commitc84af0839782820ff42a8cf08c3b76d830f77757 (patch)
tree9c4c7bbd9474dc3dfa45f2b00e65e2b839e6d0ac /python
parentfe86acf314161823a648dd480e55915dc184e057 (diff)
Implement get_doc_shell in python.
Diffstat (limited to 'python')
-rw-r--r--python/hulahop.defs6
-rw-r--r--python/hulahop.override7
-rw-r--r--python/webview.py3
3 files changed, 2 insertions, 14 deletions
diff --git a/python/hulahop.defs b/python/hulahop.defs
index 8fafc59..4f18c2d 100644
--- a/python/hulahop.defs
+++ b/python/hulahop.defs
@@ -29,12 +29,6 @@
(return-type "none")
)
-(define-method get_doc_shell
- (of-object "HulahopWebView")
- (c-name "hulahop_web_view_get_doc_shell")
- (return-type "none")
-)
-
(define-function startup
(c-name "hulahop_startup")
(return-type "gboolean")
diff --git a/python/hulahop.override b/python/hulahop.override
index 4353268..d846c64 100644
--- a/python/hulahop.override
+++ b/python/hulahop.override
@@ -29,10 +29,3 @@ _wrap_hulahop_web_view_get_window_root(PyGObject *self)
return hulahop_web_view_get_window_root(HULAHOP_WEB_VIEW(self->obj));
}
%%
-override hulahop_web_view_get_doc_shell noargs
-static PyObject *
-_wrap_hulahop_web_view_get_doc_shell(PyGObject *self)
-{
- return hulahop_web_view_get_doc_shell(HULAHOP_WEB_VIEW(self->obj));
-}
-%%
diff --git a/python/webview.py b/python/webview.py
index 7f2534e..1c2a80c 100644
--- a/python/webview.py
+++ b/python/webview.py
@@ -193,7 +193,8 @@ class WebView(_hulahop.WebView):
return _hulahop.WebView.get_browser(self)
def get_doc_shell(self):
- return _hulahop.WebView.get_doc_shell(self)
+ requestor = self.browser.queryInterface(interfaces.nsIInterfaceRequestor)
+ return requestor.getInterface(interfaces.nsIDocShell)
def get_web_progress(self):
return self.doc_shell.queryInterface(interfaces.nsIWebProgress)