aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-10-31 02:45:34 +0800
committerChristian Persch <chpe@src.gnome.org>2003-10-31 02:45:34 +0800
commit0bf20d0ea2f023c7c805ee5034f525699e068d3f (patch)
tree7f0cc6f919c9b9cb13be029e73769a6f55c7cfd8 /embed
parenta14bb2d6611954d5d91cbef853a01af989dd9804 (diff)
downloadgsoc2013-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')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp7
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");