]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoReplace more DECLARE_CLASS occurrences with DECLARE_DYNAMIC_CLASS.
Vadim Zeitlin [Tue, 7 Jun 2011 16:48:36 +0000 (16:48 +0000)] 
Replace more DECLARE_CLASS occurrences with DECLARE_DYNAMIC_CLASS.

Correct more mismatches between DECLARE_CLASS and IMPLEMENT_DYNAMIC_CLASS
usage.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoavoid direct struct access for GTK3
Paul Cornett [Tue, 7 Jun 2011 16:24:26 +0000 (16:24 +0000)] 
avoid direct struct access for GTK3

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUse DECLARE_DYNAMIC_CLASS instead of DECLARE_CLASS.
Vadim Zeitlin [Tue, 7 Jun 2011 14:28:55 +0000 (14:28 +0000)] 
Use DECLARE_DYNAMIC_CLASS instead of DECLARE_CLASS.

Correctly use DECLARE_DYNAMIC_CLASS for the classes that are supposed to be
dynamically creatable as using DECLARE_CLASS doesn't work any longer after the
last commit.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoMake wxDECLARE_CLASS synonym of wxDECLARE_ABSTRACT_CLASS.
Vadim Zeitlin [Tue, 7 Jun 2011 13:06:17 +0000 (13:06 +0000)] 
Make wxDECLARE_CLASS synonym of wxDECLARE_ABSTRACT_CLASS.

Previously wxDECLARE_CLASS was a synonym for wxDECLARE_DYNAMIC_CLASS which was
inconsistent with its documentation and wxIMPLEMENT_CLASS that was the same as
wxIMPLEMENT_ABSTRACT_CLASS.

Resolve this in the most backwards compatible and also arguably logical way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoVietnamese translation update from Trần Ngọc Quân.
Vadim Zeitlin [Tue, 7 Jun 2011 13:06:14 +0000 (13:06 +0000)] 
Vietnamese translation update from Trần Ngọc Quân.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agousing higher abstraction to allow for optimized implementations
Stefan Csomor [Mon, 6 Jun 2011 23:23:35 +0000 (23:23 +0000)] 
using higher abstraction to allow for optimized implementations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agospeeding up rectangle drawing by using specific methods, needs 40% less time
Stefan Csomor [Mon, 6 Jun 2011 23:15:27 +0000 (23:15 +0000)] 
speeding up rectangle drawing by using specific methods, needs 40% less time

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years ago10.4 compatibility
Stefan Csomor [Mon, 6 Jun 2011 21:13:33 +0000 (21:13 +0000)] 
10.4 compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoreverting to idle handling
Stefan Csomor [Mon, 6 Jun 2011 21:12:14 +0000 (21:12 +0000)] 
reverting to idle handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoturning off unconditional usage of filter-delegate, using native capabilities under...
Stefan Csomor [Mon, 6 Jun 2011 19:19:42 +0000 (19:19 +0000)] 
turning off unconditional usage of filter-delegate, using native capabilities under 10.6, proper handling of empty default directories for dialogs by passing in nil to native calls,

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agosupporting nested window disablers on the same window
Stefan Csomor [Mon, 6 Jun 2011 16:32:41 +0000 (16:32 +0000)] 
supporting nested window disablers on the same window

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agosupporting native background color on wxWindow descendants that are not themselves...
Stefan Csomor [Mon, 6 Jun 2011 02:28:56 +0000 (02:28 +0000)] 
supporting native background color on wxWindow descendants that are not themselves native controls, like eg wxPanel , see #13032

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agosupporting native background on nonownedwindow, see #13032
Stefan Csomor [Sun, 5 Jun 2011 16:08:12 +0000 (16:08 +0000)] 
supporting native background on nonownedwindow, see #13032

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoadding another assert for tracking modalSession problems
Stefan Csomor [Sun, 5 Jun 2011 15:32:50 +0000 (15:32 +0000)] 
adding another assert for tracking modalSession problems

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRemoved erroneous second reference to status bar height
Julian Smart [Fri, 3 Jun 2011 17:18:35 +0000 (17:18 +0000)] 
Removed erroneous second reference to status bar height

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoallowing more system keys in fullscreen mode, properly taking framestyle into account
Stefan Csomor [Fri, 3 Jun 2011 09:15:15 +0000 (09:15 +0000)] 
allowing more system keys in fullscreen mode, properly taking framestyle into account

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofirst implementation for state on custom renderer, see #12890
Stefan Csomor [Thu, 2 Jun 2011 09:25:11 +0000 (09:25 +0000)] 
first implementation for state on custom renderer, see #12890

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofixes #12867
Stefan Csomor [Thu, 2 Jun 2011 08:36:57 +0000 (08:36 +0000)] 
fixes #12867

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoreactivate commented out method
Stefan Csomor [Thu, 2 Jun 2011 08:19:16 +0000 (08:19 +0000)] 
reactivate commented out method

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agocleanup
Stefan Csomor [Thu, 2 Jun 2011 08:18:11 +0000 (08:18 +0000)] 
cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo changes, just avoid unused parameters warnings.
Vadim Zeitlin [Wed, 1 Jun 2011 22:58:05 +0000 (22:58 +0000)] 
No changes, just avoid unused parameters warnings.

