]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoGuard against a possible crash in wxListCtrl::DeleteColumn().
Vadim Zeitlin [Wed, 21 Dec 2011 13:56:47 +0000 (13:56 +0000)] 
Guard against a possible crash in wxListCtrl::DeleteColumn().

We could crash when deleting a column after switching to report view from icon
view. As deleting a column works just fine under MSW in this case, make it
work in the generic version as well.

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

12 years agoDocument wxListCtrl::InReportView() and IsVirtual().
Vadim Zeitlin [Wed, 21 Dec 2011 13:07:18 +0000 (13:07 +0000)] 
Document wxListCtrl::InReportView() and IsVirtual().

These functions are more convenient than directly testing for styles and are
already used outside wxWidgets do make them officially part of the public API.

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

12 years agoIgnore extra modify events after rename in wxFileSystemWatcher.
Vadim Zeitlin [Wed, 21 Dec 2011 00:26:06 +0000 (00:26 +0000)] 
Ignore extra modify events after rename in wxFileSystemWatcher.

Document that such extra events may occur and generally improve the event
types documentation.

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

12 years agoProvide native implementation of wx{Date,Time}PickerCtrl for wxOSX/Cocoa.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:14 +0000 (21:27 +0000)] 
Provide native implementation of wx{Date,Time}PickerCtrl for wxOSX/Cocoa.

Use NSDatePicker to implement both of these controls. Almost all of
wxDatePickerCtrl styles are not supported in the native version but the basic
functionality does work and looks much better than the generic version (which
is still available as wxDatePickerCtrlGeneric if needed) under Mac.

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

12 years agoAdded helpers for translating between wxDateTime and NSDate.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:09 +0000 (21:27 +0000)] 
Added helpers for translating between wxDateTime and NSDate.

These functions will be used in the upcoming native implementations of
wxDatePickerCtrl and wxTimePickerCtrl but could also be reused elsewhere in
wxOSX/Cocoa, notably in wxDataViewCtrl where strange ad hoc code is currently
used.

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

12 years agoAdded wxTimePickerCtrl page to the widgets sample.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:06 +0000 (21:27 +0000)] 
Added wxTimePickerCtrl page to the widgets sample.

Even if this page is pretty trivial, add it for consistency with
wxDatePickerCtrl.

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

12 years agoReorganized the date picker page of the widgets sample.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:02 +0000 (21:27 +0000)] 
Reorganized the date picker page of the widgets sample.

Make it possible to set the picker styles and set its range and not only the
current value.

Also log the events generated by it.

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

12 years agoUkrainian translations update from Yuri Chornoivan.
Vadim Zeitlin [Tue, 20 Dec 2011 21:22:31 +0000 (21:22 +0000)] 
Ukrainian translations update from Yuri Chornoivan.

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

12 years agoFix horizontal alignment in icon view in generic wxListCtrl.
Vadim Zeitlin [Tue, 20 Dec 2011 21:21:38 +0000 (21:21 +0000)] 
Fix horizontal alignment in icon view in generic wxListCtrl.

Ensure that all the items in the same column have the same width, so that
their labels are centred.

Closes #9227.

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

12 years agoBrazilian Portuguese translations update from Felipe.
Vadim Zeitlin [Tue, 20 Dec 2011 17:42:04 +0000 (17:42 +0000)] 
Brazilian Portuguese translations update from Felipe.

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

12 years agoFix crash in wxRegion in wxOSX/Carbon.
Vadim Zeitlin [Tue, 20 Dec 2011 15:39:42 +0000 (15:39 +0000)] 
Fix crash in wxRegion in wxOSX/Carbon.

Apparently some code expects to be able to call wxRegion::GetWXHRGN() even on
an invalid wxRegion. Return NULL in this case instead of crashing.

This fixes crash on startup of the widgets sample.

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

12 years agoAdd support for webview library to MSW bakefile presets.
Vadim Zeitlin [Tue, 20 Dec 2011 13:27:59 +0000 (13:27 +0000)] 
Add support for webview library to MSW bakefile presets.

