diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-10-31 02:45:34 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-10-31 02:45:34 +0800 |
commit | 0bf20d0ea2f023c7c805ee5034f525699e068d3f (patch) | |
tree | 7f0cc6f919c9b9cb13be029e73769a6f55c7cfd8 /embed/mozilla | |
parent | a14bb2d6611954d5d91cbef853a01af989dd9804 (diff) | |
download | gsoc2013-epiphany-0bf20d0ea2f023c7c805ee5034f525699e068d3f.tar gsoc2013-epiphany-0bf20d0ea2f023c7c805ee5034f525699e068d3f.tar.gz gsoc2013-epiphany-0bf20d0ea2f023c7c805ee5034f525699e068d3f.tar.bz2 gsoc2013-epiphany-0bf20d0ea2f023c7c805ee5034f525699e068d3f.tar.lz gsoc2013-epiphany-0bf20d0ea2f023c7c805ee5034f525699e068d3f.tar.xz gsoc2013-epiphany-0bf20d0ea2f023c7c805ee5034f525699e068d3f.tar.zst gsoc2013-epiphany-0bf20d0ea2f023c7c805ee5034f525699e068d3f.zip |
Yet another mozilla API change.
2003-10-30 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-embed-single.cpp: (getUILang):
* configure.in:
Yet another mozilla API change.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 5c1f83040..f39fc4feb 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -19,7 +19,7 @@ */ #ifdef HAVE_CONFIG_H -#include <config.h> +#include "config.h" #endif #include "glib.h" @@ -384,9 +384,14 @@ getUILang (nsAString& aUILang) return NS_ERROR_FAILURE; } +#if MOZILLA_SNAPSHOT >= 12 + result = localeService->GetLocaleComponentForUserAgent (aUILang); +#else nsXPIDLString uiLang; result = localeService->GetLocaleComponentForUserAgent (getter_Copies(uiLang)); aUILang = uiLang; +#endif + if (NS_FAILED (result)) { g_warning ("Could not determine locale!\n"); |