Wrap parameters of the stub implementation of the newly added StartEditor() in
WXUNUSED().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofirst stab at supporting custom renderers
Stefan Csomor [Wed, 1 Jun 2011 20:05:03 +0000 (20:05 +0000)] 
first stab at supporting custom renderers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoVirtualize StartEditor and add implementations for the ports that can do it.
Robin Dunn [Tue, 31 May 2011 19:36:47 +0000 (19:36 +0000)] 
Virtualize StartEditor and add implementations for the ports that can do it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoBuild fixes for using Cairo on MSW.
Robin Dunn [Tue, 31 May 2011 19:16:55 +0000 (19:16 +0000)] 
Build fixes for using Cairo on MSW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofix memory leak in wxScreenDC, fixes #13249
Paul Cornett [Tue, 31 May 2011 17:16:53 +0000 (17:16 +0000)] 
fix memory leak in wxScreenDC, fixes #13249

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agomaking sure
Stefan Csomor [Tue, 31 May 2011 08:09:18 +0000 (08:09 +0000)] 
making sure

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFree calloc()'d pointer correctly in wxFSWatchEntryMSW.
Vadim Zeitlin [Sat, 28 May 2011 19:35:13 +0000 (19:35 +0000)] 
Free calloc()'d pointer correctly in wxFSWatchEntryMSW.

OVERLAPPED struct was allocated using calloc() but deleted later. Fix this by
deallocating it with free() instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed saving GIFs on big-endian architectures.
Dimitri Schoolwerth [Fri, 27 May 2011 12:25:25 +0000 (12:25 +0000)] 
Fixed saving GIFs on big-endian architectures.

Word (16 bits) values were written in the wrong order resulting in invalid GIF files on for example PowerPC machines.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUse #ifdef, not #if, to check for __WXGTK26__ symbol.
Vadim Zeitlin [Fri, 27 May 2011 09:46:27 +0000 (09:46 +0000)] 
Use #ifdef, not #if, to check for __WXGTK26__ symbol.

This fixes gcc warning given if __WXGTK26__ is not defined (which almost never
happens nowadays but still).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agousing systemui for full screen to allow modal dialogs
Stefan Csomor [Wed, 25 May 2011 11:26:47 +0000 (11:26 +0000)] 
using systemui for full screen to allow modal dialogs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCorrect the picker button best size computation.
Vadim Zeitlin [Tue, 24 May 2011 21:19:35 +0000 (21:19 +0000)] 
Correct the picker button best size computation.

Fix the typo in the changes of r67763.

See #13232.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoguard against NULL textctrl, fixes #13247
Stefan Csomor [Tue, 24 May 2011 17:38:03 +0000 (17:38 +0000)] 
guard against NULL textctrl, fixes #13247

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCorrect type MSVCProjectBuilder in the build script.
Vadim Zeitlin [Mon, 23 May 2011 23:20:18 +0000 (23:20 +0000)] 
Correct type MSVCProjectBuilder in the build script.

This prevented MSVC version detection from environment variables from working.

