Commit Graph

64255 Commits

Author SHA1 Message Date
Vadim Zeitlin
0d640f8510 Add a mailmap entry for Danny Scott
Let Git now about multiple email addresses used by Danny.
2018-02-17 13:44:16 +01:00
Danny Scott
a52b839f66 Use vswhere to set environment variables for MSVS 2017
Allow building official releases with MSVS 2017 without doing it from
its "developer command prompt" by using the vswhere utility to set up
the paths correctly.

Closes #18083.
2018-02-17 13:40:41 +01:00
zonkx
ac608afdfe Round alpha correctly in bilinear image scaling code too
Add 0.5 to round the alpha values correctly too, just as it was already
done in f4c9767b49 for the RGB values.

Closes https://github.com/wxWidgets/wxWidgets/pull/733
2018-02-17 13:33:06 +01:00
Vadim Zeitlin
23c2d67c08 Improve wxDataViewListCtrl::AppendItem() and related methods docs
Explain that the vector passed to {Append,Insert,Prepend}Item() must
have the same number of elements as there are columns in the control and
that no more columns can be added after adding any items.

See https://github.com/wxWidgets/wxWidgets/pull/724
2018-02-17 13:29:57 +01:00
Kvaz1r
3567cd5b00 Check that rows in wxDataViewListCtrl have the right size
Vectors passed to wxDataViewListCtrl::{Append,Insert,Prepend}Item()
functions must have the correct, i.e. equal to the column count, number
of items as otherwise accessing them later would result in a crash.

Add checks verifying that this is indeed the case.

Closes https://github.com/wxWidgets/wxWidgets/pull/724
2018-02-17 13:23:20 +01:00
Vadim Zeitlin
958d0081a5 Close documentation comment accidentally left open
Fix an accidental removal of the closing comment marker in
a3673be155.

See https://github.com/wxWidgets/wxWidgets/pull/730
2018-02-17 13:17:54 +01:00
Hugo Elias
28bf0e8687 Add wxIMAGE_OPTION_GIF_TRANSPARENCY for GIF image loading
Allow to keep the originally defined transparent pixels colour instead
of replacing it with bright pink (which is still the default behaviour).

Closes #18014.
2018-02-16 16:28:33 +01:00
Vadim Zeitlin
1ebc28787c Merge branch 'zip64-fix'
Notably fix ZIP64 creation with individual files larger than 4GB.

See https://github.com/wxWidgets/wxWidgets/pull/730
2018-02-16 16:03:32 +01:00
Vadim Zeitlin
a3673be155 Clarify and improve wording of ZIP64 documentation
Try to make it more clear when SetFormat(wxZIP_FORMAT_ZIP64) needs to be
called and add some missing words.
2018-02-16 16:02:42 +01:00
Vadim Zeitlin
b552efedfc Remove commented out line in wxOSX SetFocus()
No real changes, just remove a "TODO" comment as it seems it's safe to
do it after 5+ years (see f897d9ed1a which
added it).
2018-02-16 15:57:05 +01:00
Maarten Bent
8577d9ddca Fix build warnings in Direct2D related code
Regressions since df1456e4e2 and
b936bfe85e.

See https://github.com/wxWidgets/wxWidgets/pull/731
2018-02-16 15:55:33 +01:00
Vadim Zeitlin
b493b7008b Avoid wxEVT_TEXT_ENTER when completion popup is shown in wxGTK
For consistency with wxMSW, and also because it just makes more sense
from UI point of view, avoid generating wxEVT_TEXT_ENTER events when an
auto-completion popup is shown and just accept the current selection in
it when Enter is pressed instead.

This notably allows to use "Enter" naturally with wxSearchCtrl using
auto-completion, instead of generating wxEVT_SEARCH events when the user
just wants to select a popup entry.

Use grab-notify signal as an indirect way of determining whether the
completion popup is currently shown, as there doesn't seem to be any way
to obtain its state directly from GTK+.

See https://github.com/wxWidgets/wxWidgets/pull/729
2018-02-16 15:52:29 +01:00
Vadim Zeitlin
5b2bb1ab81 Minor cleanup after the previous commit
Make m_origWinFlags const; keep just a single call to
SetWindowStyleFlag() and some space harmonization.

