1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00
freebsd-ports/math/graphthing/files/patch-src_fancyfileselection.cc
Dmitry Marakasov 81e812fb7f - Drop deprecated WX_UNICODE
- Regenerate patches with `make makepatch`
- Fix WWW:
2016-08-16 08:32:15 +00:00

23 lines
610 B
C++

--- src/fancyfileselection.cc.orig 2006-09-11 01:32:12 UTC
+++ src/fancyfileselection.cc
@@ -21,6 +21,10 @@ static struct {
{ "Postscript", ".ps" }
};
+#if !WXWIN_COMPATIBILITY_2_4
+# define wxHIDE_READONLY 0
+#endif
+
FancyFileSelection::FancyFileSelection (wxWindow *parent, const wxString &title,
long style, bool file_types,
const wxString &mask)
@@ -30,7 +34,7 @@ FancyFileSelection::FancyFileSelection (
style |= wxHIDE_READONLY;
else if (style & wxSAVE)
style |= wxOVERWRITE_PROMPT;
- SetStyle (style);
+ SetWindowStyle (style);
if (file_types) {
wxString wc = wxT("");