Closes #13243.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't use native MSW wxHyperlinkCtrl implementation in wxUniv.
Vadim Zeitlin [Mon, 23 May 2011 15:26:42 +0000 (15:26 +0000)] 
Don't use native MSW wxHyperlinkCtrl implementation in wxUniv.

Move src/msw/hyperlink.cpp and include/wx/msw/hyperlink.h to
ADVANCED_MSW_NATIVE_SRC/HDR from ADVANCED_MSW_SRC/HDR respectively to ensure
that these files are not used in wxUniv build that uses its own, generic,
versions.

This should fix wxUniv/MSW build as the native files didn't even compile with
wxUniv.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRebake after the addition of more richtext headers.
Vadim Zeitlin [Mon, 23 May 2011 15:26:38 +0000 (15:26 +0000)] 
Rebake after the addition of more richtext headers.

The project files haven't been updated after the last files.bkl modification,
do it now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd a trivial benchmark for wxDateTime::ParseDate().
Vadim Zeitlin [Mon, 23 May 2011 11:06:48 +0000 (11:06 +0000)] 
Add a trivial benchmark for wxDateTime::ParseDate().

Add a test to check the performance of this method.

See #13242.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoItalian translations update from Stefano <l.stickell@@yahoo.it>.
Vadim Zeitlin [Sun, 22 May 2011 10:53:10 +0000 (10:53 +0000)] 
Italian translations update from Stefano <l.stickell@@yahoo.it>.

Minor updates to the translations themselves.

Also changed the charset to UTF-8 from Latin-1.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed wxMessageBox with only an OK button returning wxCANCEL under MSW.
Dimitri Schoolwerth [Fri, 20 May 2011 22:48:17 +0000 (22:48 +0000)] 
Fixed wxMessageBox with only an OK button returning wxCANCEL under MSW.

Since r67620 when wxMessageDialog::ShowModal uses a native task dialog and only has an OK button it actually uses a Cancel button, this resulted in the function's return value wrongly changing to wxID_CANCEL. Fix this by handling the special case with only an OK button and return wxID_OK instead of wxID_CANCEL (and thus wxMessageBox, which uses wxMessageDialog::ShowModal, returning wxOK instead of wxCANCEL).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoApplied patch containing small corrections to German translations.
Dimitri Schoolwerth [Fri, 20 May 2011 22:44:53 +0000 (22:44 +0000)] 
Applied patch containing small corrections to German translations.

Patch by Blake Oleander (snowleopard2) with input from Robert Hoffmann. Closes #13212.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAvoid conversion from wxString to wxChar* and back in wxListBase::DoCopy().
Vadim Zeitlin [Fri, 20 May 2011 14:29:07 +0000 (14:29 +0000)] 
Avoid conversion from wxString to wxChar* and back in wxListBase::DoCopy().

Don't use temporary wxChar* variable to store the node string. This is not
only inefficient because we need to convert wxString to it only to convert it
back to wxString on the next line but also breaks compilation when
wxUSE_STD_STRING==1 and wxUSE_STD_CONTAINERS==0 as there is no implicit
conversion between wxString and wxChar* in this case.

Also modify the code for long keys in the same way just for consistency.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAllow wxPGProperty::IsChildSelected() to work recursively
Jaakko Salli [Fri, 20 May 2011 14:26:17 +0000 (14:26 +0000)] 
Allow wxPGProperty::IsChildSelected() to work recursively

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoMake picker control at least as high as the associated text and square.
Vadim Zeitlin [Thu, 19 May 2011 14:14:58 +0000 (14:14 +0000)] 
Make picker control at least as high as the associated text and square.

Ensure that the height of the picker control is at least as big as the height
of the associated text control and that it's at least as wide as it is high as
it looks bad otherwise.

Closes #13232.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agomaking sure clip (device coordinages) is applied before any transforms, fixes #13216
Stefan Csomor [Wed, 18 May 2011 07:32:58 +0000 (07:32 +0000)] 
making sure clip (device coordinages) is applied before any transforms, fixes #13216

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAllow passing wxLongLong values directly to wx pseudo-vararg functions.
Vadim Zeitlin [Tue, 17 May 2011 22:12:39 +0000 (22:12 +0000)] 
Allow passing wxLongLong values directly to wx pseudo-vararg functions.

