diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-03-28 23:07:49 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-03-28 23:07:49 +0800 |
commit | afe319cfeab96fdfb23a4d6153ae317f8667ab2e (patch) | |
tree | f4c51861a23f9fc75147cda2ff82a24f5c358bd1 /embed/mozilla | |
parent | 7b889ae6a3db314ae9ac4e5663105239f6444b9e (diff) | |
download | gsoc2013-epiphany-afe319cfeab96fdfb23a4d6153ae317f8667ab2e.tar gsoc2013-epiphany-afe319cfeab96fdfb23a4d6153ae317f8667ab2e.tar.gz gsoc2013-epiphany-afe319cfeab96fdfb23a4d6153ae317f8667ab2e.tar.bz2 gsoc2013-epiphany-afe319cfeab96fdfb23a4d6153ae317f8667ab2e.tar.lz gsoc2013-epiphany-afe319cfeab96fdfb23a4d6153ae317f8667ab2e.tar.xz gsoc2013-epiphany-afe319cfeab96fdfb23a4d6153ae317f8667ab2e.tar.zst gsoc2013-epiphany-afe319cfeab96fdfb23a4d6153ae317f8667ab2e.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=/branches/gnome-2-22/; revision=8150
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 7 |
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 (); |