The webview library wasn't linked in correctly when using MSW bakefile
presets. Fix this by adding the corresponding <sys-lib> for it (this needs to
be done for MSW only, under Unix it's handled by wx-config).

Closes #13789.

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

12 years agoMention the dialog focus regression fix in wxMSW in the change log.
Vadim Zeitlin [Tue, 20 Dec 2011 13:24:48 +0000 (13:24 +0000)] 
Mention the dialog focus regression fix in wxMSW in the change log.

See #13765.

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

12 years agoInterface tweaks and fixes for Phoenix
Robin Dunn [Mon, 19 Dec 2011 22:39:02 +0000 (22:39 +0000)] 
Interface tweaks and fixes for Phoenix

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

12 years agoAdded missing semi-colon in versioninfo.h interface header.
Bryan Petty [Mon, 19 Dec 2011 21:16:01 +0000 (21:16 +0000)] 
Added missing semi-colon in versioninfo.h interface header.

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

12 years agoCleaned up some of the code in wxSlider::DoMoveWindow.
Dimitri Schoolwerth [Mon, 19 Dec 2011 13:14:24 +0000 (13:14 +0000)] 
Cleaned up some of the code in wxSlider::DoMoveWindow.

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

12 years agoAdded support for wxEXEC_MAKE_GROUP_LEADER to wxExecute().
Vadim Zeitlin [Mon, 19 Dec 2011 12:54:48 +0000 (12:54 +0000)] 
Added support for wxEXEC_MAKE_GROUP_LEADER to wxExecute().

Map it to the native CREATE_NEW_PROCESS_GROUP flag as it's broadly similar to
Unix semantics.

Closes #13676.

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

12 years agoAdd possibility to set item background in generic wxDataViewCtrl.
Vadim Zeitlin [Mon, 19 Dec 2011 12:54:38 +0000 (12:54 +0000)] 
Add possibility to set item background in generic wxDataViewCtrl.

Added wxDataViewItemAttr::SetBackgroundColour() and code to honour it in the
generic implementation of wxDataViewCtrl.

Closes #12621.

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

12 years agoDon't use dummy "inline" in wxDEPRECATED_CONSTRUCTOR definition.
Vadim Zeitlin [Mon, 19 Dec 2011 12:54:32 +0000 (12:54 +0000)] 
Don't use dummy "inline" in wxDEPRECATED_CONSTRUCTOR definition.

Apparently we need this bogus "inline" for g++ < 3.4 but there is no reason to
use it for the other compilers and this results in linking errors with e.g.
MSVC, so remove it.

Closes #13775.

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

12 years agoFixed min and max label values not being swapped when using wxSL_INVERSE in a horizon...
Dimitri Schoolwerth [Mon, 19 Dec 2011 12:28:42 +0000 (12:28 +0000)] 
Fixed min and max label values not being swapped when using wxSL_INVERSE in a horizontal MSW slider.

Changed wxSlider::GetLabelsSize to let the widthMin and widthMax values contain the width of what the minimum (always on the left/top) and maximum (always on the right/bottom) _label_ will contain. This is not the same as the minimum and maximum _value_ in case of using wxSL_INVERSE.

Also don't swap the position of the min/max labels in a horizontal slider with wxSL_INVERSE (just how the labels already stay in place in a vertical slider, regardless of wxSL_INVERSE usage), nor their width.

Regression since r65941.

Fixes #13416.

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

12 years agoRemoved useless if statement in slider code.
Dimitri Schoolwerth [Mon, 19 Dec 2011 12:16:52 +0000 (12:16 +0000)] 
Removed useless if statement in slider code.

The y position of the slider is already taken care of by the variable ySlider, changing labelOffset has no use.

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

12 years agoDon't move the slider's value label if it's not being used.
Dimitri Schoolwerth [Mon, 19 Dec 2011 12:12:31 +0000 (12:12 +0000)] 
Don't move the slider's value label if it's not being used.

An if statement was missing brackets and still moving the value label.

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

12 years agoAdd a reminder to update version.bkl to inc_release script.
Vadim Zeitlin [Sun, 18 Dec 2011 14:38:47 +0000 (14:38 +0000)] 
Add a reminder to update version.bkl to inc_release script.

While docs/tech/tn0011.txt does document this, it's still too simple to forget
to update version.bkl, as my experience shows, so add a reminder to the script
itself too.

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

12 years agoUpdate version to 2.9.4 in version.bkl too and rebake everything.
Vadim Zeitlin [Sun, 18 Dec 2011 14:35:50 +0000 (14:35 +0000)] 
Update version to 2.9.4 in version.bkl too and rebake everything.

Change the version for Unix shared libraries too.

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

12 years agoAdded wxFilePickerCtrl::SetInitialDirectory().
Vadim Zeitlin [Sun, 18 Dec 2011 12:34:47 +0000 (12:34 +0000)] 
Added wxFilePickerCtrl::SetInitialDirectory().

This method allows to configure the initial directory to be shown when
browsing for files in an initially empty wxFileDirPickerCtrl.

It is also available for wxDirPickerCtrl but is less useful there.

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

12 years agoNo changes, just use wxScopedPtr instead of explicit "delete".
Vadim Zeitlin [Sun, 18 Dec 2011 12:27:04 +0000 (12:27 +0000)] 
No changes, just use wxScopedPtr instead of explicit "delete".

Use wxScopedPtr in wxGenericFileDirButton to ensure that the dialog created by
it is always destroyed, even if an exception is thrown while showing the
dialog or while processing the event we generate after showing it.

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

12 years agoEnsure wxWebViewIE::SetPage clears the existing content before writing the new output...
Steve Lamerton [Sun, 18 Dec 2011 11:51:52 +0000 (11:51 +0000)] 
Ensure wxWebViewIE::SetPage clears the existing content before writing the new output. Also add a basic unit test to verify correctness in the future.

Fixes #13770

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

12 years agoMake wxPalette ctor and Create() const-correct in wxMSW.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:47 +0000 (23:52 +0000)] 
Make wxPalette ctor and Create() const-correct in wxMSW.