Allow passing wxLongLong objects when a "%lld" format specifier (or
equivalent) is used just as we already do for wxString objects when "%s" is
used. This is more convenient and makes wxLongLong closes to the native type.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't construct invalid wxDateTime in GTK calendar control callbacks.
Vadim Zeitlin [Tue, 17 May 2011 22:12:35 +0000 (22:12 +0000)] 
Don't construct invalid wxDateTime in GTK calendar control callbacks.

GTK+ may momentarily return invalid date when switching the month in the
calendar control. Check for this and adjust the date ourselves to make it
valid if necessary in order to avoid the asserts from wxDateTime ctor.

Closes #13224.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix client to screen translation in wxWindowMSW::PopupMenu().
Vadim Zeitlin [Tue, 17 May 2011 13:35:04 +0000 (13:35 +0000)] 
Fix client to screen translation in wxWindowMSW::PopupMenu().

Use wxWidgets ClientToScreen() function for computing the screen coordinates
of the popup menu instead of Windows ::ClientToScreen() as the latter doesn't
know about the toolbar which may be present in wxFrame and excluded from the
client area.

Closes #13223.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoEnsure that we never return negative client size.
Vadim Zeitlin [Mon, 16 May 2011 14:07:40 +0000 (14:07 +0000)] 
Ensure that we never return negative client size.

wxMSW could return negative client size for tiny windows with borders, this
was unexpected and shouldn't happen so explicitly ensure it does not.

Also add a unit test to check that this problem doesn't exist in other ports.

Closes #13184.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo changes, just refactor the code in MSW wxGetOsDescription() slightly.
Vadim Zeitlin [Mon, 16 May 2011 10:01:12 +0000 (10:01 +0000)] 
No changes, just refactor the code in MSW wxGetOsDescription() slightly.

Construct the description string from several pieces: the OS name, its build
number and any extra information about it, instead of duplicating the code
appending the build number to the name in several places.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRecognize Windows 7 and Server 2008 versions in wxGetOsDescription().
Vadim Zeitlin [Mon, 16 May 2011 10:01:08 +0000 (10:01 +0000)] 
Recognize Windows 7 and Server 2008 versions in wxGetOsDescription().

Use marketing names for these systems instead of just describing them as
"Window NT x.y".

Closes #13220.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAllow dragging floating AUI frames by the gripper.
Vadim Zeitlin [Sun, 15 May 2011 16:16:11 +0000 (16:16 +0000)] 
Allow dragging floating AUI frames by the gripper.

Previously starting to drag a pane by its gripper worked but once it undocked
it was impossible to drag it by the gripper any more which was annoying for
the user and unexpected.

Fix this by ensuring that we move the correct top level window and not the
child window when dragging floating panes.

Closes #13177.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix small error in floating AUI frames client size under wxMSW.
Vadim Zeitlin [Sat, 14 May 2011 14:18:20 +0000 (14:18 +0000)] 
Fix small error in floating AUI frames client size under wxMSW.

The client size of the floating frames ended up being wrong because we changed
the wxRESIZE_BORDER flag after setting it and this changed it (at least under
MSW).

Reset wxRESIZE_BORDER first now and set the client size correctly afterwards.

Closes #13043.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix restoring of wxAuiManager::m_has_maximized when restoring perspective.
Vadim Zeitlin [Sat, 14 May 2011 14:18:17 +0000 (14:18 +0000)] 
Fix restoring of wxAuiManager::m_has_maximized when restoring perspective.

If the perspective being loaded contains a maximized pane, set the
m_has_maximized flag to true. Otherwise the flag and the effective pane state
was out of sync resulting in several problems in the UI behaviour.

Closes #12527.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCorrect the drawing of check tools with a drop down button in wxAuiToolBar.
Vadim Zeitlin [Sat, 14 May 2011 14:18:14 +0000 (14:18 +0000)] 
Correct the drawing of check tools with a drop down button in wxAuiToolBar.

This combination was simply not covered by the existing code, add the missing
DrawDropDownButton() call.

Closes #11139.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoReset the checked state of the first radio item in wxAuiToolBar too.
Vadim Zeitlin [Sat, 14 May 2011 14:18:09 +0000 (14:18 +0000)] 
Reset the checked state of the first radio item in wxAuiToolBar too.

