Commit Graph

44816 Commits

Author SHA1 Message Date
Vadim Zeitlin
96b2cbe8b3 use (new) safer GetTraitsIfExists() in wxMutexGuiEnter/Leave() to avoid crashing on exit of wxGTK1 applications putting anything on clipboard (and maybe other cases)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-21 01:35:00 +00:00
Vadim Zeitlin
4010aae119 don't give error on startup of any application using wxHTML just because /usr/local/share/mime/globs doesn't exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-21 01:33:51 +00:00
Vadim Zeitlin
42d908f13d don't use deprecated function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-21 01:33:04 +00:00
Vadim Zeitlin
faaa88e7ab fix generation of events for an initially empty wxDirPickerCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 22:48:34 +00:00
Vadim Zeitlin
ee437b7e1d blind attempt to fix wxBitmap in wxMGL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 22:36:51 +00:00
Vadim Zeitlin
567d9d70c1 fix (harmless) Win64-compatibility MSVC warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 22:11:20 +00:00
Vadim Zeitlin
85716ec3bf handle C++ exception in EVT_{TIMER,IDLE} handlers (#9768)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 22:05:30 +00:00
Vadim Zeitlin
2adc95dea3 really fix compilation for PCH-less builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 12:57:47 +00:00
Vadim Zeitlin
1ada821748 add a missing backslash (#9766)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 12:37:20 +00:00
Vadim Zeitlin
c40fd721e4 compilation fix for PCH-less builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-20 12:35:31 +00:00
Vadim Zeitlin
2186321ff5 big wxURI cleanup; it now handles Unicode characters correctly (#3874)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 23:14:51 +00:00
Vadim Zeitlin
ece97e2882 remove the just added assertEquals(time_t, long) overload, it results in infinite recursion and crash if time_t is the same type as long
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 20:07:36 +00:00
Vadim Zeitlin
cc209a518f check that string passed to FromUTF8() is valid even in release build, this is safer; add a separate FromUTF8Unchecked() which can be used for maximal efficiency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 19:59:59 +00:00
Vadim Zeitlin
9f10e7c758 no changes, just removed an unnecessary semicolon at top level
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 15:36:39 +00:00
Vadim Zeitlin
66ad7d6a0a compilation fix for builds without wxHAS_RAW_KEY_CODES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 05:33:36 +00:00
Vadim Zeitlin
28d4f49b78 already escaped backslash shouldn't escape the following quote in ConvertStringToArgs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 01:53:04 +00:00
Vadim Zeitlin
e3276230de fix bug with wxCSConv("ASCII")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 01:45:38 +00:00
Vadim Zeitlin
a08a37d0d6 no changes, just added some explanatory comments for wxCSConv members
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 01:37:43 +00:00
Vadim Zeitlin
c19c2f6efa disable compilation of test broken by wxMimeTypesManager changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 23:36:04 +00:00
Vadim Zeitlin
3d9b0b5393 compilation fix for PCH-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 23:33:19 +00:00
Vadim Zeitlin
5c3d5ef246 simplify the test, don't reuse the same macro for different things
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 23:08:24 +00:00
Vadim Zeitlin
1de532f57e get rid of special WX_ASSERT_FOO_EQUAL macros by defining CppUnit::assertEquals() overloads for wx types
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 23:07:23 +00:00
Vadim Zeitlin
a6eac99d9e mention compatibility implications of wxExecute() quoting changes; don't change quoting of already quoted arguments in 2.8 for compatibility; also fix handling of empty arguments as a side effect (see #4115)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 22:22:16 +00:00
Vadim Zeitlin
8a9e5d8590 compilation fix for eVC4: include commctrl.h explicitely
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 13:47:05 +00:00
Julian Smart
4bf9e5bc14 Tab removal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 12:56:22 +00:00
Julian Smart
a8eeee195b Fixed initial layout bug when using dynamically created bitmap on wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 08:17:14 +00:00
Paul Cornett
4a4a02acd1 fix masking of disabled bitmaps with some themes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 02:45:48 +00:00
Vadim Zeitlin
ccaa848d6d really correct detecting the end of UTF-7-encoded strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 00:47:21 +00:00
Vadim Zeitlin
36f9367822 fix bug introduced in r54646: we still need to count the embedded NULs when converting the entire NUL-terminated string to wchar_t, only the trailing NUL shouldn't be counted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:45:04 +00:00
Vadim Zeitlin
42e8b52f09 make test failures easier to debug by using more informative failure messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:24:21 +00:00
Vadim Zeitlin
ae43193571 don't run the tests which can't succeed in ANSI build; remove the tests for wxUSE_WCHAR_T, it's always 1 now; test MB2WC conversions in Unicode build too (it only tested WC2MB for some reason)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:01:17 +00:00
Vadim Zeitlin
852dcba528 properly detect missing data at the end of UTF-7-encoded segment and fail the conversion in this case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:01:02 +00:00
Vadim Zeitlin
55f7a9ec3c CP-xxx and MS-yyy iconv identifiers actually don't have dashes in them (this fixes CP932 unit test failure under FreeBSD where iconv doesn't have WINDOWS-932)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 19:44:59 +00:00
Vadim Zeitlin
bb778cae99 emphasize the fact that GetSelectedCols/Rows() is not sufficient to get the selection (#4732)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 16:06:23 +00:00
Vadim Zeitlin
d8df88930e allow using SetFont(wxNullFont) to reset the font as per documented behaviour (#3238)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 15:53:44 +00:00
Vadim Zeitlin
bec76e1835 add GetLo/Hi() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 15:21:24 +00:00
Stefan Csomor
f772729b7c adding missing include for non-precomp builds, and grouping headers, solves #9744
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 08:59:27 +00:00
Vadim Zeitlin
d79c9c6791 _beginthreadex() entry point should really return unsigned and not wxUIntPtr even if this means that it's impossible to return pointers from wxThread::Entry() under Win64 (#9727)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 02:49:12 +00:00
Vadim Zeitlin
b3f2ce1c3f check for comctl32.dll version and not OS one as an app running XP without manifest is still incapable of drawing bitmaps with alpha (still related to #8684)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 01:47:14 +00:00
Vadim Zeitlin
52d80ec642 use parent background and not ours unless one was explicitly set when manually drawing (related to #8684)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 01:30:32 +00:00
Vadim Zeitlin
56c74796a6 clean up wxBitmapButton::Create(); override MSWGetStyle() (#4804)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 01:08:52 +00:00
Vadim Zeitlin
fae7120624 use wxCmdLineParser::ConverStringToArgs() instead of (incorrectly) duplicating it here (#9743)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:53:11 +00:00
Vadim Zeitlin
a4761b4c08 implement flag for Unix-like behaviour in wxCmdLineParser::ConverStringToArgs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:49:25 +00:00
Vadim Zeitlin
fec42c21ef added wxConvISO8859_1 test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:48:47 +00:00
Vadim Zeitlin
f6a0208756 fix the output length returned from cWC2MB/MB2WC() to be consistent with From/ToWChar(); fix off by NUL-length bug in wxMBConv implementation of From/ToWChar() in terms of legacy WC2MB/MB2WC() (which are still used in wxMBConv_wxwin) that this uncovered; added a simple test for the bugs the old code resulted in which could be easily seen with wxConvISO8859_1 (see #9739)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 23:57:25 +00:00
Julian Smart
9ca15f291c Fixed wxTreebook tree control style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 21:28:12 +00:00
Vadim Zeitlin
339e08c704 use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 18:00:49 +00:00
Vadim Zeitlin
fa0584f14d use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 17:38:03 +00:00
Vadim Zeitlin
b161b1549c test ok in the record reading loop as otherwise we never exit from it if there is an invalid character in the record
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 17:31:40 +00:00
Vadim Zeitlin
05392dc8c6 remove wxCSConv::MB2WC/WC2MB, implement Latin-1 fallback conversion in To/FromWChar() themselves; this is more efficient and removing the old code fixes off by 1 bugs in it (related to #9739)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 16:09:00 +00:00