The input data is never modified so should be const (it is also documented as
being const and actually is const in the other ports).

Closes #13776.

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

12 years agoDefine wxBitmapComboBox::Insert(void* clientData) overload in wxMSW.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:43 +0000 (23:52 +0000)] 
Define wxBitmapComboBox::Insert(void* clientData) overload in wxMSW.

This overload was declared in the header but not implemented, do add its
definition too.

Closes #13774.

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

12 years agoCorrected the name of EVT_WEB_VIEW_ERROR event table macro.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:40 +0000 (23:52 +0000)] 
Corrected the name of EVT_WEB_VIEW_ERROR event table macro.

It was mistakenly spelt EVT_WEB_VIEW_ERRROR.

Closes #13772.

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

12 years agoNo changes, just fix typo in an example in webview docs.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:36 +0000 (23:52 +0000)] 
No changes, just fix typo in an example in webview docs.

See #13772.

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

12 years agoDon't activate MSW dialogs when setting their initial size.
Vadim Zeitlin [Sat, 17 Dec 2011 23:04:50 +0000 (23:04 +0000)] 
Don't activate MSW dialogs when setting their initial size.

As the dialog is not shown yet at this moment, activating it didn't work
correctly and the dialog didn't get the focus when it was shown later.
Fix this by preventing ::SetWindowPos() from activating it, which it does by
default.

Closes #13765.

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

12 years agoFixed unreferenced parameter warning.
Dimitri Schoolwerth [Sat, 17 Dec 2011 01:13:22 +0000 (01:13 +0000)] 
Fixed unreferenced parameter warning.

Parameter xmpData was unused in wxImage::Create when compiling with wxUSE_XPM set to 0.

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

12 years agoIncremented the version number to 2.9.4 everywhere.
Vadim Zeitlin [Fri, 16 Dec 2011 22:12:49 +0000 (22:12 +0000)] 
Incremented the version number to 2.9.4 everywhere.

The misc/scripts/inc_release script was used to update the versions.

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

12 years agoTry to get more information about wxFileSystemWatcher unit test failures.
Vadim Zeitlin [Fri, 16 Dec 2011 21:11:19 +0000 (21:11 +0000)] 
Try to get more information about wxFileSystemWatcher unit test failures.

Log the original and new paths of the rename event to help debugging the extra
modification events detected during the buildbot builds.

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

12 years agoDon't use wxTE_DONTWRAP style in Lines() wxTextCtrl unit case.
Vadim Zeitlin [Fri, 16 Dec 2011 19:57:17 +0000 (19:57 +0000)] 
Don't use wxTE_DONTWRAP style in Lines() wxTextCtrl unit case.

The last check in this test couldn't pass under MSW as it relied on the (long)
line of text being wrapped but the style used for the control prevented this
from happening. Not sure how could it have ever worked before but in any case
removing wxTE_DONTWRAP does make the test pass.

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

12 years agoKeep the item being updated selected in wxMSW wxChoice::SetString().
Vadim Zeitlin [Fri, 16 Dec 2011 19:47:58 +0000 (19:47 +0000)] 
Keep the item being updated selected in wxMSW wxChoice::SetString().

Changing the text of the selected wxChoice (or wxComboBox, as it derives from
it in wxMSW) item made it unselected. Fix this by explicitly restoring the
selection to the item if needed.

Closes #13769.

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

12 years agoCorrected test for region validity in wxMSW wxRegion::DoOffset().
Vadim Zeitlin [Fri, 16 Dec 2011 19:47:55 +0000 (19:47 +0000)] 
Corrected test for region validity in wxMSW wxRegion::DoOffset().

Checking M_REGION is not enough as the region can be invalid (meaning
m_refData dereferenced inside M_REGION is NULL itself) and not just not
initialized, so it resulted in crashes and not just the expected assert
failure when wxRegion::Offset() was called for an invalid region.

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

12 years agoUse IsThisEnabled() to test if AUI child is enabled, not IsEnabled().
Vadim Zeitlin [Fri, 16 Dec 2011 19:33:31 +0000 (19:33 +0000)] 
Use IsThisEnabled() to test if AUI child is enabled, not IsEnabled().

IsEnabled() returns false if the parent window is disabled and calling
Enable() does not help with this, so we could keep trying and trying to enable
the window unsuccessfully if it was reenabled while its parent was disabled,
resulting in a never-ending stream of EVT_IDLE events.

