wxWidgets.git
14 years agoavoiding double define warnings on osx
Stefan Csomor [Thu, 24 Sep 2009 09:54:57 +0000 (09:54 +0000)] 
avoiding double define warnings on osx

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

14 years agoApplied patch #11078 - DEVMODE creation in wxWindowsPrintNativeData::TransferFrom...
Julian Smart [Thu, 24 Sep 2009 09:54:25 +0000 (09:54 +0000)] 
Applied patch #11078 - DEVMODE creation in wxWindowsPrintNativeData::TransferFrom plus SetQuality to dpi
by Martin Perktold

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

14 years agosupport PerformClick for NSControls, closes #11129
Stefan Csomor [Thu, 24 Sep 2009 09:52:04 +0000 (09:52 +0000)] 
support PerformClick for NSControls, closes #11129

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

14 years agono focus on Show for toolwindows, closes #10872
Stefan Csomor [Thu, 24 Sep 2009 09:46:00 +0000 (09:46 +0000)] 
no focus on Show for toolwindows, closes #10872

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

14 years agodocumenting events that are not available on OSX, closes #10776
Stefan Csomor [Thu, 24 Sep 2009 09:41:39 +0000 (09:41 +0000)] 
documenting events that are not available on OSX, closes #10776

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

14 years agoremoving unneeded method, closes #11073
Stefan Csomor [Thu, 24 Sep 2009 09:39:38 +0000 (09:39 +0000)] 
removing unneeded method, closes #11073

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

14 years agoremoving unneeded method, closes #11073
Stefan Csomor [Thu, 24 Sep 2009 09:15:41 +0000 (09:15 +0000)] 
removing unneeded method, closes #11073

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

14 years agoApplied #10025 (Patch to allow proper sizing of simple combo box)
Julian Smart [Thu, 24 Sep 2009 09:07:13 +0000 (09:07 +0000)] 
Applied #10025 (Patch to allow proper sizing of simple combo box)

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

14 years agoAlternate fix for #9954 (simple combobox assert) except on WinCE which probably shoul...
Julian Smart [Thu, 24 Sep 2009 08:36:25 +0000 (08:36 +0000)] 
Alternate fix for #9954 (simple combobox assert) except on WinCE which probably shouldn't be using a simple combobox anyway

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

14 years agosupporting disabled items, closes #11130
Stefan Csomor [Thu, 24 Sep 2009 08:16:15 +0000 (08:16 +0000)] 
supporting disabled items, closes #11130

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

14 years agofixing styles, closes #11128
Stefan Csomor [Thu, 24 Sep 2009 08:05:17 +0000 (08:05 +0000)] 
fixing styles, closes #11128

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

14 years agoApplied #10659 (year change in copyright)
Julian Smart [Thu, 24 Sep 2009 07:42:31 +0000 (07:42 +0000)] 
Applied #10659 (year change in copyright)

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

14 years agoApplied #10639 (Not all previewed fonts are displayed with the correct nameface)
Julian Smart [Thu, 24 Sep 2009 07:35:48 +0000 (07:35 +0000)] 
Applied #10639 (Not all previewed fonts are displayed with the correct nameface)

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

14 years agoFixed compile problem
Julian Smart [Thu, 24 Sep 2009 06:48:27 +0000 (06:48 +0000)] 
Fixed compile problem

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

14 years agoHandle deprecated background styles correctly in wxMSW.
Vadim Zeitlin [Thu, 24 Sep 2009 00:22:04 +0000 (00:22 +0000)] 
Handle deprecated background styles correctly in wxMSW.

Handle wxBG_STYLE_TRANSPARENT as wxBG_STYLE_PAINT and wxBG_STYLE_COLOUR as
wxBG_STYLE_ERASE instead of asserting (and almost surely crashing next, as
this assert is in the code called when the window is repainted and so will be
called again when the assert dialog is shown resulting in reentrant assert).

Closes #11208.

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

14 years agoFix wxGrid compilation with MSVC7.
Vadim Zeitlin [Thu, 24 Sep 2009 00:21:57 +0000 (00:21 +0000)] 
Fix wxGrid compilation with MSVC7.

Due to what seems a compiler bug, MSVC tries to instantiate objects of
abstract wxGridXXXHeaderRenderer classes when compiling operators ?: using
references to them. Add explicit static_cast<>s to help it do the right thing.

Fixes compilation with this compiler broken in r62037.

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

