aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChrhristian Persch <chpe@cvs.gnome.org>2006-01-15 06:50:27 +0800
committerChristian Persch <chpe@src.gnome.org>2006-01-15 06:50:27 +0800
commit00f6be2493945f3b6c63d30cf3a7dd8bf1901071 (patch)
tree6f93a9eda741c50a6ed41b2ee845b4ad1756cf6b /embed
parent01299e9677c4949e4c3e7e8a98823b245261af63 (diff)
downloadgsoc2013-epiphany-00f6be2493945f3b6c63d30cf3a7dd8bf1901071.tar
gsoc2013-epiphany-00f6be2493945f3b6c63d30cf3a7dd8bf1901071.tar.gz
gsoc2013-epiphany-00f6be2493945f3b6c63d30cf3a7dd8bf1901071.tar.bz2
gsoc2013-epiphany-00f6be2493945f3b6c63d30cf3a7dd8bf1901071.tar.lz
gsoc2013-epiphany-00f6be2493945f3b6c63d30cf3a7dd8bf1901071.tar.xz
gsoc2013-epiphany-00f6be2493945f3b6c63d30cf3a7dd8bf1901071.tar.zst
gsoc2013-epiphany-00f6be2493945f3b6c63d30cf3a7dd8bf1901071.zip
Only use the directory service provider on gecko 1.8; gecko 1.7 uses a
2006-01-14 Chrhristian Persch <chpe@cvs.gnome.org> * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed-single.cpp: Only use the directory service provider on gecko 1.8; gecko 1.7 uses a different method to register chrome.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/Makefile.am13
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp6
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 */