Fix the condition of the loop in wxAuiToolBar::ToggleTool() to also uncheck
the item with index 0 that was always excluded before because of "i > 0" check
in the loop.

Also exclude the item being turned on itself from the loops, it's useless to
reset its checked state only to turn it on again below.

Closes #11110.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCheck for NULL pane window in wxAuiManager.
Vadim Zeitlin [Sat, 14 May 2011 14:18:05 +0000 (14:18 +0000)] 
Check for NULL pane window in wxAuiManager.

Check that the AUI pane has a non-NULL associated frame before checking
whether it's shown.

This should fix a crash which could happen when docking an undocked toolbar.

Closes #10926.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoImprove checking for the landing point when docking windows in wxAUI.
Vadim Zeitlin [Sat, 14 May 2011 14:18:02 +0000 (14:18 +0000)] 
Improve checking for the landing point when docking windows in wxAUI.

This is especially important for multiple monitor setups in which the old code
could result in false positives and suggest docking a window on a wrong
display.

Closes #10612.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDraw wxAuiToolbar button text even if it has no bitmap.
Vadim Zeitlin [Sat, 14 May 2011 14:17:59 +0000 (14:17 +0000)] 
Draw wxAuiToolbar button text even if it has no bitmap.

Don't skip drawing the button label if it doesn't have any bitmap.

Closes #10303.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoTake the AUI floating title bar height into account when dragging it.
Vadim Zeitlin [Sat, 14 May 2011 14:17:55 +0000 (14:17 +0000)] 
Take the AUI floating title bar height into account when dragging it.

The cursor wasn't positioned correctly when a floating toolbar was dragged by
pressing the mouse over its gripper because its position didn't take into
account the difference between the client and window coordinates of the
floating window (which is basically the height of the window title bar).

Notice that the same problem still remains when starting to drag a docked
toolbar as it doesn't have the title bar initially but does have it later
so the same fix should probably be applied when we reparent the toolbar.

Closes #9984.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCancel dragging in wxAuiNotebook on capture loss.
Vadim Zeitlin [Sat, 14 May 2011 14:17:52 +0000 (14:17 +0000)] 
Cancel dragging in wxAuiNotebook on capture loss.

Don't leave the display and internal variables in inconsistent state when the
mouse capture is lost while a notebook page is being dragged (as can happen
if Alt-Tab is pressed under Windows, for example).

Closes #9976.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't use the standard containers by default.
Vadim Zeitlin [Fri, 13 May 2011 13:30:12 +0000 (13:30 +0000)] 
Don't use the standard containers by default.

Revert the change of wxUSE_STD_CONTAINERS to 1 by default as this introduces
more incompatibilities which risk hamper upgrading to 3.0 unnecessarily.

Update the documentation to better explain why do the non-standard container
classes exist in wxWidgets and, especially, that they shouldn't be used when
possible. Also document the differences between the normal and STL containers
build in the manual.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix the comparison function in the list control sample to do what it says.
Vadim Zeitlin [Fri, 13 May 2011 13:30:07 +0000 (13:30 +0000)] 
Fix the comparison function in the list control sample to do what it says.

The comment in the function implied that it exchanged the items but in fact it
did not and kept their existing order instead.

Do revert them now, at least like this something visibly happens in the sample
when the items are sorted.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoMake wxListCtrl sort function take wxIntPtr, not long, arguments.
Vadim Zeitlin [Fri, 13 May 2011 13:30:03 +0000 (13:30 +0000)] 
Make wxListCtrl sort function take wxIntPtr, not long, arguments.

As the arguments to the sort function contain the client data associated with
the items, they may be pointers and hence of greater size than long in Win64
builds. Use wxIntPtr instead of long everywhere to fix this.

Notice that this doesn't break compatibility for 32 bit code where long can
still be used as it is the same as wxIntPtr there after the previous commit.

Closes #4309.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDefine wx[U]IntPtr as long, not [s]size_t, in 32 bit builds.
Vadim Zeitlin [Fri, 13 May 2011 13:29:59 +0000 (13:29 +0000)] 
Define wx[U]IntPtr as long, not [s]size_t, in 32 bit builds.

