Patch #1911 2007-03-01 16:58
stahta01
Patch Share Config file for wxW28 with disable_compat26- Download
- 1911-Patch_Share_Co.patch (698 bytes)
Index: src/tools/cb_share_config/mainframe.cpp
===================================================================
--- src/tools/cb_share_config/mainframe.cpp (revision 4032)
+++ src/tools/cb_share_config/mainframe.cpp (working copy)
@@ -417,7 +417,11 @@
wxT("*.conf"), // default extension
wxT("Code::Blocks configuration files (*.conf)|*.conf|"
"All files (*.*)|*.*"), // wildcards
- wxOPEN | wxFILE_MUST_EXIST // flags
+#if wxCHECK_VERSION(2, 8, 0)
+ wxFD_OPEN | wxFD_FILE_MUST_EXIST
+#else
+ wxOPEN | wxFILE_MUST_EXIST
+#endif
#if (WXWIN_COMPATIBILITY_2_4)
| wxHIDE_READONLY
#endif
History
Filename: disable_compat26_tools-unix.patch
Purpose: Change CB Share Config files to improve support for wxWidgets 2.8 with option disable_compat26.
Problem 1: File Constants where renamed with wxFD_ prefix
Reference 1: wx/filedlg.h
Solution 1: Use new names in #if/else/endif blocks
Problem 2: Depreciated constants where removed.
Reference 2: wx/toplevel.h
Solution 2: Replace with new values.
Replace wxRESIZE_BOX with wxMAXIMIZE_BOX
Replace wxTHICK_FRAME with wxRESIZE_BORDER
Updated to match current SVN 3797
Tim S
Updated to SVN 4032
This patch can be closed; For an better solution see patch "Patch CB Core files for wxW28 with disable_compat26"
https://developer.berlios.de/patch/?func=detailpatch&patch_id=2043&group_id=5358
Tim S
Closed. Thanks for your feedback.