Commit Graph

40891 Commits

Author SHA1 Message Date
Vadim Zeitlin
619b3b447a use wxCHECK instead of wxASSERT in Alloc() to avoid crashing when (trying to) use strings of length close to INT_MAX (bug 1933693)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 17:54:02 +00:00
Vadim Zeitlin
c336299eb6 don't crash in ReadString() if the length read from the stream is too big (bug 1933560)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-05 17:28:32 +00:00
Robin Dunn
2bbbb7892f Fix AdjustForOverflow to use item->CalcMin, not item->GetSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-03 23:28:16 +00:00
Václav Slavík
f4e1026261 Fixed timing of malformed animated GIFs in wxHTML (patch #1926825 by Gennady Feller)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-03 18:55:46 +00:00
Vadim Zeitlin
3d8b2865a1 replace wrong wxUSE_DYNAMIC_LOADER test with the correct wxUSE_DYNLIB_CLASS one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-03 12:47:16 +00:00
Robin Dunn
f9ce2a0f19 fix warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-03 03:33:38 +00:00
Robin Dunn
b23effe830 Fix for potential layout glitches in wxGridBagSizer when items span cells but
some other item affects the size of one of spanned rows/cols.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-03 02:45:07 +00:00
Václav Slavík
d37ce8aaa7 backported wxXmlNode::InsertChildAfter and its use during XML parsing to 2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-02 10:06:54 +00:00
Julian Smart
ccae5408e6 Only update the toolbar buttons if the toolbar is visible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-02 10:03:40 +00:00
Václav Slavík
ea0fabb19a changing label invalidates best size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-02 09:36:53 +00:00
Vadim Zeitlin
5ca19fa62c improve best height calculation for empty listbox [backport of r52927 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-31 16:39:53 +00:00
Václav Slavík
697d268c05 fixed wxXmlNode::InsertChild() documentation to match the code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-29 22:57:45 +00:00
Vadim Zeitlin
56c263be0b fixed typo (extra underscore) in wxEVT_COMMAND_LISTBOXDOUBLECLICKED
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 16:17:42 +00:00
Vadim Zeitlin
b79ed636b8 don't blit too much when copying static box border in OnPaint()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 13:03:02 +00:00
Vadim Zeitlin
c0f482da5b don't use gtk_notebook_insert_page() return value as some old GTK+ versions (the one in Solaris 9 for instance) don't have it; also don't use gtk_notebook_get_nth_page() which we need this return value for at all in the trunk as it seems to be unnecessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-27 00:28:45 +00:00
Václav Slavík
0ed3d9f17a fixed focus related regression in wxListCtrl's wxTextCtrl handling after r52476
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 23:45:20 +00:00
Julian Smart
be3a59f269 Added GetId() to Connect to ensure only the relevant events are processed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 15:49:08 +00:00
Julian Smart
c8de719de2 Fixed selection clearing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 08:47:58 +00:00
Vadim Zeitlin
a954b0dd20 fix crash when pressing Up key in empty combobox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-23 20:20:46 +00:00
Václav Slavík
3bf1d42654 fixed TABs positioning inside <pre> so that tags don't throw it apart
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-21 21:19:47 +00:00
Václav Slavík
26fa2f80fb backported fix to wxSpinCtrl::GetClientSize() in wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-21 18:23:17 +00:00
Václav Slavík
f480c1c138 made wxAcceleratorTable work with buttons in wxGTK too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-18 16:19:49 +00:00
Václav Slavík
c7f1724ac5 fixed unresolved symbols in wxSizer docs in 2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-18 16:17:29 +00:00
Benjamin Williams
59016c269e vista tree crash fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 21:22:06 +00:00
Vadim Zeitlin
45ff30df68 implement wxSpinCtrl::Reparent() to properly reparent both the spin button and the text control part [backport of r52543 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 13:46:31 +00:00
Julian Smart
7b4d2b50ea Don't accept picker text events from any old text control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-16 13:50:17 +00:00
Václav Slavík
f9c213a146 Fixed generic art provider to scale bitmaps down to client-specific best size if needed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-16 00:36:37 +00:00
Václav Slavík
725a35f6a0 if we can't detect tooltip color, yellow as used by Tiger is still better than white, which isn't used anywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-16 00:35:34 +00:00
Václav Slavík
8fd5fa3a0e wxMSW: generate wxClipboardTextEvent from wxTextCtrl with wxTE_RICH style too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 12:33:04 +00:00
Vadim Zeitlin
540ed0d7f4 initialize m_nCurLine in wxTextBuffer ctor (part of patch 1908134)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:38:43 +00:00
Vadim Zeitlin
78de549990 use wxTE_PROCESS_{ENTER,TAB} with the wxGridCellChoiceEditor combobox (slightly modified patch 1906581)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:24:12 +00:00
Paul Cornett
ac6704fa9b fix for infinite sizing loop (partial patch 1907189)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 15:55:09 +00:00
Julian Smart
ac01374973 Added typecasts (Sebastian Gottschalk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:24:34 +00:00
Julian Smart
251a07fb90 Fixed bug in wxDialUpManagerMSW::GetISPNames - uses realloc() without checking for NULL, leading to a memory leak (Sebastian Gottschalk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:18:24 +00:00
Julian Smart
61090a1a07 Fixed bug for chars with ASCII value > 127, explicitly casting to an unsigned char (Sebastian Gottschalk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:17:14 +00:00
Julian Smart
da62ad4c09 Fixed bug for chars with ASCII value > 127, explicitly casting to an unsigned char (Sebastian Gottschalk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:16:28 +00:00
Julian Smart
2e4dc1ddb1 Fixed buffer overflow (Sebastian Gottschalk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:14:57 +00:00
Julian Smart
5796f3e926 Fixed bug in XTI constructor macro (Sebastian Gottschalk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 14:13:05 +00:00
Stefan Csomor
0d3c6e6983 use the same font matching fallbacks for all layout operations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 10:33:09 +00:00
Václav Slavík
af24f0bd0f make sure FindFocus returns newly focused window immediately after SetFocus on 2.8 branch too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-14 01:14:56 +00:00
Václav Slavík
77392f0261 fixed crash in wxHtmlHelpController if the help window is still open
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-13 23:29:27 +00:00
Paul Cornett
2ace713c9a fix for idle processing stopping without processing all pending events, replaces patch 1912157
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-13 04:37:03 +00:00
Václav Slavík
3c61f2e3ab include 'Version' in version string, it's what Apple apps do
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-12 21:28:03 +00:00
Vadim Zeitlin
0cdffad26b removed non-existent SockAddrLen()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-12 19:24:33 +00:00
Julian Smart
5ba820ec7e Better fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-12 13:45:14 +00:00
Julian Smart
13beff4a16 Sizing/scrollbar corrections for Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-12 13:36:09 +00:00
Vadim Zeitlin
ba3049f5a5 VC6 compilation fix: remove redundant end variable declaration in Destroy()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-11 14:06:04 +00:00
Julian Smart
c6b4dd2e4d Typo correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-11 11:31:13 +00:00
Vadim Zeitlin
68e2214bfc fix WXDLLIMPEXP_FWD declaration of wxCollapsiblePane
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-10 13:55:07 +00:00
Vadim Zeitlin
c0e61743de use extra parentheses to fix Borland problems with operator?:
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-09 12:59:26 +00:00