Defining wxIntPtr as ssize_t or long in 32 bit builds doesn't really change
anything but using long means that we can replace longs in the existing API
with wxIntPtr without breaking compatibility, like in wxListCtrl::SortItems().
It is also more compatible with 64 bit builds where wxIntPtr is long already.
So it has some minor advantages and no apparent drawbacks.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRemove duplicated portability warning from wxShowEvent description.
Vadim Zeitlin [Fri, 13 May 2011 13:29:55 +0000 (13:29 +0000)] 
Remove duplicated portability warning from wxShowEvent description.

The warning about this event not being generated by all ports was already
present, remove the second copy.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed wxUSE_STD_DEFAULT==0 compilation.
Dimitri Schoolwerth [Fri, 13 May 2011 11:24:28 +0000 (11:24 +0000)] 
Fixed wxUSE_STD_DEFAULT==0 compilation.

ScintillaWX.cpp didn't compile because std::string is unknown. Include <string> in case the defines that (by default) are set to wxUSE_STD_DEFAULT are 0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agowxRTC doc updates
Julian Smart [Wed, 11 May 2011 16:45:34 +0000 (16:45 +0000)] 
wxRTC doc updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUse more appropriate border style
Julian Smart [Wed, 11 May 2011 16:44:19 +0000 (16:44 +0000)] 
Use more appropriate border style

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't document wxFileSystemWatcher::AddTree() as pure virtual.
Vadim Zeitlin [Wed, 11 May 2011 15:52:04 +0000 (15:52 +0000)] 
Don't document wxFileSystemWatcher::AddTree() as pure virtual.

It isn't.

See #12847.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoseparating observers for default mode (outer 'normal' loop) and common mode loops...
Stefan Csomor [Wed, 11 May 2011 06:46:07 +0000 (06:46 +0000)] 
separating observers for default mode (outer 'normal' loop) and common mode loops, fixes #13208

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoClarify that wxFileName::GetPath() appends separator for toplevel dirs.
Václav Slavík [Tue, 10 May 2011 09:58:52 +0000 (09:58 +0000)] 
Clarify that wxFileName::GetPath() appends separator for toplevel dirs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAttempt to work around Mac g++ 4.0 bug in fswatcher unit test.
Vadim Zeitlin [Tue, 10 May 2011 08:54:20 +0000 (08:54 +0000)] 
Attempt to work around Mac g++ 4.0 bug in fswatcher unit test.

Don't define the class overriding a virtual base class method inside the test
function as g++ 4.0 under OS X 10.5 fails to compile this for some mysterious
reason.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix inserting radio menu items in wxGTK too.
Vadim Zeitlin [Tue, 10 May 2011 08:50:47 +0000 (08:50 +0000)] 
Fix inserting radio menu items in wxGTK too.

After fixing the insertion of radio menu items in wxMSW, also do it for wxGTK
to make the newly added unit test pass there as well.

Remove the unneeded wxMenu::m_prevRadio which doesn't make any sense neither
(just as the "current radio group" pointer removed from wxMSW code before) and
simply use the radio group of the existing item this radio item is being
inserted before or after instead.

See #13200.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRewrote wxMSW radio menu items code to support not only appending them.
Vadim Zeitlin [Tue, 10 May 2011 08:50:38 +0000 (08:50 +0000)] 
Rewrote wxMSW radio menu items code to support not only appending them.

Previously the radio menu items could only be appended to a menu in wxMSW,
inserting them (either in an existing radio group or to start a new one) not
only didn't work but could even result in crashes because invalid iterators in
the menu items list could be used.

Fix this by storing the ranges of all radio groups in wxMenu itself instead of
storing the information about the radio group an item belongs to in the item
itself and by updating this data whenever a new radio item is inserted. Also
get rid of the notion of "current radio group" in wxMenu which doesn't really
make any sense.

Finally add a unit test checking that inserting radio items works as expected.

