diff options
author | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-15 02:33:21 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-10-15 02:33:21 (GMT) |
commit | fe68d402ad560edd6bdb265a14cbd80b5f281ca7 (patch) | |
tree | 4d93a16ab81ac808742301c0bafedd063f10e53e /python/hulahop.defs | |
parent | d3fd80482ca4807c911173c50cc7b8ad2917fa4a (diff) |
Better way to map from dom window to view.
Give up on trying to allow to user the view before
it's realized, it's just not possible to do it with
current mozilla implementation.
Diffstat (limited to 'python/hulahop.defs')
-rw-r--r-- | python/hulahop.defs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/python/hulahop.defs b/python/hulahop.defs index 55c1733..cad4a28 100644 --- a/python/hulahop.defs +++ b/python/hulahop.defs @@ -5,12 +5,6 @@ (gtype-id "HULAHOP_TYPE_WEB_VIEW") ) -(define-method create_window - (of-object "HulahopWebView") - (c-name "hulahop_web_view_create_window") - (return-type "none") -) - (define-method grab_focus (of-object "HulahopWebView") (c-name "hulahop_web_view_grab_focus") @@ -76,3 +70,11 @@ (return-type "none") ) +(define-function get_view_for_window + (c-name "hulahop_get_view_for_window") + (return-type "HulahopWebView*") + (parameters + '("PyObject*" "dom_window") + ) +) + |