diff options
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 082e2cff2..f2a588f41 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -627,9 +627,11 @@ impl_init (EphyEmbedSingle *esingle) *lastSlash = '\0'; gtk_moz_embed_set_path(xpcomLocation); + gtk_moz_embed_set_comp_path (MOZILLA_HOME); #else #ifdef HAVE_GECKO_1_9 gtk_moz_embed_set_path (MOZILLA_HOME); + #else gtk_moz_embed_set_comp_path (MOZILLA_HOME); #endif @@ -639,12 +641,6 @@ impl_init (EphyEmbedSingle *esingle) mozilla_init_profile (); -#ifdef HAVE_GECKO_1_9 - gtk_moz_embed_set_path (MOZILLA_HOME); -#endif - /* Set mozilla binary path */ - gtk_moz_embed_set_comp_path (MOZILLA_HOME); - nsCOMPtr<nsIDirectoryServiceProvider> dp = new EphyDirectoryProvider (); if (!dp) return FALSE; @@ -652,6 +648,7 @@ impl_init (EphyEmbedSingle *esingle) /* Fire up the beast */ gtk_moz_embed_push_startup (); + /* FIXME check that it succeeded! */ mozilla_register_components (); |