]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
11 years agoParse files from include/wx/*.h when making wxMSW tags.
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:09 +0000 (16:03 +0000)] 
Parse files from include/wx/*.h when making wxMSW tags.

Fix missing wxTextMeasure &c in wxMSW tags.

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

11 years agoAllow building wxGTK under Windows with MSVC.
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:03 +0000 (16:03 +0000)] 
Allow building wxGTK under Windows with MSVC.

Replace a few more __WXMSW__ tests with __WINDOWS__ ones and modify bakefiles
to allow specifying the toolkit to be built in wxMSW makefiles.

Closes #13902.

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

11 years agoRemove connection of MyDllApp::OnIdle() handler in the dll sample.
Vadim Zeitlin [Fri, 28 Dec 2012 16:02:11 +0000 (16:02 +0000)] 
Remove connection of MyDllApp::OnIdle() handler in the dll sample.

This method didn't really exist, the code only worked because it connected to
wxApp::OnIdle() which exists in wxMSW but not the other ports.

Simply remove the apparently unnecessary call.

See #13902.

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

11 years agoNo changes, just avoid unused variable in wxUSE_TOOLTIPS==0 build.
Vadim Zeitlin [Fri, 28 Dec 2012 16:02:07 +0000 (16:02 +0000)] 
No changes, just avoid unused variable in wxUSE_TOOLTIPS==0 build.

Move the declaration of a variable only used for tooltip setting inside "#if
wxUSE_TOOLTIPS" test.

Closes #14927.

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

11 years agoUse a single taskbar icon for all notifications in wxMSW.
Vadim Zeitlin [Fri, 28 Dec 2012 16:02:04 +0000 (16:02 +0000)] 
Use a single taskbar icon for all notifications in wxMSW.

Allocating a new icon for every notification could result in showing many
identical icons in the taskbar notification area if several notification
messages were generated which looked like a bug to the user. It was also
inconsistent with the behaviour in the case when UseTaskBarIcon() was called.

Always behave as in the latter case now, i.e. any subsequent notification
replaces the previous one instead of being shown in addition to it.

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

11 years agoRemove extra "#" operator in wxFAIL_COND_MSG macro.
Vadim Zeitlin [Fri, 28 Dec 2012 16:01:59 +0000 (16:01 +0000)] 
Remove extra "#" operator in wxFAIL_COND_MSG macro.

The argument of this macro is already a string, so we don't need to stringify
it again.

This fixes VC6 build, unlike all the other compilers this one didn't apply "#"
to an argument which was already a quoted string correctly.

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

11 years agosilence unused var warning
Stefan Csomor [Fri, 28 Dec 2012 13:15:08 +0000 (13:15 +0000)] 
silence unused var warning

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

11 years agonon-pch build fix
Paul Cornett [Fri, 28 Dec 2012 01:50:33 +0000 (01:50 +0000)] 
non-pch build fix

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

11 years agoFix regression with wxHTML table elements background handling.
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:13 +0000 (00:44 +0000)] 
Fix regression with wxHTML table elements background handling.

Wrong background was used for the text inside HTML tables since r72589, fix
this by setting the correct background before processing the table elements
and restoring it after doing it.

Closes #14909.

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

11 years agoEnsure that client display rectangle is always less than its total area.
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:09 +0000 (00:44 +0000)] 
Ensure that client display rectangle is always less than its total area.

Under Unix we could return client display rectangle that was bigger than the
entire display size as it corresponded to the total screen size when
_NET_WORKAREA was not supported or was not correctly implemented by the WM.

Fix this by explicitly intersecting the client rect with the total one.

Closes #14419.

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

11 years agoDocument wxListBox and wxChoice as inheriting from wxItemContainer.
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:05 +0000 (00:44 +0000)] 
Document wxListBox and wxChoice as inheriting from wxItemContainer.

Due to an apparent Doxygen bug, methods inherited from wxItemContainer via
wxControlWithItems didn't appear in the documentation, so work around this by
using wxItemContainer as a direct base class.

Closes #14882.

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

11 years agoAdd wxGCC_WARNING_{SUPPRESS,RESTORE} macros and use them for -Wfloat-equal.
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:01 +0000 (00:44 +0000)] 
Add wxGCC_WARNING_{SUPPRESS,RESTORE} macros and use them for -Wfloat-equal.

Suppress the warnings about comparing floating point values for equality in
wxWidgets headers when the user code is compiled with -Wfloat-equal (at least
when using g++ 4.6 or later).

Closes #14895.

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

11 years agoNo changes, just don't initialize the variable twice.
Vadim Zeitlin [Fri, 28 Dec 2012 00:43:57 +0000 (00:43 +0000)] 
No changes, just don't initialize the variable twice.

Remove the inactive code probably copy-and-pasted from somewhere else.

Closes #14924.

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

11 years agoNo changes, just remove an unused variable.
Vadim Zeitlin [Fri, 28 Dec 2012 00:43:53 +0000 (00:43 +0000)] 
No changes, just remove an unused variable.

Closes #14923.

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

11 years agoUse proper reference counting on GtkMenuItem that we keep a pointer to
Paul Cornett [Thu, 27 Dec 2012 05:59:23 +0000 (05:59 +0000)] 
Use proper reference counting on GtkMenuItem that we keep a pointer to

Fixes crash that occurs with Ubuntu libdbusmenu
See #14292

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

11 years agoBetter fix for avoiding warnings from Ubuntu libdbusmenu
Paul Cornett [Thu, 27 Dec 2012 05:28:32 +0000 (05:28 +0000)] 
Better fix for avoiding warnings from Ubuntu libdbusmenu

Previous workaround from r71648, modified in r72560, broke MDI child menu handling
See #14292

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

11 years agoremove unused private member m_ordered from wxDataViewVirtualListModel
Paul Cornett [Wed, 26 Dec 2012 17:47:47 +0000 (17:47 +0000)] 
remove unused private member m_ordered from wxDataViewVirtualListModel

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

11 years agofix consruction of string
Paul Cornett [Wed, 26 Dec 2012 17:32:38 +0000 (17:32 +0000)] 
fix consruction of string
thanks to clang for finding this one

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

11 years agoremoving 10.5 version checks
Stefan Csomor [Sun, 23 Dec 2012 19:28:03 +0000 (19:28 +0000)] 
removing 10.5 version checks

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

11 years agoFix webview compilation for the mingw-w64 compiler.
Steve Lamerton [Sun, 23 Dec 2012 19:04:11 +0000 (19:04 +0000)] 
Fix webview compilation for the mingw-w64 compiler.

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

11 years agoremoving outdated code
Stefan Csomor [Sun, 23 Dec 2012 18:44:31 +0000 (18:44 +0000)] 
removing outdated code

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

11 years agomaking sure we are using correct implementation for shades
Stefan Csomor [Sun, 23 Dec 2012 18:42:34 +0000 (18:42 +0000)] 
making sure we are using correct implementation for shades

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

11 years agoadding isFlipped to userpane
Stefan Csomor [Sun, 23 Dec 2012 15:46:39 +0000 (15:46 +0000)] 
adding isFlipped to userpane

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

11 years agotry support for native isFlipped usage and coalesce update rects into bounding box...
Stefan Csomor [Sun, 23 Dec 2012 11:50:33 +0000 (11:50 +0000)] 
try support for native isFlipped usage and coalesce update rects into bounding box by default

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

11 years agoFix wrong tab order in wxAuiNotebook after dragging.
Vadim Zeitlin [Sun, 23 Dec 2012 11:33:50 +0000 (11:33 +0000)] 
Fix wrong tab order in wxAuiNotebook after dragging.

Update the tab index correctly to keep tabs list and windows list in sync.

Closes #10848.

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

11 years agoFix for bug #14915 - wxRichTextCtrl: Not able to move up to empty first line
Julian Smart [Sat, 22 Dec 2012 21:31:13 +0000 (21:31 +0000)] 
Fix for bug #14915 - wxRichTextCtrl: Not able to move up to empty first line

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

11 years agoSort wxPAPER_XXX constants alphabetically in the documentation.
Vadim Zeitlin [Sat, 22 Dec 2012 12:51:21 +0000 (12:51 +0000)] 
Sort wxPAPER_XXX constants alphabetically in the documentation.

This makes it much simpler to find the one you want.

See #14919.

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

11 years agoVarious interface fixes for Phoenix
Robin Dunn [Sat, 22 Dec 2012 08:00:04 +0000 (08:00 +0000)] 
Various interface fixes for Phoenix

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

11 years agoInterface fixes for wxGrid classes
Robin Dunn [Sat, 22 Dec 2012 07:59:58 +0000 (07:59 +0000)] 
Interface fixes for wxGrid classes

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

11 years agoAdd a temporary workaround to make the tests pass.
Vadim Zeitlin [Sat, 22 Dec 2012 02:35:07 +0000 (02:35 +0000)] 
Add a temporary workaround to make the tests pass.

Call SetCLocale() on tests startup to avoid problems with wxDateTime parsing
that happen when the user locale is different from "C" one under Windows.

See #14918.

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

11 years agoInvalidate wxGrid best size when its associated table changes.
Vadim Zeitlin [Sat, 22 Dec 2012 02:34:49 +0000 (02:34 +0000)] 
Invalidate wxGrid best size when its associated table changes.

The number of grid cells changes too, so the old best size can't be used any
more.

Closes #14761.

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

11 years agoFix libtiff compilation with VC6 after upgrade to 4.0.3.
Vadim Zeitlin [Sat, 22 Dec 2012 02:34:26 +0000 (02:34 +0000)] 
Fix libtiff compilation with VC6 after upgrade to 4.0.3.

VC6 headers don't define INVALID_SET_FILE_POINTER constant so do it ourselves
if necessary.

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

11 years agoNo changes, just improve wxScrolled::EnableScrolling() documentation.
Vadim Zeitlin [Sat, 22 Dec 2012 02:34:07 +0000 (02:34 +0000)] 
No changes, just improve wxScrolled::EnableScrolling() documentation.

Explain that, in spite of its name, this function doesn't disable scrolling
when called with false argument but just changes the mechanism used to
implement it.

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

11 years agoRemove unnecessary variable assignment from wxBoxSizer::RecalcSizes().
Vadim Zeitlin [Sat, 22 Dec 2012 02:33:44 +0000 (02:33 +0000)] 
Remove unnecessary variable assignment from wxBoxSizer::RecalcSizes().

The "delta" variable was assigned a value that was never used afterwards.

Closes #14908.

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

11 years agoAdd wxListCtrl::EnableAlternateRowColours() and SetAlternateRowColour().
Vadim Zeitlin [Sat, 22 Dec 2012 02:33:23 +0000 (02:33 +0000)] 
Add wxListCtrl::EnableAlternateRowColours() and SetAlternateRowColour().

Add methods to simply enable alternative row background colours in wxListCtrl.

Closes #14618.

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

11 years agoDon't use "Cancel" button in the about dialog of the listctrl sample.
Vadim Zeitlin [Sat, 22 Dec 2012 02:33:04 +0000 (02:33 +0000)] 
Don't use "Cancel" button in the about dialog of the listctrl sample.

No real changes, just remove the unnecessary button.

See #14618.

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

11 years agorevert r73185, it should no longer be needed after r73231
Paul Cornett [Fri, 21 Dec 2012 05:45:02 +0000 (05:45 +0000)] 
revert r73185, it should no longer be needed after r73231

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

11 years agoUse client size determined by size-allocate when possible
Paul Cornett [Thu, 20 Dec 2012 18:46:58 +0000 (18:46 +0000)] 
Use client size determined by size-allocate when possible

Our client size calculation can be wrong for reasons beyond our control,
notably on Ubuntu 12.04 with overlay scrollbars where the GtkScrolledWindow
"scrollbar-spacing" is wrong. By using the true size from size-allocate
when it becomes available, we can recover from an earlier incorrect client
size calculation. See #14871

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

11 years agobenefit from 10.5+ call HIShapeUnionWithRect
Stefan Csomor [Thu, 20 Dec 2012 13:00:42 +0000 (13:00 +0000)] 
benefit from 10.5+ call HIShapeUnionWithRect

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

11 years agoAdd accessors for some of the data members in wxXmlResourceHandler
Robin Dunn [Wed, 19 Dec 2012 19:27:29 +0000 (19:27 +0000)] 
Add accessors for some of the data members in wxXmlResourceHandler

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

11 years agoactivating DrawRectangle optimization
Stefan Csomor [Wed, 19 Dec 2012 15:41:44 +0000 (15:41 +0000)] 
activating DrawRectangle optimization

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

11 years agofixing typo
Stefan Csomor [Wed, 19 Dec 2012 15:31:57 +0000 (15:31 +0000)] 
fixing typo

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

11 years agoHIThemeBrushCreateCGColor seems to have become very CPU-expensive, cache the results...
Stefan Csomor [Wed, 19 Dec 2012 15:30:40 +0000 (15:30 +0000)] 
HIThemeBrushCreateCGColor seems to have become very CPU-expensive, cache the results for better performance

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

11 years agomaking Xcode builds work against against libtiff, copied over from a console build
Stefan Csomor [Wed, 19 Dec 2012 09:58:33 +0000 (09:58 +0000)] 
making Xcode builds work against against libtiff, copied over from a console build

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

11 years agosetting offsets for window and client dcs when not in a paint event, see #14904
Stefan Csomor [Tue, 18 Dec 2012 17:59:22 +0000 (17:59 +0000)] 
setting offsets for window and client dcs when not in a paint event, see #14904

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

11 years agoFix for toolbars and menus not being disabled on Ubuntu
Paul Cornett [Sun, 16 Dec 2012 07:14:40 +0000 (07:14 +0000)] 
Fix for toolbars and menus not being disabled on Ubuntu

Ubuntu overlay scrollbar changes the GtkWindowGroup for its toplevel, which is
disastrous for modal windows. Put in a hack to detect and undo this.
Fixes #14855

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

11 years agosupport SDK < 10.6, fixes #14902
Stefan Csomor [Fri, 14 Dec 2012 20:04:57 +0000 (20:04 +0000)] 
support SDK < 10.6, fixes #14902

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

11 years agosupporting private types in DnD on osx_cocoa, fixes #14884
Stefan Csomor [Fri, 14 Dec 2012 16:21:17 +0000 (16:21 +0000)] 
supporting private types in DnD on osx_cocoa, fixes #14884

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

11 years agoFix libtiff compilation with MinGW.
Vadim Zeitlin [Fri, 14 Dec 2012 12:29:07 +0000 (12:29 +0000)] 
Fix libtiff compilation with MinGW.

At least some versions of MinGW don't define 64 bit integer types resulting in
errors when they're used in libtiff code, so explicitly include basetyps.h to
make sure these types are defined.

Closes #14897.

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

11 years agoavoid double up events for static text, fixes #14902
Stefan Csomor [Fri, 14 Dec 2012 10:42:06 +0000 (10:42 +0000)] 
avoid double up events for static text, fixes #14902

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

11 years agocompute scrollbar spacing the same way GtkScrolledWindow does it
Paul Cornett [Fri, 14 Dec 2012 06:29:54 +0000 (06:29 +0000)] 
compute scrollbar spacing the same way GtkScrolledWindow does it

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

11 years agoGet DC size from GDK window if possible, client size can unfortunately be wrong
Paul Cornett [Fri, 14 Dec 2012 06:25:00 +0000 (06:25 +0000)] 
Get DC size from GDK window if possible, client size can unfortunately be wrong
This should fix wxDC::Clear() not clearing the whole window on Ubuntu 12.04 with overlay scrollbars
see #14871

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

11 years agoPatch from niki@vintech.bg allowing builds for Python 2.5 (using MSVC 7.1) to work...
Robin Dunn [Fri, 14 Dec 2012 02:10:15 +0000 (02:10 +0000)] 
Patch from niki@vintech.bg allowing builds for Python 2.5 (using MSVC 7.1) to work again.

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

11 years agodecrease number of skipped frames in assert dialog backtrace, 7 is not the minimum...
Paul Cornett [Thu, 13 Dec 2012 04:41:52 +0000 (04:41 +0000)] 
decrease number of skipped frames in assert dialog backtrace, 7 is not the minimum, closes #14690

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

11 years agoBrazilian Portuguese translations update from Felipe.
Vadim Zeitlin [Wed, 12 Dec 2012 13:52:36 +0000 (13:52 +0000)] 
Brazilian Portuguese translations update from Felipe.

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

11 years agouse correct signature for callback
Paul Cornett [Tue, 11 Dec 2012 06:43:19 +0000 (06:43 +0000)] 
use correct signature for callback

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

11 years agomake local functions static
Paul Cornett [Tue, 11 Dec 2012 06:37:14 +0000 (06:37 +0000)] 
make local functions static

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

11 years agoadd wrappers to avoid compiling code which will never be used
Paul Cornett [Tue, 11 Dec 2012 06:31:23 +0000 (06:31 +0000)] 
add wrappers to avoid compiling code which will never be used

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

11 years agoHandle IN_MOVE inotify events better.
Vadim Zeitlin [Tue, 11 Dec 2012 01:32:42 +0000 (01:32 +0000)] 
Handle IN_MOVE inotify events better.

Set the new path correctly for moved or renamed files.

Closes #14889.

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

11 years agoInitialize wxRibbonBar::m_help_button_hovered.
Vadim Zeitlin [Tue, 11 Dec 2012 01:32:38 +0000 (01:32 +0000)] 
Initialize wxRibbonBar::m_help_button_hovered.

This variable was never initialized, do it now.

See #14868.

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

11 years agoUse wxSetWorkingDirectory() instead of chdir().
Vadim Zeitlin [Mon, 10 Dec 2012 14:41:31 +0000 (14:41 +0000)] 
Use wxSetWorkingDirectory() instead of chdir().

This fixes compilation of wxGTK under Windows after the changes of r72779 and
r72780, where _wchdir() would need to be used but we don't currently have a
wxChdir() CRT function wrapper so use wxSetWorkingDirectory() instead.

Closes #14886.

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

11 years agoReadded tiffconf.h removed by libtiff 4.0.3 merge.
Vadim Zeitlin [Mon, 10 Dec 2012 14:30:37 +0000 (14:30 +0000)] 
Readded tiffconf.h removed by libtiff 4.0.3 merge.

This file is needed by Windows builds.

Should have been part of r73157, see #12301.

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

11 years agoBakefile updates for libtiff 4.0.3 merge.
Vadim Zeitlin [Mon, 10 Dec 2012 14:27:44 +0000 (14:27 +0000)] 
Bakefile updates for libtiff 4.0.3 merge.

This should have been part of r73157,

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

11 years agoMerged libtiff 4.0.3 changes into the trunk.
Vadim Zeitlin [Mon, 10 Dec 2012 14:01:44 +0000 (14:01 +0000)] 
Merged libtiff 4.0.3 changes into the trunk.

This should help with making libtiff work better in 64 bit builds as libtiff 4
is supposed to support them much better.

Closes #12301.

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

11 years agotypo fix
Robin Dunn [Sat, 8 Dec 2012 21:04:50 +0000 (21:04 +0000)] 
typo fix

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

11 years agoDocument wxXmlResourceHandler::GetFloat().
Vadim Zeitlin [Sat, 8 Dec 2012 13:47:45 +0000 (13:47 +0000)] 
Document wxXmlResourceHandler::GetFloat().

Closes #14879.

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

11 years agoAlso account for EOL chars correctly in wxStyledTextCtrl::GetLineLength().
Vadim Zeitlin [Sat, 8 Dec 2012 13:27:55 +0000 (13:27 +0000)] 
Also account for EOL chars correctly in wxStyledTextCtrl::GetLineLength().

Make GetLineLength() consistent with GetLineText() after the changes of
r73140.

Closes #13646.

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

11 years agoDocument wxWindow::Get{Min,Max}{Width,Height}().
Vadim Zeitlin [Sat, 8 Dec 2012 13:22:28 +0000 (13:22 +0000)] 
Document wxWindow::Get{Min,Max}{Width,Height}().

These methods were not documented and somehow inherited the description of the
first method of the group they were in, which didn't make any sense for them.

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

11 years agoDon't test for key code being valid unnecessarily.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:38 +0000 (00:37 +0000)] 
Don't test for key code being valid unnecessarily.

The key code was already found to be valid just above, so suppress Coverity
warning about an always true test by not checking it again. This also makes
the code more clear.

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

11 years agoRemove unnecessary default from a switch statement.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:36 +0000 (00:37 +0000)] 
Remove unnecessary default from a switch statement.

Don't check for impossible enum element value, it's better to not have the
default clause at all to get a warning from g++ if this enum ever changes
later. And for now the presence of default results in a warning from Coverity
about unreachable code.

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

11 years agoFix copy/paste error in UnsetConstraints().
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:33 +0000 (00:37 +0000)] 
Fix copy/paste error in UnsetConstraints().

"top" was mistakenly used in the code dealing with "left" constraint.

Thanks to Coverity for finding this one.

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

11 years agoCheck gtk_tree_model_iter_nth_child() return value in wxChoice code.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:31 +0000 (00:37 +0000)] 
Check gtk_tree_model_iter_nth_child() return value in wxChoice code.

This is probably harmless but check the return value just to suppress Coverity
warning about not doing it.

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

11 years agoDon't use values returned by lstat() if it failed in wxFileCtrl code.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:28 +0000 (00:37 +0000)] 
Don't use values returned by lstat() if it failed in wxFileCtrl code.

The buffer may be uninitialized or at least not contain the correct data if
lstat() failed, don't use it in this case.

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

11 years agoCheck wxDir::GetNext() return value in wxFindNextFile().
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:25 +0000 (00:37 +0000)] 
Check wxDir::GetNext() return value in wxFindNextFile().

This doesn't really change anything as the returned value would be empty
anyhow in case of an error, but suppresses Coverity warning about not checking
the return value of a function whose return value is checked in other places.

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

11 years agoAdd a wxHtmlTag helper parsing both absolute values and percents.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:21 +0000 (00:37 +0000)] 
Add a wxHtmlTag helper parsing both absolute values and percents.

This allows to avoid some code duplication in different handlers.

Closes #14868.

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

11 years agoDon't unnecessarily NUL-terminate wxCharBuffer contents.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:17 +0000 (00:37 +0000)] 
Don't unnecessarily NUL-terminate wxCharBuffer contents.

wxCharBuffer already initializes the last byte of the buffer it allocates to 0
so there is no need to do it explicitly.

Also don't allocate an extra byte, wxCharBuffer already adds one to the length
passed to it for the trailing NUL.

See #13885.

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

11 years agoStrip EOL characters from wxStyledTextCtrl::GetLineText() return value.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:13 +0000 (00:37 +0000)] 
Strip EOL characters from wxStyledTextCtrl::GetLineText() return value.

For consistency with all the other wxTextCtrl-like classes, the value returned
by this method must not include line terminator characters (like '\n'). Notice
that Scintilla-specific GetLine() does still include them, for consistency
with the Scintilla API itself.

Closes #13646.

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

11 years agoCatch attempts to create a window with itself as parent.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:10 +0000 (00:37 +0000)] 
Catch attempts to create a window with itself as parent.

This doesn't happen often but when it does, the results are catastrophic and
not always easy to debug, so try catch this as soon as possible.

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

11 years agoRemove check of eof() return value validity.
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:08 +0000 (00:37 +0000)] 
Remove check of eof() return value validity.

It's useless and resulted in a warning from Coverity as it correctly
determined that this code could never be executed under Unix.

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

11 years agodisable Ubuntu "overlay scrollbar", see #14871
Paul Cornett [Thu, 6 Dec 2012 05:33:43 +0000 (05:33 +0000)] 
disable Ubuntu "overlay scrollbar", see #14871

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

11 years agofix tests for valid pen and brush, broken in r73099
Paul Cornett [Wed, 5 Dec 2012 17:38:30 +0000 (17:38 +0000)] 
fix tests for valid pen and brush, broken in r73099

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

11 years agowxRTC text box layout fixes
Julian Smart [Wed, 5 Dec 2012 16:23:12 +0000 (16:23 +0000)] 
wxRTC text box layout fixes

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

11 years agoCompilation fir for VC6 after r73124.
Vadim Zeitlin [Tue, 4 Dec 2012 12:28:28 +0000 (12:28 +0000)] 
Compilation fir for VC6 after r73124.

VC6 doesn't have __debugbreak().

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

11 years agoExplicitly set margins for single line text controls in wxMSW.
Vadim Zeitlin [Tue, 4 Dec 2012 00:39:37 +0000 (00:39 +0000)] 
Explicitly set margins for single line text controls in wxMSW.

The margin used by them was inconsistent and depended on the initial size the
control was created with for some reason. Call EM_SETMARGINS explicitly to
ensure consistent appearance in all cases.

Closes #2438.

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

11 years agoAdd missing critical section locking before accessing shared variable.
Vadim Zeitlin [Tue, 4 Dec 2012 00:39:33 +0000 (00:39 +0000)] 
Add missing critical section locking before accessing shared variable.

WinThreadStart() in wxMSW wxThread implementation accessed the variable
containing the thread state without locking which was wrong, do it only inside
the critical section.

Notice that there is still an unavoidable race condition between exiting the
thread and starting it, so it's not clear at all if we should try to avoid
calling DoThreadStart() here.

Closes #14865.

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

11 years agoOpen debugger at the location of failing assert, if possible.
Vadim Zeitlin [Tue, 4 Dec 2012 00:39:29 +0000 (00:39 +0000)] 
Open debugger at the location of failing assert, if possible.

Break into the debugger in the function containing the assert that failed
instead of inside wxWidgets assert handler which is several (~8) levels below
the last line of the user code. This is much more useful in practice and also
less confusing.

Currently this only works for MSVC as the other compilers don't have any
__debugbreak intrinsice equivalent.

Also update the except sample to test wxTrap() directly too.

Closes #11184.

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

11 years agoRemove SashHitTest() "tolerance" parameter
Paul Cornett [Mon, 3 Dec 2012 18:14:55 +0000 (18:14 +0000)] 
Remove SashHitTest() "tolerance" parameter
Mouse events (LeftDown in particular) will only occur if the mouse is over the
sash, so it does not make sense to have a fudge factor

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

11 years agoAvoid setting sash resize cursor when mouse is still over border of second pane with...
Paul Cornett [Mon, 3 Dec 2012 18:04:46 +0000 (18:04 +0000)] 
Avoid setting sash resize cursor when mouse is still over border of second pane with wxGTK
This made it possible to have the resize cursor, but not be able to drag the
sash, and happened because wxGTK sends a leave event when mouse leaves client
area instead of outer border of window. Setting the useless SashHitTest()
"tolerance" parameter to zero avoids the problem.
Fixes #1397

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

11 years agoFix SashHitTest() returning true one pixel past the sash
Paul Cornett [Mon, 3 Dec 2012 17:37:54 +0000 (17:37 +0000)] 
Fix SashHitTest() returning true one pixel past the sash

If the sash is n pixels wide, the last position over the sash is start + n - 1, not start + n

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

11 years agoExclude files in vendor branches from svn hook checks.
Vadim Zeitlin [Mon, 3 Dec 2012 17:05:07 +0000 (17:05 +0000)] 
Exclude files in vendor branches from svn hook checks.

These files correspond to upstream sources and shouldn't be subject to our
checks.

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

11 years agowxGTK linking fix after r73102.
Vadim Zeitlin [Mon, 3 Dec 2012 00:34:28 +0000 (00:34 +0000)] 
wxGTK linking fix after r73102.

Remove SendSelectionChangedEvent() declaration, it's now in the base class.

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

11 years agoCorrect lookup of Explorer-specific file association information.
Vadim Zeitlin [Sun, 2 Dec 2012 23:50:33 +0000 (23:50 +0000)] 
Correct lookup of Explorer-specific file association information.

The code added in r52154 never worked because it was looking for the Progid
value in a wrong place, look for it under UserChoice subkey where it really
is.

Also add a way to look up the command to open files with the given extension
to the exec sample.

Closes #12302.

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

11 years agoNo changes, just reorganize the menu slightly in the exec sample.
Vadim Zeitlin [Sun, 2 Dec 2012 23:50:10 +0000 (23:50 +0000)] 
No changes, just reorganize the menu slightly in the exec sample.

Move all file association related commands under "File" menu from the "Exec"
one, having them there makes more sense and "Exec" menu is already quite big.

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

11 years agoAllow specifying -1 as font size to mean "default" in wxMSW.
Vadim Zeitlin [Sun, 2 Dec 2012 23:49:48 +0000 (23:49 +0000)] 
Allow specifying -1 as font size to mean "default" in wxMSW.

This has never been officially documented but used to work in 2.8 and still
works in wxGTK, so make it works in wxMSW too for consistency.

Closes #12541.

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

11 years agoMake wxChoice and wxComboBox behaviour same as in native controls in wxMSW.
Vadim Zeitlin [Sun, 2 Dec 2012 23:49:25 +0000 (23:49 +0000)] 
Make wxChoice and wxComboBox behaviour same as in native controls in wxMSW.

Keep the item selected from the drop down using keyboard when switching away
from the control by pressing TAB: although this generates CBN_SELENDCANCEL
notification, the selection is actually kept by the native controls in this
case, so don't reset it ourselves -- even though it makes sense, it makes wx
applications behave differently from the native ones.

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

11 years agoAdd wxControlWithItems::SendSelectionChangedEvent() helper.
Vadim Zeitlin [Sun, 2 Dec 2012 23:48:59 +0000 (23:48 +0000)] 
Add wxControlWithItems::SendSelectionChangedEvent() helper.

Reuse the same event generation code for wxChoice in wxMSW, wxGTK and wxOSX
and also wxComboBox in wxMSW and wxGTK instead of duplicating it (incompletely
and so partially incorrectly in wxOSX case).

This is just a refactoring so no changes in behaviour.

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

11 years agoAvoid using "do { ... } while ( wxFalse )" pseudo-loop.
Vadim Zeitlin [Sun, 2 Dec 2012 23:48:36 +0000 (23:48 +0000)] 
Avoid using "do { ... } while ( wxFalse )" pseudo-loop.

This loop can't be optimized away by the compiler because wxFalse is an extern
variable which can't be known to be always false. Additionally, this creates
many false positives from Coverity as it assumes that the loop can be executed
more than once.

Define wxSTATEMENT_MACRO_BEGIN/END macros abstracting the exact solution used
and replace wxFalse with "(void)0, 0" for now as this seems to placate MSVC
(which warns about using a bare "0" as a condition) while still allowing the
loop to be completely optimized away.

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

11 years agoWarn, don't assert, about unexpected inotify events.
Vadim Zeitlin [Sun, 2 Dec 2012 20:24:38 +0000 (20:24 +0000)] 
Warn, don't assert, about unexpected inotify events.

In practice we seem to be getting some unexpected inotify() events during
heavy IO activity. This shouldn't happen but it does, so at least don't
prevent the program from running by popping up the assertion dialog when it
happens.

Closes #14854.

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

11 years agosimplify code so it always returns the same object
Paul Cornett [Sun, 2 Dec 2012 05:48:24 +0000 (05:48 +0000)] 
simplify code so it always returns the same object

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

11 years agoclean up wxCairoRenderer initialization mess
Paul Cornett [Sun, 2 Dec 2012 05:11:25 +0000 (05:11 +0000)] 
clean up wxCairoRenderer initialization mess

Remove unused Unload(), wxCairoCleanUp(), m_loaded and gCairoRenderer, and redundant Load()
and EnsureIsLoaded(). Just call wxCairoInit() directly, and for GTK do nothing at all.

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