Closes #13767.

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

12 years agoMake multiline checkboxes wider in wxMSW to avoid word wrap.
Vadim Zeitlin [Fri, 16 Dec 2011 11:03:15 +0000 (11:03 +0000)] 
Make multiline checkboxes wider in wxMSW to avoid word wrap.

At least for some versions of Windows (Server 2003 with classic look and feel)
the native checkboxes auto wrapped the label as it wrongly considered that the
width we specified for it was not big enough. Compensate for this by making
the checkbox wider -- this is just a hack but still better than corrupting the
checkbox display.

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

12 years agoOutput the value of --enable-debug option in configure.
Vadim Zeitlin [Fri, 16 Dec 2011 09:36:36 +0000 (09:36 +0000)] 
Output the value of --enable-debug option in configure.

As we use AC_ARG_ENABLE() instead of WX_ARG_ENABLE() for it, we need to call
AC_MSG_RESULT() explicitly or its value is never reported and configure output
is corrupted.

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

12 years agoCompilation fix for wxStopWatch with wxUSE_THREADS==0.
Vadim Zeitlin [Thu, 15 Dec 2011 21:13:03 +0000 (21:13 +0000)] 
Compilation fix for wxStopWatch with wxUSE_THREADS==0.

Use wxCRIT_SECT_DECLARE_MEMBER/wxCRIT_SECT_LOCKER macros which expand to
nothing in wxUSE_THREADS==0 case instead of using wxCriticalSection[Locker]
classes which are not defined then.

Also explicitly include wx/thread.h.

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

12 years agoApplied #13763 from dghart, to use primary selections if available
Julian Smart [Thu, 15 Dec 2011 11:32:58 +0000 (11:32 +0000)] 
Applied #13763 from dghart, to use primary selections if available

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

12 years agoEnsure that wxPropertyGrid::m_tlp is initialized early enough.
Vadim Zeitlin [Thu, 15 Dec 2011 00:22:48 +0000 (00:22 +0000)] 
Ensure that wxPropertyGrid::m_tlp is initialized early enough.

This member variable could be used before it was initialized as
OnTLPChanging() was called from Create() before Init2(), where m_tlp was
assigned NULL, was called.

Closes #13552.

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

12 years agoNo changes, just harmonized the EOLs in the ISS file.
Vadim Zeitlin [Wed, 14 Dec 2011 18:42:11 +0000 (18:42 +0000)] 
No changes, just harmonized the EOLs in the ISS file.

Use consistent DOS EOLs for all the lines in this file.

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

12 years agoRemove unnecessary m_editorCtrl assignment.
Václav Slavík [Wed, 14 Dec 2011 17:38:19 +0000 (17:38 +0000)] 
Remove unnecessary m_editorCtrl assignment.

m_editorCtrl is WeakRef<>, so doing it is pointless, and it breaks VC6
compilation.

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

12 years agoClose wxDataViewCtrl inline editor when destroying the control.
Václav Slavík [Wed, 14 Dec 2011 16:00:30 +0000 (16:00 +0000)] 
Close wxDataViewCtrl inline editor when destroying the control.

If the wxDataViewCtrl control was destroyed while an inline editor
control was still active, it wouldn't get destroyed in the right order
and the ~wxWindow assert about unpopped event handlers would be
triggered.

Fix this by popping the handler as one of the first things in
wxDataViewRendererBase destructor.

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

12 years agoDon't change horizontal scroll position needlessly in wxDataViewCtrl.
Václav Slavík [Wed, 14 Dec 2011 15:53:28 +0000 (15:53 +0000)] 
Don't change horizontal scroll position needlessly in wxDataViewCtrl.

When ScrollTo() or EnsureVisible() was called in the generic
wxDataViewCtrl implementation with unspecified column, horizontal scroll
position was reset to left-most position, which doesn't make much sense.
Instead, leave horizontal position unchanged in this case and only
change it when explicitly requested.

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

12 years agoEnsure that current column is visible in generic wxDataViewCtrl.
Václav Slavík [Wed, 14 Dec 2011 15:53:25 +0000 (15:53 +0000)] 
Ensure that current column is visible in generic wxDataViewCtrl.

When navigating between columns using keyboard, ensure visibility of the
newly selected column.

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

12 years ago2.9.3 version
Chris Elliott [Wed, 14 Dec 2011 08:52:48 +0000 (08:52 +0000)] 
2.9.3 version

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

12 years agoAdd the release date of 2.9.3 to the change log.
Vadim Zeitlin [Wed, 14 Dec 2011 00:46:12 +0000 (00:46 +0000)] 
Add the release date of 2.9.3 to the change log.

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

12 years agoUse string column identifiers with NSTableColumns in wxDataViewCtrl.
Vadim Zeitlin [Tue, 13 Dec 2011 21:08:17 +0000 (21:08 +0000)] 
Use string column identifiers with NSTableColumns in wxDataViewCtrl.

