Commit Graph

41248 Commits

Author SHA1 Message Date
Vadim Zeitlin
f15c021bb6 Fix possible deadlock in wxEvtHandler::ProcessPendingEvents().
Delete the event we just processed before re-locking the critical section as
this may result in deadlocks if the (user-defined) event dtor does something
non-trivial.

Closes #10790.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-20 21:48:50 +00:00
Julian Smart
c78e95f633 Avoid duplicate character event for VK_DECIMAL on numeric keypad
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-20 10:57:20 +00:00
Vadim Zeitlin
122fc27e3e Check for self-assignment in wxFileName::operator=().
This is a backport of r56794 from trunk but adds the check for self-assignment
to the Assign() implementation which is in a .cpp file and so is compiled into
the library and not operator=() itself which is inlined to avoid any problems
with mixing different version of this inline function when updating to next
2.8 version without recompiling.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-16 11:37:46 +00:00
Julian Smart
ce2a0101bf wxRTC's own caret is more reliable than the generic one, so use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 15:52:26 +00:00
Stefan Neis
76738ae8b7 Be more paranoid about parent window possibly being NULL (partly fixes #11195).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-13 15:47:25 +00:00
Julian Smart
9a2e7481ba Fix on Mac to prevent scrollbars always being shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-11 08:55:34 +00:00
Vadim Zeitlin
cdf7bf04aa Predefine wxNEEDS_T to fix wxrc compilation with Sun CC.
After the recent changes _T() is not defined any longer when using Sun CC but
this file does need it to be defined and seems to compile fine when it is, so
define wxNEEDS_T before including any wx headers.

See #10660.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:37:14 +00:00
Vadim Zeitlin
6dfeacd66f Don't use _T() in public headers used under Unix.
Avoid conflict with the Sun CC standard headers (see #10660).

Also update the change log to mention _T() changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:37:05 +00:00
Vadim Zeitlin
9ff9127930 Undef _T before including standard headers and redefine it later.
This change fixes the build of wxWidgets itself by undefining _T() before
including any standard headers and redefining it after including them.

See #10660.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:29:51 +00:00
Vadim Zeitlin
7620326bdb Don't define _T() when using Sun compiler if possible.
Avoid defining _T() if possible as it conflicts with the use of this
identifier in standard headers. Do still define it when building wx itself or
when the special symbol wxNEEDS__T is explicitly predefined.

See #10660.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:29:43 +00:00
Vadim Zeitlin
b03aba8244 Define WXBUILDING when building wxWidgets itself.
This is needed by the upcoming _T-related patches (see #10660).

Notice that only Makefile.in was regenerated using the old 0.2.5 bakefile
version to keep changes to the minimum. The other makefiles will have more
changes when they are regenerated with bakefile 0.2.6 after we update to it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-09 22:29:35 +00:00
Vadim Zeitlin
080a52bc8e Use VariantTimeToSystemTime() in wxConvertOleToVariant().
Fix the problem with variants containing only time (but not date) information.

Also check in the symmetric changes to wxConvertVariantToOle() but disable
them for now as they were not tested.

Closes #11177.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-06 15:59:49 +00:00
Vadim Zeitlin
01943fa2ea Really fix compilation of wxURLDataObject.
Conversion from char* to wxString doesn't exist in 2.8, need to do it
explicitly.

Closes #11102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-05 12:39:26 +00:00
Vadim Zeitlin
77756ff0f2 Fix bug in wxTreeCtrl::ItemHasChildren() for virtual root item.
Backport of r58177 from trunk, see #11169.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-04 19:10:46 +00:00
Vadim Zeitlin
4a7adb8fcc Another compilation fix after r61814.
wxDECLARE_NO_COPY_CLASS() doesn't exist in 2.8, only DECLARE_NO_COPY_CLASS()
does.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-04 00:29:52 +00:00
Vadim Zeitlin
581b7a97be Compilation fix after r61814.
Trunk change was not completely merged and broke the build, fix it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-03 11:03:36 +00:00
Vadim Zeitlin
1a0b69436c Fix off by one errors and buffer overflows in wxURLDataObject.
Backport of r61787 and r61788 from trunk.

Closes #11102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-03 00:32:09 +00:00
Vadim Zeitlin
0ce4ea896d Fix SetToolTip(NULL) in newer GTK versions.
Backport of r61549 from HEAD.

Closes #11158.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-03 00:16:50 +00:00
Julian Smart
da7eb4871d Documented font dialog fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-01 13:39:07 +00:00
Julian Smart
e3dca87def Backported fix from 2.9.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-01 13:36:08 +00:00
Vadim Zeitlin
05e99449f5 Unload GDI+ DLL during wxWidgets shutdown.
This was done during static objects cleanup time previously resulting in
deadlocks when wxWidgets was used as a DLL as DLLs can't be unloaded when
wxWidgets DLL itself is being finalized because of the global loader lock.

This is a back port of r48778 and r54233 from trunk.

Closes #11127.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-23 21:36:09 +00:00
Vadim Zeitlin
e5c9621fd1 Fix extraction of standard command line arguments in wxX11.
The original number of arguments should be used when checking the argument
index for validity. Additionally, memmove() wasn't moving the correct number
of bytes because of forgotten sizeof().

See #11124.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-20 00:01:55 +00:00
Julian Smart
8b9009904d Fix numpad Del not working in wxRTC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-18 17:33:02 +00:00
Vadim Zeitlin
31f6f21ddf Corrected fix for #11014 in r61506.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-13 17:32:24 +00:00
Julian Smart
a6635eb987 If zero spacing after paragraph is explicitly specified, suppress spacing after paragraph.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-11 09:27:25 +00:00
Julian Smart
e391f598c0 Mark a couple of labels for translation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-09 15:55:56 +00:00
Václav Slavík
cb14e362f3 compilation fix: only one wxInitialize form may have default argument values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 10:14:36 +00:00
Václav Slavík
08d173ca31 compilation fix: only one wxInitialize form may have default argument values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 10:14:03 +00:00
Václav Slavík
a3bc27e40a added wxInitialize() overload taking char**, to make use from main() easier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 07:42:54 +00:00
Václav Slavík
f90c861996 fixed typo in comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 07:36:39 +00:00
Václav Slavík
113abce509 Use wxInitializer in wxEntryReal() instead of directly calling wxEntryStart() without refcounting. This makes it possible to write hybrid CLI/GUI wx applications.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 07:10:38 +00:00
Vadim Zeitlin
100d32a6a3 Fix crash when copying Unicode URLs to the clipboard.
Closes #11014.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 15:01:32 +00:00
Vadim Zeitlin
a30d58b54d position the popup on the correct screen (see #10462) [backport of r58592 and r58598 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-19 16:45:08 +00:00
Paul Cornett
3756f0ee8f fix crash with repeated split horizontal/vertical and replace window, #11002
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 22:46:26 +00:00
Vadim Zeitlin
8a6a7954c5 remove the event handler being deleted from pending events list (closes #10997)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 14:30:05 +00:00
Jaakko Salli
6b0546ba57 Made sorting case-insensitive (to match wxComboBox behavior, backported from SVN trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-11 07:08:44 +00:00
Vadim Zeitlin
116458be4e fix linking error when wxUSE_ON_FATAL_EXCEPTION==0 (closes #10969)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-07 09:35:56 +00:00
Vadim Zeitlin
0bb590d611 correct writing direction for Farsi
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-06 21:19:58 +00:00
Stefan Csomor
114aa762de attempt for a different fix to focus rect refresh problems under full keyboard access
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-02 12:59:53 +00:00
Vadim Zeitlin
4680ad0e41 added new wx-config --query-xxx options [partial backport of r61026 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-01 09:52:39 +00:00
Vadim Zeitlin
52046585ca don't include wx/msw/winundef.h when including wx/defs.h from C code (closes #10910)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-28 17:32:20 +00:00
Julian Smart
618dbbafb8 Allow for menus when deleting a tool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-28 17:01:27 +00:00
Vadim Zeitlin
44566e1ed0 use the top level window parent as argument to gtk_window_set_transient_for() to fix GTK errors/crashes (closes #10929)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-27 22:02:51 +00:00
Julian Smart
9e004dc28d Fix for toolbar commands not working
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-27 12:31:00 +00:00
Julian Smart
50076362d2 Style selection now restored after editing the style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-24 10:35:46 +00:00
Julian Smart
2614c696fe Made standard bullet names translatable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-24 10:28:04 +00:00
Julian Smart
e8e94d3c99 Patch from Bruno Daniel to fix tab position inconsistency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 23:26:05 +00:00
Julian Smart
f6ca6062f1 We have to avoid use of wxMacLTEHIViewControl even with CG on 10.5
because we get focus ring problems with wxSpinCtrls and wxSpinButton
(to reproduce pre-this-patch, click between wxSpinCtrl and wxSpinButton
in widgets sample)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 23:06:36 +00:00
Julian Smart
d91c632a9a Corrected version test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 21:44:19 +00:00
Julian Smart
7cc504b42d Avoid disabling comboboxes completely on 10.4 (caused by rev 56156)
See also ticket 10047


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 21:31:50 +00:00