14 years agoDisplay correct minimal and maximal pages numbers under OS X.
Vadim Zeitlin [Thu, 24 Sep 2009 00:21:49 +0000 (00:21 +0000)] 
Display correct minimal and maximal pages numbers under OS X.

Set min and max page fields in m_printDialogData before showing the print
dialog in the Mac version.

Closes #8349.

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

14 years agoMinor corrections to sorted arrays documentation.
Vadim Zeitlin [Thu, 24 Sep 2009 00:21:36 +0000 (00:21 +0000)] 
Minor corrections to sorted arrays documentation.

Mention that Remove() uses binary search for sorted arrays so the item removed
by it is not necessarily the first one. Also correct documentation of Index()
for sorted arrays which was incorrectly the same as for the normal kind.

Closes #11233.

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

14 years agoExclude binary files from the checks done by the pre-commit hook.
Vadim Zeitlin [Wed, 23 Sep 2009 20:33:34 +0000 (20:33 +0000)] 
Exclude binary files from the checks done by the pre-commit hook.

We shouldn't check that binary files are UTF-8 so determine whether the file
is binary by looking at its svn:mime-type and only do the check for the text
files.

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

14 years agobuild fixes for wxUSE_VALIDATORS==0
Paul Cornett [Wed, 23 Sep 2009 16:32:32 +0000 (16:32 +0000)] 
build fixes for wxUSE_VALIDATORS==0

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

14 years agoFix bug in the hook which prevented committing makefiles.
Vadim Zeitlin [Wed, 23 Sep 2009 16:00:08 +0000 (16:00 +0000)] 
Fix bug in the hook which prevented committing makefiles.

If both makefiles and any source files were committed, makefiles were
mistakenly added to changed_sources and were flagged as containing TABs.

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

14 years agoSuppress harmless mingw32 warning about unused value.
Vadim Zeitlin [Wed, 23 Sep 2009 14:29:04 +0000 (14:29 +0000)] 
Suppress harmless mingw32 warning about unused value.

Add an explicit cast to void to Header_SetImageList() call to avoid "warning:
value computed is not used".

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

14 years agoExtract default grid header renderers from wxGridCellAttrProvider.
Vadim Zeitlin [Wed, 23 Sep 2009 14:28:55 +0000 (14:28 +0000)] 
Extract default grid header renderers from wxGridCellAttrProvider.

We must be able to use them even when we have no attributes at all
and even when we have no associated table, so use default renderers in wxGrid
implementation of Draw{Row,Column}Label()/DrawBorder() in this case.

Closes #11230.

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

14 years agoRemove DLL export declaration from wxScrolled.
Vadim Zeitlin [Wed, 23 Sep 2009 14:28:42 +0000 (14:28 +0000)] 
Remove DLL export declaration from wxScrolled.