Starting with OS X 10.7 the column identifiers used in NSOutlineView must be
of type NSString, so convert the code to use string identifiers instead of
wxPointerObject.

Closes #13661.

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

12 years agoApplied #13738: Make a wxRichTextImage's box display around the image (dghart)
Julian Smart [Tue, 13 Dec 2011 19:06:53 +0000 (19:06 +0000)] 
Applied #13738: Make a wxRichTextImage's box display around the image (dghart)

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

12 years agoRegenerated Xcode projects.
Dimitri Schoolwerth [Mon, 12 Dec 2011 20:38:51 +0000 (20:38 +0000)] 
Regenerated Xcode projects.

Updated the Xcode projects to use timectrlg.cpp (renamed from timectrl.cpp).

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

12 years agoadding defaults for Xcode builds
Stefan Csomor [Mon, 12 Dec 2011 15:54:40 +0000 (15:54 +0000)] 
adding defaults for Xcode builds

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

12 years agoreverting r69387 and r69389, fixes #13737
Stefan Csomor [Mon, 12 Dec 2011 15:43:33 +0000 (15:43 +0000)] 
reverting r69387 and r69389, fixes #13737

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

12 years agoRename src/generic/timectrl.cpp to timectrlg.cpp.
Vadim Zeitlin [Mon, 12 Dec 2011 14:01:23 +0000 (14:01 +0000)] 
Rename src/generic/timectrl.cpp to timectrlg.cpp.

We can't use the same names for these files with VC6, it doesn't support this
and the project can't be built because of the output object file names
conflict.

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

12 years agoRemove the item before notifying about it in wxDataViewIndexListModel.
Vadim Zeitlin [Mon, 12 Dec 2011 13:08:46 +0000 (13:08 +0000)] 
Remove the item before notifying about it in wxDataViewIndexListModel.

Remove the item from the internal representation of the model before calling
ItemDeleted() callback so that the callback sees the model in a consistent
state.

This is more consistent with the other callbacks (e.g. ItemAdded()) and other
models (e.g. wxDataViewVirtualListModel) and should fix crashes in wxOSX
version of the control.

Closes #13753.

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

12 years agoAlways give error message when file-related functions fail.
Vadim Zeitlin [Mon, 12 Dec 2011 13:08:43 +0000 (13:08 +0000)] 
Always give error message when file-related functions fail.

Some failures in the file functions that usually did give error messages were
not reported, do log these errors too now.

Closes #13576.

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

12 years agoFix harmless warning in wxOSX with 10.7 SDK.
Vadim Zeitlin [Sun, 11 Dec 2011 23:59:33 +0000 (23:59 +0000)] 
Fix harmless warning in wxOSX with 10.7 SDK.

Use NSInteger instead of int in a declaration to avoid warnings about
declaration mismatch from g++ 4.2 under OS X 10.7.

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

12 years agoMinor corrections to event handling overview documentation.
Vadim Zeitlin [Sun, 11 Dec 2011 23:51:18 +0000 (23:51 +0000)] 
Minor corrections to event handling overview documentation.

Use "wx" prefix with the macros and correct the event methods used in the
example.

Closes #13752.

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

12 years agoDocument that setting colours for native controls might not work.
Vadim Zeitlin [Sun, 11 Dec 2011 23:51:14 +0000 (23:51 +0000)] 
Document that setting colours for native controls might not work.

Changing colours of the native controls can't be relied on.

See #13745.

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

12 years agofix GetTextExtent with non-null font argument, fixes #13750
Paul Cornett [Sun, 11 Dec 2011 19:05:24 +0000 (19:05 +0000)] 
fix GetTextExtent with non-null font argument, fixes #13750

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

12 years agoEnsure that Enter key presses are never stolen from wxButton in wxMSW.
Vadim Zeitlin [Sun, 11 Dec 2011 17:03:56 +0000 (17:03 +0000)] 
Ensure that Enter key presses are never stolen from wxButton in wxMSW.

This commit fixes the following bug: when an in-place editor control containing
an embedded button was used in wxDataViewCtrl, pressing Enter on the button
would close the editor, accepting changes, instead as (generic) wxDataViewCtrl
intercepts WXK_RETURN in its EVT_CHAR_HOOK handler. To prevent this from
happening, wxButton now handles EVT_CHAR_HOOK itself and never lets the parent
window intercept it if it's for WXK_RETURN. To ensure that normal
wxEVT_KEY_DOWN and wxEVT_CHAR are still generated in this case, wxButton
handler calls the new wxKeyEvent::DoAllowNextEvent() method that was added to
allow suppressing EVT_CHAR_HOOK only, without affecting the subsequent events.
DoAllowNextEvent() is currently only used in wxMSW but support for it was also
added to wxGTK and (both) wxOSX ports.

