aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2004-04-30 06:41:05 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-04-30 06:41:05 +0800
commit43dbdc1eb7b96e4672d0d3bd68f01fd65f1690b7 (patch)
tree6824efba9d852d718036fae1503c82281e87db70 /embed
parentd6b013e758b63f5493e6986b86bc29d0b62c8d94 (diff)
downloadgsoc2013-epiphany-43dbdc1eb7b96e4672d0d3bd68f01fd65f1690b7.tar.gz
gsoc2013-epiphany-43dbdc1eb7b96e4672d0d3bd68f01fd65f1690b7.tar.zst
gsoc2013-epiphany-43dbdc1eb7b96e4672d0d3bd68f01fd65f1690b7.zip
fix build bustage
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/FilePicker.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp
index 91a893d2a..188cae460 100644
--- a/embed/mozilla/FilePicker.cpp
+++ b/embed/mozilla/FilePicker.cpp
@@ -83,7 +83,7 @@ GFilePicker::~GFilePicker()
/* void init (in nsIDOMWindow parent, in AString title, in short mode); */
#if MOZILLA_SNAPSHOT < 16
-NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, PRUnichar *title, PRInt16 mode)
+NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *title, PRInt16 mode)
#else
NS_IMETHODIMP GFilePicker::Init(nsIDOMWindow *parent, const nsAString& title, PRInt16 mode)
#endif
@@ -287,7 +287,11 @@ NS_IMETHODIMP GFilePicker::GetDefaultString(nsAString& aDefaultString)
{
converted = g_filename_to_utf8(filename, -1, NULL, NULL, NULL);
+#if MOZILLA_SNAPSHOT < 16
+ *aDefaultString = ToNewUnicode (NS_ConvertUTF8toUTF16 (converted));
+#else
aDefaultString = NS_ConvertUTF8toUTF16 (converted);
+#endif
g_free (filename);
g_free (converted);