As this class has only inline methods it doesn't need to be exported from the
DLL and actually exporting it results in linking problems when using
wxScrolled<wxWindow> (which, unlike wxScrolled<wxPanel>, is not used in wx
itself and so doesn't seem to be instantiated) in DLL client even with VC > 6.

An alternative solution would be to change WXDLLIMPEXP_TEMPLATE_INSTANCE_CORE
macro to explicitly instantiate the template in the DLL even for VC > 6 but
this wouldn't solve the problem for wxScrolled<CustomClass> while removing the
DLL export declaration should.

Also use wxScrolled<wxWindow> in addition to wxScrolled<wxPanel> in the scroll
sample to test that it links correctly.

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

14 years agoDon't use deprecated integer mask with wxLogTrace().
Vadim Zeitlin [Wed, 23 Sep 2009 14:28:35 +0000 (14:28 +0000)] 
Don't use deprecated integer mask with wxLogTrace().

Use string mask instead of the deprecated wxTraceMessages to fix compilation
with WXWIN_COMPATIBILITY_2_8==0.

Closes #11229.

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

14 years agoAdd ribbon libraries sources to the monolithic build.
Vadim Zeitlin [Wed, 23 Sep 2009 13:16:53 +0000 (13:16 +0000)] 
Add ribbon libraries sources to the monolithic build.

Closes #11231.

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

14 years agoAdded wxRICHTEXT_HANDLER_USE_CSS flag for HTML handler to use CSS
Julian Smart [Wed, 23 Sep 2009 11:05:52 +0000 (11:05 +0000)] 
Added wxRICHTEXT_HANDLER_USE_CSS flag for HTML handler to use CSS
where possible.

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

14 years agoResolved #4842 (accessors for member variables)
Julian Smart [Wed, 23 Sep 2009 08:15:13 +0000 (08:15 +0000)] 
Resolved #4842 (accessors for member variables)

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

14 years agoFixed #10702 (encoding not used in HTML handler)
Julian Smart [Wed, 23 Sep 2009 07:53:22 +0000 (07:53 +0000)] 
Fixed #10702 (encoding not used in HTML handler)

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

14 years agoFix for wrong line placement when centering or right-aligning
Julian Smart [Wed, 23 Sep 2009 07:38:42 +0000 (07:38 +0000)] 
Fix for wrong line placement when centering or right-aligning

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

14 years agoClarified difference between SetInsertionPoint and MoveCaret.
Julian Smart [Tue, 22 Sep 2009 16:46:12 +0000 (16:46 +0000)] 
Clarified difference between SetInsertionPoint and MoveCaret.

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

14 years agoFix for #4696: added SetDefaultStyleToCursorStyle() to SetInsertionPoint() so style...
Julian Smart [Tue, 22 Sep 2009 16:36:58 +0000 (16:36 +0000)] 
Fix for #4696: added SetDefaultStyleToCursorStyle() to SetInsertionPoint() so style is taken from context, not the style at a previous location.

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

14 years agoReturning WVR_REDRAW triggers Windows bug that moves child windows, so don't use it.
Julian Smart [Tue, 22 Sep 2009 15:20:17 +0000 (15:20 +0000)] 
Returning WVR_REDRAW triggers Windows bug that moves child windows, so don't use it.

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

14 years agoMinor clarifation and typo fix
Jaakko Salli [Tue, 22 Sep 2009 14:52:57 +0000 (14:52 +0000)] 
Minor clarifation and typo fix

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

14 years agoInclude compile support for propgrid & ribbon on OpenVMS
Jouk Jansen [Tue, 22 Sep 2009 14:13:55 +0000 (14:13 +0000)] 
Include compile support for propgrid & ribbon on OpenVMS

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

14 years agoFixed #9996 (incorrect XML output in Ansi build for non-ASCII character)
Julian Smart [Tue, 22 Sep 2009 13:06:42 +0000 (13:06 +0000)] 
Fixed #9996 (incorrect XML output in Ansi build for non-ASCII character)

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

14 years agoAdded automatic linking of ribbon libraries when using MSVC.
Peter Cawley [Tue, 22 Sep 2009 12:13:03 +0000 (12:13 +0000)] 
Added automatic linking of ribbon libraries when using MSVC.

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

14 years agoFixed wxBORDER_THEME breakage
Julian Smart [Tue, 22 Sep 2009 10:58:06 +0000 (10:58 +0000)] 
Fixed wxBORDER_THEME breakage

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

14 years agoDon't use deprecated background style
Julian Smart [Tue, 22 Sep 2009 10:03:04 +0000 (10:03 +0000)] 
Don't use deprecated background style

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

14 years agoUpdate OpenVMS makefile
Jouk Jansen [Tue, 22 Sep 2009 06:12:39 +0000 (06:12 +0000)] 
Update OpenVMS makefile

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

14 years agoCall wxApp::ProcessPendingEvents() from wxX11 event loop.
Vadim Zeitlin [Tue, 22 Sep 2009 00:23:16 +0000 (00:23 +0000)] 
Call wxApp::ProcessPendingEvents() from wxX11 event loop.

Now that this function is not called from idle time (because it should be
called before, see r61441), the event loop must call explicitly so do it from
wxGUIEventLoop::Dispatch() in wxX11.

A probably better (but more time-consuming) fix would be to make wxX11 use
wxEventLoopManual as there doesn't seem to be any reason not to.

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

14 years agoOverride DrawLabel() to avoid crossing out disabled labels in mono theme.
Vadim Zeitlin [Tue, 22 Sep 2009 00:23:09 +0000 (00:23 +0000)] 
Override DrawLabel() to avoid crossing out disabled labels in mono theme.

DrawButtonLabel() crosses out the buttons to indicate that they are disabled
(for lack of any other options in mono renderer) but this looks really bad for
the labels, so don't do it.

Closes #11220.

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

14 years agoAdd a separate wxControlRenderer::DrawButtonLabel() too.
Vadim Zeitlin [Tue, 22 Sep 2009 00:23:03 +0000 (00:23 +0000)] 
Add a separate wxControlRenderer::DrawButtonLabel() too.

wxControlRenderer::DrawLabel() was used by both wxStaticText and wxButton but
their labels may need to be drawn differently and wxRenderer does have
different DrawLabel() and DrawButtonLabel() to do it. Now also add a separate
method for the buttons to wxControlRenderer.

See #11220.

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

14 years agoImplement wxGetActiveWindow() for wxX11.
Vadim Zeitlin [Tue, 22 Sep 2009 00:22:57 +0000 (00:22 +0000)] 
Implement wxGetActiveWindow() for wxX11.

Now that wxGetActiveWindow() is used when showing modal dialogs, it became
critical to implement it as otherwise an assert happens every time a dialog is
shown and because creating the assert dialog itself results in another (same)
assert, this immediately results in a crash.

So implement it even if in a very trivial (but hopefully not too incorrect)
way.

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

14 years agoImplement wxWindow::DoGetBorderSize() in wxUniv.
Vadim Zeitlin [Tue, 22 Sep 2009 00:22:52 +0000 (00:22 +0000)] 
Implement wxWindow::DoGetBorderSize() in wxUniv.

As some wxUniv classes implement DoGetBestClientSize(), the new code in
wxWindow::DoGetBestSize() implementation calls DoGetBorderSize() which asserts
because it's not implemented, making it impossible to even start the minimal
sample -- fix this.

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

14 years agoDefine wxSetDetectableAutoRepeat() for X11-based ports only.
Vadim Zeitlin [Tue, 22 Sep 2009 00:22:44 +0000 (00:22 +0000)] 
Define wxSetDetectableAutoRepeat() for X11-based ports only.

This function is not needed in wxGTK2 as GTK+ sets detectable auto-repeat on
its own in gdk_display_open() anyhow, so move its implementation to
src/x11/utilsx.cpp where it can be used by wxX11 and wxMotif which do need it.

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

14 years agoMove wxSetDetectableAutoRepeat() to a section compiled in wxCore.
Vadim Zeitlin [Tue, 22 Sep 2009 00:22:38 +0000 (00:22 +0000)] 
Move wxSetDetectableAutoRepeat() to a section compiled in wxCore.

This function was mistakenly defined in a section of utilscmn.cpp compiled as
part of wxBase, so it wasn't correctly exported from the core library and
linking any wxX11 applications failed when using compiler with visibility
support.

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

14 years agoRecognize old wx{CHB,LB}_XXX styles in XRC.
Vadim Zeitlin [Mon, 21 Sep 2009 20:10:54 +0000 (20:10 +0000)] 
Recognize old wx{CHB,LB}_XXX styles in XRC.

Situation with wxBK_XXX vs wxXXB_XXX remains confusing, the comments in the
code suggest that the former is preferred but the latter are documented for
wxListbook and wxChoicebook (although they don't even exist for wxTreebook).
So it seems unwise to not recognize the wxXXB_XXX versions in XRC as people
could easily decide to use them instead of wxBK_XXX values -- and this is also
consisten with wxNotebookXmlHandler which does recognize both wxBK_XXX and
wxNB_XXX already.

Change wxListbookXmlHandler and wxChoicebookXmlHandler to also always
recognize these styles.

Closes #10725.

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

14 years agoRestore socket initialization times counter.
Vadim Zeitlin [Mon, 21 Sep 2009 14:45:52 +0000 (14:45 +0000)] 
Restore socket initialization times counter.

The change of the counter to a simple boolean in r61985 broke the code which
called both Initialize() and Shutdown() multiple (but the same number of)
times. As this is the documented correct behaviour, restore the counter to
cater for it even if we don't really need it any longer.

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

14 years agoDon't call wxSocketBase::IsInitialized() from worker threads.
Vadim Zeitlin [Mon, 21 Sep 2009 14:45:45 +0000 (14:45 +0000)] 
Don't call wxSocketBase::IsInitialized() from worker threads.

This function should be used in the main thread only and calling it from
wxSockAddress unconditionally resulted in asserts in the unit test.

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

14 years agoAbort on asserts in worker threads.
Vadim Zeitlin [Mon, 21 Sep 2009 14:45:37 +0000 (14:45 +0000)] 
Abort on asserts in worker threads.

Throwing an exception from worker threads is useless as it is not caught by
our wxUnitTestProtector which only protects the main thread, so abort
immediately to be sure to provide at least some information about the problem
as otherwise nothing may be output at all and the program can end up
deadlocked.

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

14 years agoon iPhone default is to cover entire screen
Stefan Csomor [Mon, 21 Sep 2009 13:11:26 +0000 (13:11 +0000)] 
on iPhone default is to cover entire screen

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

14 years agofixing cast warnings on OSX 10.6
Stefan Csomor [Mon, 21 Sep 2009 13:10:01 +0000 (13:10 +0000)] 
fixing cast warnings on OSX 10.6

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

14 years agofixing include type
Stefan Csomor [Mon, 21 Sep 2009 13:08:52 +0000 (13:08 +0000)] 
fixing include type

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

14 years agoAccount for the margins used by Windows around status bar text.
Vadim Zeitlin [Mon, 21 Sep 2009 13:00:36 +0000 (13:00 +0000)] 
Account for the margins used by Windows around status bar text.

Because Windows uses margins around the text drawn in the status bar, naively
setting a field width to the size of the text didn't work (see previous
commit for an example). As this seems a natural enough thing to do, account
for this margin inside wxStatusBar itself to avoid the user code the trouble
of having to call some special function to do it. Notice that this does mean
that fields not containing text may be slightly larger than needed, but we
consider that this (rarer) case is less important.

Also account correctly for the status bar grip size. And while we still hard
code its size, do it in a clearly named function instead of using completely
mysterious constants here and there.

Closes #10696.

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

14 years agoAdd a test of precisely sized status bar fields.
Vadim Zeitlin [Mon, 21 Sep 2009 13:00:23 +0000 (13:00 +0000)] 
Add a test of precisely sized status bar fields.

Modify the status bar sample to use two fields of just the right size for
their contents to confirm that this doesn't work correctly under at least MSW
currently (see #10696).

Notice that we need two fields because the behaviour/problem is different for
the last field and all the other ones.

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

14 years agoSimplify the status bar sample by removing wxBitmapButton.
Vadim Zeitlin [Mon, 21 Sep 2009 13:00:16 +0000 (13:00 +0000)] 
Simplify the status bar sample by removing wxBitmapButton.

The sample code was complicated by having USE_STATIC_BITMAP and using
wxStaticBitmap or wxBitmapButton depending on it. Neither important for
a wxStatusBar sample so just use wxStaticBitmap always and make the code
simpler and more readable.

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

14 years agoShow status bar panes rectangles in the sample.
Vadim Zeitlin [Mon, 21 Sep 2009 13:00:07 +0000 (13:00 +0000)] 
Show status bar panes rectangles in the sample.

Display the rectangles returned by wxStatusBar::GetFieldRect() to be able to
visually check if they are correct.

See #10696.

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

14 years agoClean up status bar sample.
Vadim Zeitlin [Mon, 21 Sep 2009 12:59:56 +0000 (12:59 +0000)] 
Clean up status bar sample.

No real changes, just:
 - Fix code which couldn't compile in USE_MDI_PARENT_FRAME case
 - Use wxMenu::AppendCheckItem() instead of Append(..., true)
 - Remove unnecessary #ifdef __WXMAC__
 - Wrap excessively long lines

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

14 years agomoving themeing include to private.h
Stefan Csomor [Mon, 21 Sep 2009 12:57:12 +0000 (12:57 +0000)] 
moving themeing include to private.h

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

14 years agoInitialize wxMDIParentFrame::m_accelWindowMenu in default ctor.
Vadim Zeitlin [Mon, 21 Sep 2009 08:44:42 +0000 (08:44 +0000)] 
Initialize wxMDIParentFrame::m_accelWindowMenu in default ctor.

If wxMDIParentFrame object was created without its Create() ever being called,
it crashed in its dtor trying to delete an uninitialized pointer, so do
initialize it to NULL in all ctors (via a helper Init() method, as usual).

Closes #11216.

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

14 years agowxSocket::Initialize() and Shutdown() are for main thread only.
Vadim Zeitlin [Mon, 21 Sep 2009 08:44:35 +0000 (08:44 +0000)] 
wxSocket::Initialize() and Shutdown() are for main thread only.

Calling Initialize() from another thread could never work before but it wasn't
clear that this was the case so document it in the functions comments and
documentation now and add asserts checking that they are called from the main
thread only.

Also simplify the code as we don't actually need to do any reference-counting
here and a simple boolean flag indicating whether the sockets are initialized
is enough.

Closes #11119.

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

14 years agoFix harmless unused variable warning.
Vadim Zeitlin [Mon, 21 Sep 2009 08:44:25 +0000 (08:44 +0000)] 
Fix harmless unused variable warning.

The value of wxColour::Alpha() was assigned to a temporary variable which
wasn't used afterwards and Mac OS g++ warned about it.

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

14 years agoFix OpenVMS makefiles for inline function changes
Jouk Jansen [Mon, 21 Sep 2009 06:08:50 +0000 (06:08 +0000)] 
Fix OpenVMS makefiles for inline function changes

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

14 years agoPut wxAny implementation entirely in the header.
Vadim Zeitlin [Sun, 20 Sep 2009 12:37:16 +0000 (12:37 +0000)] 
Put wxAny implementation entirely in the header.

This allows to remove WXDLLIMPEXP_BASE from the class declaration and should
hopefully fix VC6 linking errors when building the unit test.

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

14 years agoAdd missing header to fix wxAny test compilation under OS X.
Vadim Zeitlin [Sun, 20 Sep 2009 12:37:11 +0000 (12:37 +0000)] 
Add missing header to fix wxAny test compilation under OS X.

And probably other Unix systems not using PCH.

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

14 years agoAvoid duplicate character event for VK_DECIMAL on numeric keypad
Julian Smart [Sun, 20 Sep 2009 10:57:32 +0000 (10:57 +0000)] 
Avoid duplicate character event for VK_DECIMAL on numeric keypad

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

14 years agoOptionally return length from wxLoadUserResource().
Vadim Zeitlin [Sat, 19 Sep 2009 16:29:57 +0000 (16:29 +0000)] 
Optionally return length from wxLoadUserResource().

Add optional length output parameter and also change the return type to "char
*" from "wxChar *" to which it apparently was blindly changed just to make
this code compile even though this function never returned any strings.

Closes #11214.

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

14 years agoAdd wxColour::{Set,Get}RGB[A]().
Vadim Zeitlin [Sat, 19 Sep 2009 16:29:50 +0000 (16:29 +0000)] 
Add wxColour::{Set,Get}RGB[A]().

These methods allow to operate with all 3 or 4 colour channels at once.

Add their implementation, documentation and a unit test for wxColour
exercising them.

Closes #9918.

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

14 years agoAdd curly braces around wxFAIL_MSG() to avoid g++ 4.3 warning.
Vadim Zeitlin [Sat, 19 Sep 2009 16:29:42 +0000 (16:29 +0000)] 
Add curly braces around wxFAIL_MSG() to avoid g++ 4.3 warning.

g++ 4.3 warns about lack of explicit braces to make it happy.

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

14 years agoSet svn properties correctly for the newly added files.
Vadim Zeitlin [Sat, 19 Sep 2009 15:41:08 +0000 (15:41 +0000)] 
Set svn properties correctly for the newly added files.

Set svn:keyword and, most importantly, svn:eol-style, to avoid having files
with DOS line endings in svn, for the new files added by r61971.

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

14 years agoFixed wxAny tests for VC6
Jaakko Salli [Sat, 19 Sep 2009 10:13:31 +0000 (10:13 +0000)] 
Fixed wxAny tests for VC6

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

14 years agowxAny initial commit (closes #10932)
Jaakko Salli [Sat, 19 Sep 2009 08:51:11 +0000 (08:51 +0000)] 
wxAny initial commit (closes #10932)

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

14 years agoAdd wxUSE_RIBBON to wx/setup_inc.h and wx/chkconf.h.
Vadim Zeitlin [Fri, 18 Sep 2009 22:16:59 +0000 (22:16 +0000)] 
Add wxUSE_RIBBON to wx/setup_inc.h and wx/chkconf.h.

wxUSE_RIBBON was apparently added to the different wx/*/setup.h files manually
instead of being added to wx/setup_inc.h and regenerating the rest, correct it.

Also check that it is defined in wx/chkconf.h.

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

14 years agoDon't query system option in every DrawBitmap() call under MSW.
Vadim Zeitlin [Fri, 18 Sep 2009 17:11:21 +0000 (17:11 +0000)] 
Don't query system option in every DrawBitmap() call under MSW.

Doing this had noticeable (and bad) performance implications so cache the
value of the option during the first call. This doesn't allow changing its
value during the program execution so we may want to provide some way to
update its value later if really needed.

Closes #11172.

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

14 years agoChange return type of wxList::Member() to bool.
Vadim Zeitlin [Fri, 18 Sep 2009 17:10:58 +0000 (17:10 +0000)] 
Change return type of wxList::Member() to bool.

It used to return a pointer in wxUSE_STL==0 build and an object in
wxUSE_STL==1 one making checking its return value difficult without provoking
warnings from either MSVC or g++ (see #11038).

Also, all the other occurrences of Member() already returned bool, including
the one in wxStringList so changing it to return bool in wxList itself is more
consistent.

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

14 years agoConvert change log to UTF-8 encoding.
Vadim Zeitlin [Fri, 18 Sep 2009 17:10:49 +0000 (17:10 +0000)] 
Convert change log to UTF-8 encoding.

See #11116.

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

14 years agoCheck that files being checked in use UTF-8.
Vadim Zeitlin [Fri, 18 Sep 2009 16:28:10 +0000 (16:28 +0000)] 
Check that files being checked in use UTF-8.

Closes #11116.

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

14 years agoAdd the initial version of svn pre-commit hook.
Vadim Zeitlin [Fri, 18 Sep 2009 16:28:04 +0000 (16:28 +0000)] 
Add the initial version of svn pre-commit hook.

This version checks for absence of hard TABs in our source files.

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

14 years agoFix recurring typo in "theming".
Vadim Zeitlin [Fri, 18 Sep 2009 16:16:30 +0000 (16:16 +0000)] 
Fix recurring typo in "theming".

It was (consistently) misspelt as "themeing" in several places.

Closes #11206.

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

14 years agoUse UTF-8 for all non-ASCII characters in the sources.
Vadim Zeitlin [Fri, 18 Sep 2009 16:16:12 +0000 (16:16 +0000)] 
Use UTF-8 for all non-ASCII characters in the sources.

Avoid mixing Latin-1, UTF-8 and Mac Roman (?) encodings in different source
files, use UTF-8 everywhere.

See #11116.

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

14 years agoDefine NDEBUG when building 3rd party libraries.
Vadim Zeitlin [Fri, 18 Sep 2009 16:15:54 +0000 (16:15 +0000)] 
Define NDEBUG when building 3rd party libraries.

We are not interested in asserts in 3rd party libraries so make them disappear
by defining NDEBUG when building them.

Closes #11155.

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

14 years agoUse wxASSERT() instead of assert() in wx code.
Vadim Zeitlin [Fri, 18 Sep 2009 14:04:22 +0000 (14:04 +0000)] 
Use wxASSERT() instead of assert() in wx code.

This is more consistent and ensures that all asserts in wxWidgets are
controlled by a single wxDEBUG_LEVEL setting instead of also relying on NDEBUG
as standard assert() macro does.

See #11155.

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

14 years agoCorrect wxStreamBuffer::Seek() return value.
Vadim Zeitlin [Fri, 18 Sep 2009 14:03:55 +0000 (14:03 +0000)] 
Correct wxStreamBuffer::Seek() return value.

It returned the offset instead of the new position when seeking forward from
current position in a "flushable" buffer.

Closes #11205.

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

14 years agoAnother compilation fix for wxRibbon under OS X.
Vadim Zeitlin [Fri, 18 Sep 2009 14:03:28 +0000 (14:03 +0000)] 
Another compilation fix for wxRibbon under OS X.

Include Carbon/Carbon.h to get kThemeBrushToolbarBackground declaration.

Closes #11203.

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

14 years agoFixes for Mac (use wxClientDC not wxMemoryDC for temporary DC)
Julian Smart [Fri, 18 Sep 2009 09:01:43 +0000 (09:01 +0000)] 
Fixes for Mac (use wxClientDC not wxMemoryDC for temporary DC)

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

14 years agoadd wxUSE_RIBOON to setup for OpenVMS
Jouk Jansen [Fri, 18 Sep 2009 06:24:59 +0000 (06:24 +0000)] 
add wxUSE_RIBOON to setup for OpenVMS

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

14 years agoCompilation fix for ANSI build after r61898.
Vadim Zeitlin [Thu, 17 Sep 2009 13:02:12 +0000 (13:02 +0000)] 
Compilation fix for ANSI build after r61898.

wxWX2MBbuf is just char* if wxUSE_UNICODE==0 and so doesn't have a length()
method, use wxString::length() in wxFile::Write() instead.

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

14 years agoAdded missing includes
Julian Smart [Thu, 17 Sep 2009 08:18:52 +0000 (08:18 +0000)] 
Added missing includes

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

14 years agoInclusion of inline function has been changed
Jouk Jansen [Thu, 17 Sep 2009 06:53:11 +0000 (06:53 +0000)] 
Inclusion of inline function has been changed

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

14 years agoMore ribbon compilation fixes for OS X.
Vadim Zeitlin [Thu, 17 Sep 2009 00:17:57 +0000 (00:17 +0000)] 
More ribbon compilation fixes for OS X.

Add more headers for wxColour and wxFont.

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

14 years agoRibbon compilation fixes for OS X.
Vadim Zeitlin [Wed, 16 Sep 2009 23:19:01 +0000 (23:19 +0000)] 
Ribbon compilation fixes for OS X.

Forward declare wxWindow and wxDC classes in wx/ribbon/art.h to avoid errors
in (PCH-less?) buildbot builds.

Also include header containing declarations of private Mac functions in
implementation file (closes #11203).

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

14 years agoAdd ribbon sample to the list of samples to build.
Vadim Zeitlin [Wed, 16 Sep 2009 23:18:55 +0000 (23:18 +0000)] 
Add ribbon sample to the list of samples to build.

Add the file to samples/samples.bkl and regenerate the makefiles and also add
it manually to samples.dsw.

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

14 years agoProvide implementation for wxArrayString::resize().
Vadim Zeitlin [Wed, 16 Sep 2009 23:18:48 +0000 (23:18 +0000)] 
Provide implementation for wxArrayString::resize().

This method was declared but not implemented in wxUSE_STL==0 build.

Also add unit test for this function.

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

14 years agoRebaked everything with bakefile 0.2.6 after wxRibbon merge.
Vadim Zeitlin [Wed, 16 Sep 2009 13:07:10 +0000 (13:07 +0000)] 
Rebaked everything with bakefile 0.2.6 after wxRibbon merge.

0.2.5 versions of some makefiles were checked in, regenerate them using 0.2.6.

Also regenerate configure after autoconf_inc.m4 was updated.

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

14 years agoAllow creating wxSingleInstanceChecker with default name.
Vadim Zeitlin [Wed, 16 Sep 2009 12:38:00 +0000 (12:38 +0000)] 
Allow creating wxSingleInstanceChecker with default name.

This makes it easier to use in common cases: there is no need to come up with
a unique name for the checker any more as sufficiently unique combination of
wxApp::GetAppName() and wxGetUserId() is used if no name was explicitly given.

This is done by calling the new CreateDefault() on demand from
IsAnotherRunning() instead of simply creating the checker with the default
name in the default ctor for compatibility (you had to call Create() after
using the default ctor before and it can only be called once) and because
wxTheApp might not exist yet when wxSingleInstanceChecker is created.

Closes #11166.

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

14 years agoMerged GSOC Ribbon work from SOC2009_RIBBON branch into trunk.
Peter Cawley [Wed, 16 Sep 2009 12:06:02 +0000 (12:06 +0000)] 
Merged GSOC Ribbon work from SOC2009_RIBBON branch into trunk.

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

14 years agoChange wxBoxSizer::AddSpacer() to only add space in sizer direction.
Vadim Zeitlin [Tue, 15 Sep 2009 17:05:32 +0000 (17:05 +0000)] 
Change wxBoxSizer::AddSpacer() to only add space in sizer direction.

It used to add a spacer with the given size in both directions but this was
counter-intuitive and wasn't expected even by the original author of this code
so change it to behave more reasonably.

Closes #11197.

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

14 years agoCorrect wxPendingDelete declaration.
Vadim Zeitlin [Tue, 15 Sep 2009 17:05:24 +0000 (17:05 +0000)] 
Correct wxPendingDelete declaration.

This variable was moved to wxBase from wxCore recently and hence must be
declared using WXDLLIMPEXP_DATA_BASE and not WXDLLIMPEXP_DATA_CORE now.

Closes #11202.

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

14 years agoReally fix VC6 compilation after r61919.
Vadim Zeitlin [Tue, 15 Sep 2009 17:05:13 +0000 (17:05 +0000)] 
Really fix VC6 compilation after r61919.

The change in r61922 which was supposed to do it somehow forgot the fix itself
and added only a comment explaining why it was needed. Really do name the
struct now.

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