diff options
author | Christian Persch <chpe@gnome.org> | 2007-09-10 05:11:39 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-09-10 05:11:39 +0800 |
commit | b3a75061677399de19355802c54c4d355653f284 (patch) | |
tree | 689385d476a8034eb7d5fd1d7939b7b01b6468eb /embed/ephy-embed-factory.c | |
parent | 0e3d0325dab1bfa25b1af72cc8b1f8dcddfa9dc7 (diff) | |
download | gsoc2013-epiphany-b3a75061677399de19355802c54c4d355653f284.tar gsoc2013-epiphany-b3a75061677399de19355802c54c4d355653f284.tar.gz gsoc2013-epiphany-b3a75061677399de19355802c54c4d355653f284.tar.bz2 gsoc2013-epiphany-b3a75061677399de19355802c54c4d355653f284.tar.lz gsoc2013-epiphany-b3a75061677399de19355802c54c4d355653f284.tar.xz gsoc2013-epiphany-b3a75061677399de19355802c54c4d355653f284.tar.zst gsoc2013-epiphany-b3a75061677399de19355802c54c4d355653f284.zip |
A m4/libxul.m4: Integrate the "xulrunner" backend with configure. Not
2007-09-09 Christian Persch <chpe@gnome.org>
* configure.ac:
* embed/Makefile.am:
* embed/ephy-embed-factory.c: (ephy_embed_factory_new_object):
* m4/gecko.m4:
A m4/libxul.m4:
* src/Makefile.am: Integrate the "xulrunner" backend with configure.
Not building yet.
svn path=/trunk/; revision=7359
Diffstat (limited to 'embed/ephy-embed-factory.c')
-rw-r--r-- | embed/ephy-embed-factory.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/embed/ephy-embed-factory.c b/embed/ephy-embed-factory.c index 1ab59f4a5..6a80faf41 100644 --- a/embed/ephy-embed-factory.c +++ b/embed/ephy-embed-factory.c @@ -21,7 +21,12 @@ #include "config.h" #include "ephy-embed-factory.h" -#if defined(WITH_GECKO_ENGINE) +#if defined(WITH_XULRUNNER_ENGINE) +#include "mozilla-embed.h" +#include "mozilla-embed-find.h" +#include "mozilla-embed-persist.h" +#include "mozilla-embed-single.h" +#elif defined(WITH_GECKO_ENGINE) #include "mozilla-embed.h" #include "mozilla-embed-find.h" #include "mozilla-embed-persist.h" @@ -52,7 +57,9 @@ ephy_embed_factory_new_object (GType type) if (type == EPHY_TYPE_EMBED) { -#if defined(WITH_GECKO_ENGINE) +#if defined(WITH_XULRUNNER_ENGINE) + object = g_object_new (MOZILLA_TYPE_EMBED, NULL); +#elif defined(WITH_GECKO_ENGINE) object = g_object_new (MOZILLA_TYPE_EMBED, NULL); #elif defined(WITH_WEBKIT_ENGINE) object = g_object_new (WEBKIT_TYPE_EMBED, NULL); @@ -60,7 +67,9 @@ ephy_embed_factory_new_object (GType type) } else if (type == EPHY_TYPE_EMBED_PERSIST) { -#if defined(WITH_GECKO_ENGINE) +#if defined(WITH_XULRUNNER_ENGINE) + object = g_object_new (MOZILLA_TYPE_EMBED_PERSIST, NULL); +#elif defined(WITH_GECKO_ENGINE) object = g_object_new (MOZILLA_TYPE_EMBED_PERSIST, NULL); #elif defined(WITH_WEBKIT_ENGINE) object = g_object_new (WEBKIT_TYPE_EMBED_PERSIST, NULL); @@ -68,7 +77,9 @@ ephy_embed_factory_new_object (GType type) } else if (type == EPHY_TYPE_EMBED_FIND) { -#if defined(WITH_GECKO_ENGINE) +#if defined(WITH_XULRUNNER_ENGINE) + object = g_object_new (MOZILLA_TYPE_EMBED_FIND, NULL); +#elif defined(WITH_GECKO_ENGINE) object = g_object_new (MOZILLA_TYPE_EMBED_FIND, NULL); #elif defined(WITH_WEBKIT_ENGINE) object = g_object_new (WEBKIT_TYPE_EMBED_FIND, NULL); @@ -76,7 +87,9 @@ ephy_embed_factory_new_object (GType type) } else if (type == EPHY_TYPE_EMBED_SINGLE) { -#if defined(WITH_GECKO_ENGINE) +#if defined(WITH_XULRUNNER_ENGINE) + object = g_object_new (MOZILLA_TYPE_EMBED_SINGLE, NULL); +#elif defined(WITH_GECKO_ENGINE) object = g_object_new (MOZILLA_TYPE_EMBED_SINGLE, NULL); #elif defined(WITH_WEBKIT_ENGINE) object = g_object_new (WEBKIT_TYPE_EMBED_SINGLE, NULL); |