See #9102.

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

12 years agodon't include files which may not exist in source release for a specific platform...
Paul Cornett [Sun, 11 Dec 2011 05:36:52 +0000 (05:36 +0000)] 
don't include files which may not exist in source release for a specific platform, fixes #13746

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

12 years agoDocument wxFileConfig ctor.
Vadim Zeitlin [Sat, 10 Dec 2011 11:42:49 +0000 (11:42 +0000)] 
Document wxFileConfig ctor.

This ctor was not documented at all because the comment preceding it was a
plain C++ comment and not a Doxygen one.

Do it now, especially as the logic of this ctor is not quite obvious.

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

12 years agoUse default values for some parameters of wxSizerItem and wxGBSizerItem ctors
Robin Dunn [Sat, 10 Dec 2011 04:34:06 +0000 (04:34 +0000)] 
Use default values for some parameters of wxSizerItem and wxGBSizerItem ctors

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

12 years agoQuote variables in -z tests correctly in wx-config.
Vadim Zeitlin [Fri, 9 Dec 2011 21:41:36 +0000 (21:41 +0000)] 
Quote variables in -z tests correctly in wx-config.

The changes of r69944 broke wx-config for the traditional Unix systems (at
least Solaris and AIX, probably others too) which don't support using -z
without any value (unlike Linux/bash).

Fix this by quoting the possible empty variables in the tests.

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

12 years agoRename wxRichToolTipPopup::SetBackground() method to avoid warnings in wxUniv.
Vadim Zeitlin [Fri, 9 Dec 2011 15:58:40 +0000 (15:58 +0000)] 
Rename wxRichToolTipPopup::SetBackground() method to avoid warnings in wxUniv.

wxUniv has SetBackground() in wxWindow so rename this one to
SetBackgroundColours() to avoid g++ warning about hiding a base class virtual.

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

12 years agoavoid accepting an invalid color, ignore it, as other ports do, fixes #13720
Stefan Csomor [Fri, 9 Dec 2011 15:23:37 +0000 (15:23 +0000)] 
avoid accepting an invalid color, ignore it, as other ports do, fixes #13720

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

12 years agoRestore mouse capturing/releasing in wxPopupTransientWindow under MSW.
Vadim Zeitlin [Fri, 9 Dec 2011 15:20:55 +0000 (15:20 +0000)] 
Restore mouse capturing/releasing in wxPopupTransientWindow under MSW.

Partially revert the changes of r69350 to restore EVT_IDLE handling of
wxPopupTransientWindow under MSW. It turns out that we must release the mouse
for the embedded controls to work.

It would be better to solve the problem differently, e.g. perhaps maybe only
releasing mouse capture when mouse is clicked as the current code is fragile
but for now at least restore the functionality that used to work.

Closes #13740.

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

12 years agofixing copy size
Stefan Csomor [Fri, 9 Dec 2011 11:09:00 +0000 (11:09 +0000)] 
fixing copy size

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

12 years agoAdd wxEXEC_HIDE_CONSOLE flag allowing to unconditionally do it under MSW.
Vadim Zeitlin [Thu, 8 Dec 2011 20:22:55 +0000 (20:22 +0000)] 
Add wxEXEC_HIDE_CONSOLE flag allowing to unconditionally do it under MSW.

Also renamed wxEXEC_NOHIDE to wxEXEC_SHOW_CONSOLE for symmetry (keeping the
old name for compatibility, of course).

Extend exec sample to allow easily testing the different flags and adding more
of them later.

See #13676.

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

12 years agoExplicitly document wxEXEC_XXX flags.
Vadim Zeitlin [Thu, 8 Dec 2011 20:22:52 +0000 (20:22 +0000)] 
Explicitly document wxEXEC_XXX flags.

These flags were described in wxExecute() documentation but not clearly
documented individually, do it now.

Also reduce duplication of documentation in different wxExecute() overloads.

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

12 years agocopied from old cocoa code from David, fixes #13732
Stefan Csomor [Thu, 8 Dec 2011 17:08:10 +0000 (17:08 +0000)] 
copied from old cocoa code from David, fixes #13732

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

12 years agoAllow using wxEvtHandler::Bind() with IBM xlC compiler v7+.
Vadim Zeitlin [Thu, 8 Dec 2011 15:58:45 +0000 (15:58 +0000)] 
Allow using wxEvtHandler::Bind() with IBM xlC compiler v7+.

xlC 7 seems to be able to deal with this code without problems under AIX 5.3
so white list it.

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

12 years agoUse '1'..'9' to simulate digits instead of WXK_NUMPADn.
Vadim Zeitlin [Thu, 8 Dec 2011 15:55:40 +0000 (15:55 +0000)] 
Use '1'..'9' to simulate digits instead of WXK_NUMPADn.

