summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fea150b)
raw | patch | inline | side by side (parent: fea150b)
author | scislac <scislac@users.sourceforge.net> | |
Wed, 23 Sep 2009 13:23:33 +0000 (13:23 +0000) | ||
committer | scislac <scislac@users.sourceforge.net> | |
Wed, 23 Sep 2009 13:23:33 +0000 (13:23 +0000) |
src/dialogs/export.cpp | patch | blob | history |
diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp
index adadcd2f65ab13fc7ab86992228779e3c7a5f628..2c04135bcdefaff6da354b369bac961b6f6ce0c1 100644 (file)
--- a/src/dialogs/export.cpp
+++ b/src/dialogs/export.cpp
#ifdef WIN32
// code in this section is borrowed from ui/dialogs/filedialogimpl-win32.cpp
OPENFILENAMEW opf;
- WCHAR* filter_string = (WCHAR*)g_utf8_to_utf16("PNG\0*.png\0", 10, NULL, NULL, NULL);
+ WCHAR filter_string[20];
+ wcsncpy(filter_string, L"PNG#*.png##", 11);
+ filter_string[3] = L'\0';
+ filter_string[9] = L'\0';
+ filter_string[10] = L'\0';
WCHAR* title_string = (WCHAR*)g_utf8_to_utf16(_("Select a filename for exporting"), -1, NULL, NULL, NULL);
WCHAR* extension_string = (WCHAR*)g_utf8_to_utf16("*.png", -1, NULL, NULL, NULL);
// Copy the selected file name, converting from UTF-8 to UTF-16
}
g_free(extension_string);
g_free(title_string);
- g_free(filter_string);
+
#else
if (gtk_dialog_run (GTK_DIALOG (fs)) == GTK_RESPONSE_ACCEPT)
{