Closes #13200.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed a bug: Disabling a property didn't work properly if a child item was selected.
Jaakko Salli [Mon, 9 May 2011 19:44:40 +0000 (19:44 +0000)] 
Fixed a bug: Disabling a property didn't work properly if a child item was selected.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdded further wxRTC files to files.bkl
Julian Smart [Mon, 9 May 2011 10:08:27 +0000 (10:08 +0000)] 
Added further wxRTC files to files.bkl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDocument wxBitmapToggleButton XRC parameters.
Vadim Zeitlin [Mon, 9 May 2011 09:21:25 +0000 (09:21 +0000)] 
Document wxBitmapToggleButton XRC parameters.

Describe the properties specific to this class in the XRC format
documentation.

Closes #13204.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd wx/richtext/richtextuicustomization.h to the headers list.
Vadim Zeitlin [Mon, 9 May 2011 09:21:20 +0000 (09:21 +0000)] 
Add wx/richtext/richtextuicustomization.h to the headers list.

This header wasn't installed before, add it to RICHTEXT_HDR files list in
files.bkl to fix this.

Closes #13203.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo changes, just sort richtext files in files.bkl.
Vadim Zeitlin [Mon, 9 May 2011 09:21:14 +0000 (09:21 +0000)] 
No changes, just sort richtext files in files.bkl.

Sort RICHTEXT_{SRC,HDR} contents in alphabetical order, just as it's done for
all the other files list and to make it easier to check if a file already
occurs in these lists or not.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoMore work on improving wxRTC documentation, copied buffer and control headers to...
Julian Smart [Sun, 8 May 2011 18:29:51 +0000 (18:29 +0000)] 
More work on improving wxRTC documentation, copied buffer and control headers to interface folder.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed failing to load ANI, BMP, and ICO images from non-seekable streams.
Dimitri Schoolwerth [Thu, 5 May 2011 23:52:07 +0000 (23:52 +0000)] 
Fixed failing to load ANI, BMP, and ICO images from non-seekable streams.

Guarded recently added SeekI() calls by calling is IsSeekable() first.

Regression since r67671.

Closes #12861 (again).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoWhen we're using GDI+, the DC might have transforms applied to it, but the renderer...
Robin Dunn [Thu, 5 May 2011 17:56:18 +0000 (17:56 +0000)] 
When we're using GDI+, the DC might have transforms applied to it, but the renderer APIs don't respect them. So we need to apply the transforms to the rect ourselves.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdda virtual dtor to silence warnings
Robin Dunn [Wed, 4 May 2011 00:41:16 +0000 (00:41 +0000)] 
Adda  virtual dtor to silence warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoWipe the old framework (if any) when building a new one. Fix symlinks. Add a plist.
Robin Dunn [Wed, 4 May 2011 00:40:36 +0000 (00:40 +0000)] 
Wipe the old framework (if any) when building a new one.  Fix symlinks.  Add a plist.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix compilation of wxFileSystemWatcher unit test in non-PCH build.
Vadim Zeitlin [Wed, 4 May 2011 00:01:58 +0000 (00:01 +0000)] 
Fix compilation of wxFileSystemWatcher unit test in non-PCH build.

Add #include of wx/timer.h needed when not using PCH.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix wxFileSystemWatcher usage instructions.
Vadim Zeitlin [Tue, 3 May 2011 23:31:43 +0000 (23:31 +0000)] 
Fix wxFileSystemWatcher usage instructions.

Don't mention the virtual OnXXX() functions which were removed from the final
API.

Also mention AddTree() limitations on non-MSW platforms.

See #12847.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoImplement watching directory correctly in MSW wxFileSystemWatcher.
Vadim Zeitlin [Tue, 3 May 2011 23:31:39 +0000 (23:31 +0000)] 
Implement watching directory correctly in MSW wxFileSystemWatcher.

The directories used to be always monitored recursively, even when this wasn't
requested, in wxMSW implementation. Change this but also implement efficient
support for monitoring the entire hierarchies using the native support for
this.

Also update the sample to allow monitoring directories recursively as well.

See #12847.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't watch directories recursively in wxMSW wxFileSystemWatcher.
Vadim Zeitlin [Tue, 3 May 2011 23:31:35 +0000 (23:31 +0000)] 
Don't watch directories recursively in wxMSW wxFileSystemWatcher.

MSW implementation of this class always watched the added entries recursively,
i.e. always behaved as if the entry to watch was added using AddTree().