Using WXK_NUMPADn with wxUIActionSimulator doesn't work under Unix, the
resulting GDK events have wrong keyval for some reason.

It would, of course, be nice to fix this but in the meanwhile use ASCII codes
to simulate the digits to at least allow doing this at all.

Also extend uiaction sample to allow testing text simulation.

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

12 years agoRefactor to eliminate duplication in wxGTK key events generation code.
Vadim Zeitlin [Thu, 8 Dec 2011 15:55:37 +0000 (15:55 +0000)] 
Refactor to eliminate duplication in wxGTK key events generation code.

This also fixes a small bug with wxKeyEvent::m_uniChar not being always set
correctly to the same value as m_keyCode for ASCII characters.

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

12 years agoRegenerated new Doxygen custom HTML header, footer, and stylesheet with 1.7.6, but...
Bryan Petty [Thu, 8 Dec 2011 15:45:41 +0000 (15:45 +0000)] 
Regenerated new Doxygen custom HTML header, footer, and stylesheet with 1.7.6, but only for use with Doxygen 1.7.4.

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

12 years agoFix Unicode key code for Ctrl-letter in wxGTK.
Vadim Zeitlin [Thu, 8 Dec 2011 14:54:25 +0000 (14:54 +0000)] 
Fix Unicode key code for Ctrl-letter in wxGTK.

This was broken by changes in r69892 and just the letter was used as the key
code instead of Ctrl-letter as it used (and should) be.

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

12 years agoOnly declare wxComboBox::Popup/Dismiss() when using Cocoa in wxOSX.
Vadim Zeitlin [Thu, 8 Dec 2011 14:47:37 +0000 (14:47 +0000)] 
Only declare wxComboBox::Popup/Dismiss() when using Cocoa in wxOSX.

wxOSX/Carbon doesn't use the core implementation file so declaring these
methods for the Carbon version resulted in linking errors. Just don't do this,
they're not implemented for Carbon anyhow.

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

12 years agoRefresh generic wxListCtrl after removing a column from it.
Vadim Zeitlin [Thu, 8 Dec 2011 14:15:55 +0000 (14:15 +0000)] 
Refresh generic wxListCtrl after removing a column from it.

Deleting a column still kept it on display, at least until the next refresh,
e.g. resizing the window was enough to make it disappear.

Simply add a call to Refresh() to ensure that the column does disappear when
deleted.

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

12 years agoDocument that wxEraseEvent::GetDC() never returns NULL.
Vadim Zeitlin [Thu, 8 Dec 2011 13:07:53 +0000 (13:07 +0000)] 
Document that wxEraseEvent::GetDC() never returns NULL.

This makes implementation of EVT_ERASE_BACKGROUND handlers simpler.

Closes #13736.

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

12 years agoCorrect the name of EVT_DATAVIEW_ITEM_START_EDITING event type in the docs.
Vadim Zeitlin [Thu, 8 Dec 2011 13:04:11 +0000 (13:04 +0000)] 
Correct the name of EVT_DATAVIEW_ITEM_START_EDITING event type in the docs.

START_EDITING is not the same as EDITING_STARTED.

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

12 years agoFix asserts when removing the menu item starting radio group in wxOSX.
Vadim Zeitlin [Thu, 8 Dec 2011 00:07:12 +0000 (00:07 +0000)] 
Fix asserts when removing the menu item starting radio group in wxOSX.

Update m_startRadioGroup when removing the item it corresponds to.

Closes #13545.

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

12 years agoSet the tooltip for generic wxToolBar tools under wxOSX/Cocoa.
Vadim Zeitlin [Wed, 7 Dec 2011 23:55:38 +0000 (23:55 +0000)] 
Set the tooltip for generic wxToolBar tools under wxOSX/Cocoa.

When using non-native toolbar, set the tooltip for tools m_controlHandle.

Closes #12362.

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

12 years agoWork around impossibility to use wxCombobox in wxGrid in wxOSX.
Vadim Zeitlin [Wed, 7 Dec 2011 23:41:14 +0000 (23:41 +0000)] 
Work around impossibility to use wxCombobox in wxGrid in wxOSX.

Open the combobox when the editor is initially shown, this somehow ensures
that the combobox selection is taken into account when it is closed while
without this the selection is simply completely ignored.

This is just a hack but at least it allows to use wxGridCellChoiceEditor under
wxOSX which was previously impossible at all.

Closes #12644.

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

12 years agoUse NSApp abortModal instead of stopModal to end modal dialogs.
Vadim Zeitlin [Wed, 7 Dec 2011 23:41:10 +0000 (23:41 +0000)] 
Use NSApp abortModal instead of stopModal to end modal dialogs.

Using abortModal is apparently the right thing to do if the dialog is not
being closed as the result of user action (but e.g. because a timer expired)
and shouldn't change anything if it done because of something the user did
(e.g. clicked on a button).

Closes #12467.

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

