Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/hulahop-browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hulahop-browser.cpp')
-rw-r--r--src/hulahop-browser.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/hulahop-browser.cpp b/src/hulahop-browser.cpp
index f092ffc..6c09964 100644
--- a/src/hulahop-browser.cpp
+++ b/src/hulahop-browser.cpp
@@ -53,7 +53,7 @@ G_DEFINE_TYPE(HulahopBrowser, hulahop_browser, GTK_TYPE_BIN)
static GObjectClass *parent_class = NULL;
-static const HulahopDirectoryProvider kDirectoryProvider;
+static HulahopDirectoryProvider kDirectoryProvider;
gboolean
hulahop_startup()
@@ -75,8 +75,6 @@ hulahop_startup()
&kDirectoryProvider), nsnull, 0);
NS_ENSURE_SUCCESS(rv, FALSE);
- XRE_NotifyProfile();
-
return TRUE;
}
@@ -86,6 +84,19 @@ hulahop_shutdown()
XRE_TermEmbedding();
}
+void
+hulahop_set_profile_path(const char *path)
+{
+ kDirectoryProvider.SetProfilePath(path);
+ XRE_NotifyProfile();
+}
+
+void
+hulahop_add_components_path(const char *path)
+{
+ kDirectoryProvider.AddComponentsPath(path);
+}
+
static gboolean
child_focus_in_cb(GtkWidget *widget,
GdkEventFocus *event,