diff options
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/Makefile.am | 13 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 6 |
2 files changed, 10 insertions, 9 deletions
diff --git a/embed/mozilla/Makefile.am b/embed/mozilla/Makefile.am index 3e7eced11..f5504128b 100644 --- a/embed/mozilla/Makefile.am +++ b/embed/mozilla/Makefile.am @@ -58,12 +58,6 @@ libephymozillaembed_la_SOURCES += \ FilePicker.h endif -if HAVE_MOZILLA_TOOLKIT -libephymozillaembed_la_SOURCES += \ - EphyDirectoryProvider.cpp \ - EphyDirectoryProvider.h -endif - if HAVE_MOZILLA_PSM libephymozillaembed_la_SOURCES += \ GtkNSSClientAuthDialogs.cpp \ @@ -86,6 +80,13 @@ if HAVE_GECKO_1_8 libephymozillaembed_la_SOURCES += \ EphyBadCertRejector.cpp \ EphyBadCertRejector.h + +if HAVE_MOZILLA_TOOLKIT +libephymozillaembed_la_SOURCES += \ + EphyDirectoryProvider.cpp \ + EphyDirectoryProvider.h +endif + endif mozilla_include_subdirs = \ diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index d904bda4f..05cdfbf18 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -73,7 +73,7 @@ #include <nsILocalFile.h> #include <nsIURI.h> -#ifdef HAVE_MOZILLA_TOOLKIT +#if defined(HAVE_MOZILLA_TOOLKIT) && defined(HAVE_GECKO_1_8) #include "EphyDirectoryProvider.h" #endif @@ -533,12 +533,12 @@ init_services (MozillaEmbedSingle *single) /* Set mozilla binary path */ gtk_moz_embed_set_comp_path (MOZILLA_HOME); -#ifdef HAVE_MOZILLA_TOOLKIT +#if defined(HAVE_MOZILLA_TOOLKIT) && defined(HAVE_GECKO_1_8) + nsCOMPtr<nsIDirectoryServiceProvider> dp = new EphyDirectoryProvider (); if (!dp) return FALSE; gtk_moz_embed_set_directory_service_provider (dp); - dp = nsnull; #endif /* Fire up the beast */ |