Fix this simply by not asking ::ReadDirectoryChangesW() to watch the entire
subtree.

See #12847.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix wxFileSystemWatcher::Remove() in wxMSW.
Vadim Zeitlin [Tue, 3 May 2011 23:31:29 +0000 (23:31 +0000)] 
Fix wxFileSystemWatcher::Remove() in wxMSW.

Removing the path watched by wxFileSystemWatcher didn't do anything in wxMSW
implementation so we still continued getting events for the changes to this
path even after calling Remove().

Fix this by really implementing Remove() properly. Also add a unit test
checking that we don't get any events after calling Remove().

See #12847.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo changes, just slightly simplify wxFileSystemWatcher unit test.
Vadim Zeitlin [Tue, 3 May 2011 23:31:24 +0000 (23:31 +0000)] 
No changes, just slightly simplify wxFileSystemWatcher unit test.

CheckResult() method of the test event handler doesn't need to return
anything, it uses CPPUNIT_ASSERTs and related macros inside it to check that
everything is expected.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix assert when creating wxBitmapButton without a valid bitmap in wxMSW.
Vadim Zeitlin [Tue, 3 May 2011 23:31:15 +0000 (23:31 +0000)] 
Fix assert when creating wxBitmapButton without a valid bitmap in wxMSW.

wxBitmapButton can be created without a valid bitmap if SetBitmapLabel() is
called later, so don't call SetBitmapLabel() from the constructor if no bitmap
was provided.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoproject files for xcode
Stefan Csomor [Tue, 3 May 2011 19:05:24 +0000 (19:05 +0000)] 
project files for xcode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoremoving old xcode files
Stefan Csomor [Tue, 3 May 2011 18:28:49 +0000 (18:28 +0000)] 
removing old xcode files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoremoving old codewarrior files
Stefan Csomor [Tue, 3 May 2011 18:24:15 +0000 (18:24 +0000)] 
removing old codewarrior files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoremoving old codewarrior files
Stefan Csomor [Tue, 3 May 2011 18:22:31 +0000 (18:22 +0000)] 
removing old codewarrior files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoremoving old xcode files
Stefan Csomor [Tue, 3 May 2011 18:21:25 +0000 (18:21 +0000)] 
removing old xcode files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoremoving old xcode files
Stefan Csomor [Tue, 3 May 2011 18:21:15 +0000 (18:21 +0000)] 
removing old xcode files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoReplaced Ok() occurrences with IsOk() throughout trunk.
Dimitri Schoolwerth [Tue, 3 May 2011 16:29:04 +0000 (16:29 +0000)] 
Replaced Ok() occurrences with IsOk() throughout trunk.

Additionally renamed wxOSX' private wxNativePrinterDC::Ok() function to IsOk().

Didn't deprecate the various Ok() functions: given the amount of changes already introduced in 3.0 a trivial one like this seems more suitable for after 3.0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRestored wxNotebook::HitTest for wxOSX-Carbon.
Dimitri Schoolwerth [Tue, 3 May 2011 12:47:10 +0000 (12:47 +0000)] 
Restored wxNotebook::HitTest for wxOSX-Carbon.

Since the copying of src/osx/carbon/notebmac.cpp to src/osx/notebook_osx.cpp in r55202 the code in wxNotebook::HitTest has been disabled. Enabled it again for at least the Carbon build.

See #13045.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't crash on startup of console programs in monolithic wxX11 build.
Vadim Zeitlin [Tue, 3 May 2011 10:40:31 +0000 (10:40 +0000)] 
Don't crash on startup of console programs in monolithic wxX11 build.

When using monolithic build, GUI-specific wxWinModule is still linked in but
its initialization crashes because there is no global display. Simply don't do
anything in this module OnInit() in this case to avoid the problem (which
affected e.g. wxrc in this build configuration).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCorrect wxDirExists() check in OS X wxFileSystemWatcher implementation.
Vadim Zeitlin [Tue, 3 May 2011 10:40:28 +0000 (10:40 +0000)] 
Correct wxDirExists() check in OS X wxFileSystemWatcher implementation.

Pass the full path to wxDirExists, not the relative path from the watched
directory as this won't work unless the watched directory is the same as the
current one.

Closes #13161.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775