summaryrefslogtreecommitdiff
path: root/math/graphthing/files/patch-src_fancyfileselection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'math/graphthing/files/patch-src_fancyfileselection.cc')
-rw-r--r--math/graphthing/files/patch-src_fancyfileselection.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/math/graphthing/files/patch-src_fancyfileselection.cc b/math/graphthing/files/patch-src_fancyfileselection.cc
new file mode 100644
index 000000000000..b70508c49c7d
--- /dev/null
+++ b/math/graphthing/files/patch-src_fancyfileselection.cc
@@ -0,0 +1,22 @@
+--- 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("");