Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-05-22 10:29:30 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-05-22 10:29:30 (GMT)
commit2c92da58d54b62149d5e286f6d44d334cb415b5f (patch)
treea7dd03ef05367c37c7355720bb1b01d4d7457e13 /src
parent2022177e42224f24d1350d7bdebe4d6badc3d821 (diff)
Skeleton implementation of chrome
Diffstat (limited to 'src')
-rw-r--r--src/hulahop-web-view.cpp20
-rw-r--r--src/hulahop-web-view.h1
2 files changed, 14 insertions, 7 deletions
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);