aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-03-14 00:20:09 +0800
committerChristian Persch <chpe@src.gnome.org>2008-03-14 00:20:09 +0800
commitd6283ddb95db1767357cf37d628c6fded623de1e (patch)
tree010faf9fb3700b5447c6d63aadc2b2e8b2ea6db5 /embed
parentde1fa499ba85d8f8d0e108eb1596f7ae646048ff (diff)
downloadgsoc2013-epiphany-d6283ddb95db1767357cf37d628c6fded623de1e.tar
gsoc2013-epiphany-d6283ddb95db1767357cf37d628c6fded623de1e.tar.gz
gsoc2013-epiphany-d6283ddb95db1767357cf37d628c6fded623de1e.tar.bz2
gsoc2013-epiphany-d6283ddb95db1767357cf37d628c6fded623de1e.tar.lz
gsoc2013-epiphany-d6283ddb95db1767357cf37d628c6fded623de1e.tar.xz
gsoc2013-epiphany-d6283ddb95db1767357cf37d628c6fded623de1e.tar.zst
gsoc2013-epiphany-d6283ddb95db1767357cf37d628c6fded623de1e.zip
Fix the branding bundle registration by providing the app chrome manifest in the right directory, and set that directory as the component directory with gtk_moz_embed_set_comp_path.
svn path=/trunk/; revision=8103
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index f2a588f41..2a0846c35 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -627,24 +627,27 @@ impl_init (EphyEmbedSingle *esingle)
*lastSlash = '\0';
gtk_moz_embed_set_path(xpcomLocation);
- gtk_moz_embed_set_comp_path (MOZILLA_HOME);
+ gtk_moz_embed_set_comp_path (SHARE_DIR);
#else
#ifdef HAVE_GECKO_1_9
gtk_moz_embed_set_path (MOZILLA_HOME);
-
+ gtk_moz_embed_set_comp_path (SHARE_DIR);
#else
gtk_moz_embed_set_comp_path (MOZILLA_HOME);
#endif
#endif // XPCOM_GLUE
+
/* Pre initialization */
mozilla_init_plugin_path ();
mozilla_init_profile ();
+#ifndef HAVE_GECKO_1_9
nsCOMPtr<nsIDirectoryServiceProvider> dp = new EphyDirectoryProvider ();
if (!dp) return FALSE;
gtk_moz_embed_set_directory_service_provider (dp);
+#endif
/* Fire up the beast */
gtk_moz_embed_push_startup ();