No real changes.
2018-02-16 13:27:13 +01:00
Vadim Zeitlin
4265e671fd Fix wxGTK compilation with Cairo 1.2
Avoid using cairo_clip_extents() function, which was added in 1.4,
unless we have at least this version at both compile- and run-time.

This allows the library to be compiled under CentOS 5, which only has
Cairo 1.2 and which is, unfortunately, still in use.
2018-02-16 13:18:02 +01:00
Vadim Zeitlin
85bb678e54 Merge branch 'cmake_misc3' of https://github.com/TcT2k/wxWidgets
Make: Fix regression when enable samples and Enable MSVC Multiprocessor
Compilation.

See https://github.com/wxWidgets/wxWidgets/pull/725
2018-02-16 13:16:53 +01:00
Tobias Taschner
29f5eeb69d Fix ZIP64 creation with individual files larger 4GB
If single files larger than 4GB where added the recorded file sizes
in the local file header where not updated correctly. Additionally
recorded file sizes in the central directory where in the wrong order
making it impossible to extract.

To enable adding files with unknown size which might be larger than 4GB
the new method wxZipOutputStream::SetFormat() is added.

Additionally a check has been added in case a file larger 4GB has been
written without ZIP64 info.
2018-02-15 20:01:13 +01:00
Tobias Taschner
dd5d755bc2 Fix reading 64-bit values from ZIP headers
Specific values where not correctly converted because of
a signed/unsigned mismatch.
2018-02-15 20:01:05 +01:00
ali kettab
986f61f33e Avoid wxEVT_TEXT_ENTER when completion popup is shown in wxGTK 2018-02-14 12:24:32 +01:00
Robin Dunn
7ad90c40b5 Merge pull request #727 from RobinD42/wxPy-interface-ports
Updates for interface/docs
2018-02-13 19:59:55 -08:00
Dimitri Schoolwerth
2fb26ae296 Regenerate Xcode projects
Update the Xcode projects to use current libjpeg and libpng sources.

Regression since a8e7d0ee12 (for libpng)
and cc8657e436 (libjpeg).
2018-02-13 23:47:07 +01:00
Dimitri Schoolwerth
bfa7035bdc Fix Xcode compilation
When using Xcode to compile wxCocoa a system's expat.h gets included
instead of wx', and in the case of wxiOS libexpat is not present and
thus expat.h is not found. Fix by correcting the path to expat.h .

Regression since 824134d427 .
2018-02-13 22:49:36 +01:00
Paul Cornett
a33ce89fec Avoid always consuming mouse wheel event in wxComboCtrl.
Allow further processing when key up/down is not handled.
See #18073
2018-02-11 22:16:48 -08:00
Robin Dunn
bd1e13df42 Minor cleanup and changes from Code Review comments. 2018-02-10 15:13:01 -08:00
Robin Dunn
5e01658cdc Lots more fixes for incorrect or missing interfaces items. 2018-02-10 13:06:19 -08:00
Robin Dunn
c27f1536ba Fix InheritsForegroundColour method name 2018-02-10 13:00:19 -08:00
Robin Dunn
6cdf29760d Fix conflict in macro and class name 2018-02-10 13:00:19 -08:00
Robin Dunn
a6c864ae78 Add a missing constant and enum 2018-02-10 13:00:19 -08:00
Robin Dunn
ce9dc25b5e SetSelection returns an int, not a size_t 2018-02-10 13:00:19 -08:00
Robin Dunn
c6a750c7b8 Add missing wxImageHandler::SetType 2018-02-10 13:00:19 -08:00
Paul Cornett
32fe8b4b43 build fixes for wxUSE_UNICODE==0 2018-02-10 08:49:25 -08:00
Tobias Taschner
623a9123a1 CMake: Enable multi-processor compilation for MSVC
Add option wxBUILD_MSVC_MULTIPROC which defaults to ON
to add /MP the MSVC compiler options.
2018-02-08 21:13:44 +01:00
Tobias Taschner
9a3b145731 CMake: Use wx_exe_link_libraries() to link sample libs
Fixes a recent regression and it should be used to enable monolithic build
2018-02-08 20:36:48 +01:00
Vadim Zeitlin
6300f151fb Merge branch 'cmake_osx_cxx11' of https://github.com/TcT2k/wxWidgets
Additional fixes/tweaks for C++11 on macOS with CMake.

