diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2006-01-30 05:09:53 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2006-01-30 05:09:53 +0800 |
commit | c488b4e9aca045965156e425129a6be95637da98 (patch) | |
tree | 28b83ee496865cd7c212600bc772fd312f154da7 /embed/mozilla | |
parent | 94d9003fe9bab749eb4dba5a9bcf66721fb421cd (diff) | |
download | gsoc2013-epiphany-c488b4e9aca045965156e425129a6be95637da98.tar gsoc2013-epiphany-c488b4e9aca045965156e425129a6be95637da98.tar.gz gsoc2013-epiphany-c488b4e9aca045965156e425129a6be95637da98.tar.bz2 gsoc2013-epiphany-c488b4e9aca045965156e425129a6be95637da98.tar.lz gsoc2013-epiphany-c488b4e9aca045965156e425129a6be95637da98.tar.xz gsoc2013-epiphany-c488b4e9aca045965156e425129a6be95637da98.tar.zst gsoc2013-epiphany-c488b4e9aca045965156e425129a6be95637da98.zip |
Add a function (ephy_embed_single_get_backend_name) to get the backend
2006-01-29 Crispin Flowerday <gnome@flowerday.cx>
* embed/ephy-embed-single.c: (ephy_embed_single_get_backend_name):
* embed/ephy-embed-single.h:
* embed/mozilla/mozilla-embed-single.cpp:
* src/epiphany.defs:
Add a function (ephy_embed_single_get_backend_name) to get
the backend that epiphany is using.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 4165ff11e..0523473a6 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -907,6 +907,22 @@ impl_get_network_status (EphyEmbedSingle *esingle) return !isOffline; } +static const char* +impl_get_backend_name (EphyEmbedSingle *esingle) +{ + /* If you alter the return values here, remember to update + * the docs in ephy-embed-single.c */ +#if defined (HAVE_GECKO_1_10) +# error "Need to add version string for gecko 1.10" +#elif defined(HAVE_GECKO_1_9) + return "gecko-1.9"; +#elif defined(HAVE_GECKO_1_8) + return "gecko-1.8"; +#elif defined(HAVE_GECKO_1_7) + return "gecko-1.7"; +#endif +} + static GList * impl_get_font_list (EphyEmbedSingle *shell, const char *langGroup) @@ -1425,6 +1441,7 @@ ephy_embed_single_iface_init (EphyEmbedSingleIface *iface) iface->get_network_status = impl_get_network_status; iface->get_font_list = impl_get_font_list; iface->open_window = impl_open_window; + iface->get_backend_name = impl_get_backend_name; } static void |