12 years agoImplement wxComboBox::Popup() and Dismiss() for wxOSX/Cocoa.
Vadim Zeitlin [Wed, 7 Dec 2011 23:41:06 +0000 (23:41 +0000)] 
Implement wxComboBox::Popup() and Dismiss() for wxOSX/Cocoa.

Unlike in the other ports, these methods currently don't generate any events
under OS X because these events are never generated at all there.

Closes #12642.

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

12 years agoDon't use gtk_menu_item_set_submenu() with NULL menu with GTK+ < 2.12.
Vadim Zeitlin [Wed, 7 Dec 2011 23:21:06 +0000 (23:21 +0000)] 
Don't use gtk_menu_item_set_submenu() with NULL menu with GTK+ < 2.12.

In GTK+ 2.10 and earlier gtk_menu_item_remove_submenu() had to be used to
remove the items submenu as gtk_menu_item_set_submenu() gave errors when
passed NULL submenu, so call the old function when using old GTK+ version.

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

12 years agoIn Refresh(), allow for possibility that child is mapped and parent is not.
Paul Cornett [Wed, 7 Dec 2011 19:34:57 +0000 (19:34 +0000)] 
In Refresh(), allow for possibility that child is mapped and parent is not.
It turns out this can actually happen, and is apparently allowed by GTK.

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

12 years agoOrder the libraries correctly in wx-config for static linking.
Vadim Zeitlin [Wed, 7 Dec 2011 16:13:26 +0000 (16:13 +0000)] 
Order the libraries correctly in wx-config for static linking.

The order of libraries matters when linking statically under UNIX. Ensure that
it is always correct in wx-config itself.

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

12 years agoFix the size of the buffer when using wxIPC::Execute() with DDE.
Vadim Zeitlin [Wed, 7 Dec 2011 14:35:23 +0000 (14:35 +0000)] 
Fix the size of the buffer when using wxIPC::Execute() with DDE.

Don't multiply the "realSize" variable by sizeof(wxChar) when passing it to
DdeClientTransaction(), as its name indicates it is already supposed to be the
size of the data and not the length of the string so just ensure that it is
always correctly set to the size and not length when initializing it.

Closes #13734.

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

12 years agoRemove vertical wxTextCtrl adjustment hacks for wxMSW in wxComboCtrl code.
Vadim Zeitlin [Wed, 7 Dec 2011 14:05:11 +0000 (14:05 +0000)] 
Remove vertical wxTextCtrl adjustment hacks for wxMSW in wxComboCtrl code.

Because wxTextCtrl used to wrongly report its best size in wxNO_BORDER case
under MSW, wxComboCtrl manually adjusted its position to work around this.
However since r69066 wxTextCtrl::GetBestSize() was fixed and now these
adjustments resulted in wrong vertical position for the control.

Just remove all manual adjustments completely now to fix this.

Closes #13722.

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

12 years agoadd dot to path
Chris Elliott [Wed, 7 Dec 2011 12:48:17 +0000 (12:48 +0000)] 
add dot to path

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

12 years agoAdd documentation of emitted events to wxScrolled documentation.
Vadim Zeitlin [Wed, 7 Dec 2011 12:46:15 +0000 (12:46 +0000)] 
Add documentation of emitted events to wxScrolled documentation.

Make it clear that wxScrolled<> emits wxScrollWinEvent and not wxScrollEvent.

Closes #13730.

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

12 years agoUpdate Make-files for OpenVMS
Jouk Jansen [Wed, 7 Dec 2011 07:47:29 +0000 (07:47 +0000)] 
Update Make-files for OpenVMS

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

12 years agoPretend that the window showing popup menu has focus in wxGTK.
Vadim Zeitlin [Wed, 7 Dec 2011 00:59:48 +0000 (00:59 +0000)] 
Pretend that the window showing popup menu has focus in wxGTK.

This is necessary for compatibility with wxMSW as the focus remains on the
window which had it before the popup menu was shown there and existing code
relies on it, while in wxGTK the popup steals the focus when it's shown.

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

12 years agoEnable wxEvtHandler::Bind() for Sun CC.
Vadim Zeitlin [Wed, 7 Dec 2011 00:59:46 +0000 (00:59 +0000)] 
Enable wxEvtHandler::Bind() for Sun CC.

At least 5.10+ are good enough to compile it.

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

12 years agoFix build with Sun CC under Linux.
Vadim Zeitlin [Wed, 7 Dec 2011 00:59:43 +0000 (00:59 +0000)] 
Fix build with Sun CC under Linux.

We need to explicitly define _GNU_SOURCE when building our code as we use it
configure when running the tests and it's not predefined by Sun CC, unlike g++
so we need to add it to CXXFLAGS ourselves.

An alternative solution would be to run the tests without _GNU_SOURCE but this
would lose too much functionality so it doesn't seem like a good idea.

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