Vadim Zeitlin
dee05929ba
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
2012-12-28 00:44:09 +00:00
Vadim Zeitlin
3bb9348f93
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
2012-12-28 00:44:05 +00:00
Vadim Zeitlin
33f9dbda89
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
2012-12-28 00:44:01 +00:00
Vadim Zeitlin
e14c510570
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
2012-12-28 00:43:57 +00:00
Vadim Zeitlin
1d59015da1
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
2012-12-28 00:43:53 +00:00
Paul Cornett
234aeaafa3
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
2012-12-27 05:59:23 +00:00
Paul Cornett
4d854e1536
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
2012-12-27 05:28:32 +00:00
Paul Cornett
c1bae26d32
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
2012-12-26 17:47:47 +00:00
Paul Cornett
63a4b41eda
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
2012-12-26 17:32:38 +00:00
Stefan Csomor
b97d6fb118
removing 10.5 version checks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-23 19:28:03 +00:00
Steve Lamerton
a8da90b853
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
2012-12-23 19:04:11 +00:00
Stefan Csomor
a7689c49fe
removing outdated code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-23 18:44:31 +00:00
Stefan Csomor
0ff0b78136
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
2012-12-23 18:42:34 +00:00
Stefan Csomor
2c31fcd730
adding isFlipped to userpane
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-23 15:46:39 +00:00
Stefan Csomor
c551dc29e7
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
2012-12-23 11:50:33 +00:00
Vadim Zeitlin
ab67e8874d
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
2012-12-23 11:33:50 +00:00
Julian Smart
76e36b9452
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
2012-12-22 21:31:13 +00:00
Vadim Zeitlin
c9223c4a57
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
2012-12-22 12:51:21 +00:00
Robin Dunn
deb21d7f0d
Various interface fixes for Phoenix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-22 08:00:04 +00:00
Robin Dunn
42dd5e3b25
Interface fixes for wxGrid classes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-22 07:59:58 +00:00
Vadim Zeitlin
9de31412ed
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
2012-12-22 02:35:07 +00:00
Vadim Zeitlin
1f89d869e7
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
2012-12-22 02:34:49 +00:00
Vadim Zeitlin
8c2bd115c7
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
2012-12-22 02:34:26 +00:00
Vadim Zeitlin
de168da1ed
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
2012-12-22 02:34:07 +00:00
Vadim Zeitlin
01936e1d49
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
2012-12-22 02:33:44 +00:00
Vadim Zeitlin
0ee169da2b
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
2012-12-22 02:33:23 +00:00
Vadim Zeitlin
87f0b1323b
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
2012-12-22 02:33:04 +00:00
Paul Cornett
76274efd34
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
2012-12-21 05:45:02 +00:00
Paul Cornett
b0d053c1ea
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
2012-12-20 18:46:58 +00:00
Stefan Csomor
833e100f7f
benefit from 10.5+ call HIShapeUnionWithRect
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-20 13:00:42 +00:00
Robin Dunn
c6f41dc81e
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
2012-12-19 19:27:29 +00:00
Stefan Csomor
ca77701441
activating DrawRectangle optimization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 15:41:44 +00:00
Stefan Csomor
e6c2d88bd0
fixing typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 15:31:57 +00:00
Stefan Csomor
4e07c80645
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
2012-12-19 15:30:40 +00:00
Stefan Csomor
c1c4c9b471
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
2012-12-19 09:58:33 +00:00
Stefan Csomor
0ffa23cc5b
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
2012-12-18 17:59:22 +00:00
Paul Cornett
4ea2d0d573
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
2012-12-16 07:14:40 +00:00
Stefan Csomor
f666995892
support SDK < 10.6, fixes #14902
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-14 20:04:57 +00:00
Stefan Csomor
9e1bfb3c2a
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
2012-12-14 16:21:17 +00:00
Vadim Zeitlin
2346ca0853
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
2012-12-14 12:29:07 +00:00
Stefan Csomor
4ca0bca0f3
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
2012-12-14 10:42:06 +00:00
Paul Cornett
cbe6a493b6
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
2012-12-14 06:29:54 +00:00
Paul Cornett
ffc28384ca
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
2012-12-14 06:25:00 +00:00
Robin Dunn
12c6bfab40
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
2012-12-14 02:10:15 +00:00
Paul Cornett
2c64b066ea
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
2012-12-13 04:41:52 +00:00
Vadim Zeitlin
011875afad
Brazilian Portuguese translations update from Felipe.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-12 13:52:36 +00:00
Paul Cornett
faad53d187
use correct signature for callback
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-11 06:43:19 +00:00
Paul Cornett
26ec6be735
make local functions static
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-11 06:37:14 +00:00
Paul Cornett
3eabbbcc5d
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
2012-12-11 06:31:23 +00:00
Vadim Zeitlin
9f987630e2
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
2012-12-11 01:32:42 +00:00