See https://github.com/wxWidgets/wxWidgets/pull/723
2018-02-08 13:38:03 +01:00
Vadim Zeitlin
8f575f0398 Make the warning about GitHub archives even more prominent
The existing warning came too late to be effective, so put it in front
to (hopefully) really ensure that people avoid getting the wrong files.
2018-02-08 13:37:01 +01:00
Tobias Taschner
4ec4a41b1b Remove additional macOS flags for cmake build in Travis CI
These flags where added as a workaround in
bdcf21a5bd and should no longer be required
2018-02-08 11:01:47 +01:00
Tobias Taschner
7ce0a0a774 CMake: Additional fixes/tweaks for C++11 on macOS
The changes in 0a94c1890f where an
incomplete solution.
The apple compiler automatically choses libc++ if the deployment target
is >= 10.9. Lower deployment targets need explicit compiler options
to use libc++.
2018-02-08 11:01:05 +01:00
pavel-t
9c29b6de48 Fix building tests with wxUSE_STL=1 and wxUSE_UNSAFE_WXSTRING_CONV=0 2018-02-08 10:05:21 +02:00
Paul Cornett
0fe9d7c3bb Revert e41a1b1cbb "Menubar accelerators are now preserved"
It overwrites any existing accelerator table, and menubar accelerators
seem to work fine without it. See #18053
2018-02-06 22:50:47 -08:00
Vadim Zeitlin
8881953bea Add support for --with-cxx=17 configure option
Use the latest version of ax_cxx_compile_stdcxx.m4 from the autoconf
archive for C++17 support and handle "17" as the option value in our
configure.

See https://github.com/wxWidgets/wxWidgets/pull/721
2018-02-06 22:38:26 +01:00
Vadim Zeitlin
4be714535d Merge branch 'cmake_misc' of https://github.com/TcT2k/wxWidgets
Minor CMake and CMake documentation improvements.

See https://github.com/wxWidgets/wxWidgets/pull/720
2018-02-06 17:00:58 +01:00
Tobias Taschner
0a94c1890f CMake: Fixes/Tweaks for macOS building with C++ 11
Make sure the deployment target is set to 10.9 when using C++11
Also ensure building C++11 on macOS for non Xcode builds
2018-02-06 13:35:15 +01:00
Tobias Taschner
89148ea72e CMake: Improve documentation overview page 2018-02-06 13:35:02 +01:00
Vadim Zeitlin
a957df3fc1 Add missing wxOVERRIDE for overridden GtkGetValueFromString
This fixes a (harmless) warning in clang wxGTK builds.
2018-02-06 13:29:32 +01:00
Tobias Taschner
9fd4369931 CMake: Update cmake/README.md
Update minor stuff and mention upmake
2018-02-06 11:54:50 +01:00
Tobias Taschner
7887be861e CMake: Set default configuration types
Only use Debug and Release as default configuration types
2018-02-06 11:54:41 +01:00
Vadim Zeitlin
76c75d87f5 Describe the available files better in the release notes
Also mention that GitHub-provided links to the source code should _not_
be used.
2018-02-05 23:29:31 +01:00
Vadim Zeitlin
6961bcb43f Update 3.1.1-rc binaries SHA-1 checksums 2018-02-05 23:21:25 +01:00
Vadim Zeitlin
562e7c4427 Update release notes for 3.1.1-rc
Update MinGW versions used for the binaries and provide links to the
working compilers.

Add "-rc" to some links to make them work.

Also update the binaries file names.
2018-02-05 15:51:11 +01:00
Vadim Zeitlin
05a2945048 Update sha1sums for 3.1.1-rc archives
Done by running "./build/tools/post-release.sh 3.1.1-rc".
2018-02-05 15:44:19 +01:00
Vadim Zeitlin
35d2823601 Tweak post-release script and documentation
For the release candidates, allow passing the version (e.g. "3.1.1-rc")
to post-release.sh on the command line and document this.

Also don't commit automatically, this is annoying, especially as the
script doesn't check for errors.

Finally, fix the problem with the CHM file name: it must be zipped,
presumably to avoid problems with some firewalls blocking downloading
CHM files (as there is really no advantage in compressing the already
compressed CHM file otherwise).
2018-02-05 15:44:19 +01:00