Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/hulahop-web-view.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-05-21 12:48:33 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-05-21 12:48:33 (GMT)
commitd12924c8d523bccd11954b5a524da50998b4826b (patch)
treee84d1cb3ee6955f1a56649d75368af46fd25901e /src/hulahop-web-view.cpp
parente4a8e189e7cf25236ffebc72ac8d7bed6893b70d (diff)
Split functions out of WebView
Diffstat (limited to 'src/hulahop-web-view.cpp')
-rw-r--r--src/hulahop-web-view.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/hulahop-web-view.cpp b/src/hulahop-web-view.cpp
index c3f40af..1ee6da4 100644
--- a/src/hulahop-web-view.cpp
+++ b/src/hulahop-web-view.cpp
@@ -24,16 +24,13 @@
#include <nsIWebBrowserFocus.h>
#include <nsIDOMWindow2.h>
#include <nsIDOMEventTarget.h>
-#include <nsILocalFile.h>
#include <nsIBaseWindow.h>
-#include <nsXULAppAPI.h>
#include <PyXPCOM.h>
#include <gtk/gtkfixed.h>
#include <gtk/gtkwindow.h>
#include "hulahop-web-view.h"
-#include "HulahopDirectoryProvider.h"
struct _HulahopWebView {
GtkBin base_instance;
@@ -53,51 +50,6 @@ G_DEFINE_TYPE(HulahopWebView, hulahop_web_view, GTK_TYPE_BIN)
static GObjectClass *parent_class = NULL;
-static HulahopDirectoryProvider kDirectoryProvider;
-
-gboolean
-hulahop_startup()
-{
- nsresult rv;
-
- nsCOMPtr<nsILocalFile> greDir;
- rv = NS_NewNativeLocalFile(nsCString(MOZILLA_HOME), PR_TRUE,
- getter_AddRefs(greDir));
- NS_ENSURE_SUCCESS(rv, FALSE);
-
- nsCOMPtr<nsILocalFile> binDir;
- rv = NS_NewNativeLocalFile(nsCString(MOZILLA_HOME"/components"), PR_TRUE,
- getter_AddRefs(binDir));
- NS_ENSURE_SUCCESS(rv, FALSE);
-
- rv = XRE_InitEmbedding(greDir, binDir,
- NS_CONST_CAST(HulahopDirectoryProvider *,
- &kDirectoryProvider), nsnull, 0);
- NS_ENSURE_SUCCESS(rv, FALSE);
-
- XRE_NotifyProfile();
-
- return TRUE;
-}
-
-void
-hulahop_shutdown()
-{
- XRE_TermEmbedding();
-}
-
-void
-hulahop_set_profile_path(const char *path)
-{
- kDirectoryProvider.SetProfilePath(path);
-}
-
-void
-hulahop_add_components_path(const char *path)
-{
- kDirectoryProvider.AddComponentsPath(path);
-}
-
static gboolean
child_focus_in_cb(GtkWidget *widget,
GdkEventFocus *event,