From 2c92da58d54b62149d5e286f6d44d334cb415b5f Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 22 May 2007 10:29:30 +0000 Subject: Skeleton implementation of chrome --- (limited to 'src') diff --git a/src/hulahop-web-view.cpp b/src/hulahop-web-view.cpp index 3fcc3a7..d23bf03 100644 --- a/src/hulahop-web-view.cpp +++ b/src/hulahop-web-view.cpp @@ -219,13 +219,6 @@ hulahop_web_view_init(HulahopWebView *web_view) rv = web_view->base_window->InitWindow(web_view->offscreen_window, nsnull, 0, 0, 100, 100); g_assert(NS_SUCCEEDED(rv)); - - rv = web_view->base_window->Create(); - g_assert(NS_SUCCEEDED(rv)); - - web_view->mozilla_widget = GTK_BIN(web_view->offscreen_window)->child; - - GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(web_view), GTK_NO_WINDOW); } PyObject * @@ -266,3 +259,16 @@ hulahop_web_view_get_doc_shell(HulahopWebView *web_view) return PyObject_FromNSInterface(docShell, NS_GET_IID(nsIDocShell)); } + +void +hulahop_web_view_create_window(HulahopWebView *web_view) +{ + nsresult rv; + + rv = web_view->base_window->Create(); + g_assert(NS_SUCCEEDED(rv)); + + web_view->mozilla_widget = GTK_BIN(web_view->offscreen_window)->child; + + GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(web_view), GTK_NO_WINDOW); +} diff --git a/src/hulahop-web-view.h b/src/hulahop-web-view.h index 84db17b..68610b5 100644 --- a/src/hulahop-web-view.h +++ b/src/hulahop-web-view.h @@ -36,6 +36,7 @@ typedef struct _HulahopWebViewClass HulahopWebViewClass; #define HULAHOP_WEB_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), HULAHOP_TYPE_WEB_VIEW, HulahopWebViewClass)) GType hulahop_web_view_get_type (void); +void hulahop_web_view_create_window (HulahopWebView *web_view); PyObject *hulahop_web_view_get_browser (HulahopWebView *web_view); PyObject *hulahop_web_view_get_window_root (HulahopWebView *web_view); PyObject *hulahop_web_view_get_doc_shell (HulahopWebView *web_view); -- cgit v0.9.1