Commit Graph

67276 Commits

Author SHA1 Message Date
Vadim Zeitlin
fe35ddd34b Make date cells in the grid sample more readable
Add labels for the columns using date format and labels for the cells
using date renderer/editor explicitly to give a better idea about what's
going on here.

Also use the same rows numbers for date cells as for the column ones for
consistency.

No real changes.

See 659ab78c6d
2019-11-01 18:48:07 +01:00
Vadim Zeitlin
02314de0ee Suppress spurious "unsupported DPI awareness" configure messages
If --with-dpi option is not specified at all, wxWITH_DPI_MANIFEST
remains empty, so take this value into account explicitly.
2019-11-01 15:39:52 +01:00
Vadim Zeitlin
be83879733 Merge branch 'always-use-wchar_t'
Remove obsolete wxUSE_WCHAR_T option, it must be always 1.

See https://github.com/wxWidgets/wxWidgets/pull/1624
2019-11-01 14:32:42 +01:00
Vadim Zeitlin
5ef1e77c79 Merge branch 'remove-mac-launch'
Remove wxMacLaunch() function unused any longer.

See https://github.com/wxWidgets/wxWidgets/pull/1629
2019-11-01 14:32:02 +01:00
Paul Cornett
4697ce23d9 Don't allow DestroyClippingRegion() to remove paint update area clipping with GTK3
See #18560
2019-10-31 23:30:18 -07:00
Vadim Zeitlin
e376e74210 Fix build-breaking typo in the GUI test suite
Fix after afe1816996.

See #17400.
2019-11-01 00:53:12 +01:00
Vadim Zeitlin
4df94771da Merge branch 'dataview_cocoa' of https://github.com/thesiv/wxWidgets
Ensure that last wxDataViewCtrl columns is always expanded to fit the
control width and a unit test checking for the scenario in which this
wasn't the case before, but is now.

See https://github.com/wxWidgets/wxWidgets/pull/1313
2019-11-01 00:49:29 +01:00
Vadim Zeitlin
b761e1819e Merge branch 'test-gtk-log'
Don't output spurious empty log messages when running test suite under
GTK.

Closes https://github.com/wxWidgets/wxWidgets/pull/1625
2019-11-01 00:12:44 +01:00
Vadim Zeitlin
1439845802 Remove extra new lines after GTK log messages
This seems unnecessary as the default log handler already outputs a new
line at the end of the message anyhow and at least some messages (e.g.
debug ones in GdkPixbuf) also contain an extra new line in them, so
adding another one here resulted in having at least one and sometimes
two extra blank lines.
2019-11-01 00:10:27 +01:00
Vadim Zeitlin
afe1816996 Ignore GTK debug logs in the unit test unless they're enabled
Don't output "*** GTK log message while running" messages for every
g_debug() call when we the debug messages themselves will not be
displayed because G_MESSAGES_DEBUG is not set or its value doesn't
include the domain used by the message.

This results in much more reasonable output from the test suite.

See #17400.
2019-11-01 00:09:52 +01:00
Vadim Zeitlin
505d4cc47f Merge branch 'focus_hwnd'
Fix focus handling in wxMSW wxSpinCtrl: select all the text when it gets
focus as expected.

See https://github.com/wxWidgets/wxWidgets/pull/1627
2019-10-31 23:58:59 +01:00
Vadim Zeitlin
c0d992cf67 Improve wording of MSWGetFocusHWND() comment
No real changes, just try to explain what this function is for better.
2019-10-31 23:58:21 +01:00
Vadim Zeitlin
96da0060ca Remove MSWGetFocusHwnd() helper
It doesn't seem worth having it when it's only used in a couple of
places in a single file, unlike GetHwnd() which is used in dozens of
places across entire wxMSW.
2019-10-31 23:56:55 +01:00
Ilya Sinitsyn
58c302448f Select the number in the ranged number grid editor on edit start
Select the value of the ranged number grid editor when starting to edit
it, as is done for plain text and other editors, because this makes it
more convenient to replace the old value with the new one.

Closes https://github.com/wxWidgets/wxWidgets/pull/1626
2019-10-31 23:54:22 +01:00
Vadim Zeitlin
c75874e0d2 Remove unused wxMacLaunch() and the file defining it
This function, using Carbon API, is not used any longer since the
changes of 5b6af7002c, so remove it and
also remove the file where it was defined as there is nothing remaining
there any longer.

See https://github.com/wxWidgets/wxWidgets/pull/1561
2019-10-31 23:49:04 +01:00
Vadim Zeitlin
224f860284 Move wxOSXSocketManagerCF definition to utils_base.mm
This variable is totally unrelated to wxExecute(), so move it to generic
"utils" file (which hadn't existed when this variable was added to
utilsexc_base.cpp back in 5815e95907.

No real changes.
2019-10-31 23:43:23 +01:00
Vadim Zeitlin
9d24a13c4b Fix IO redirection for async execution in wxOSX
Don't try running non-bundled applications in wxCocoaLaunch(): this
prevents the code handling IO redirection from being used.

Check that we have a bundle, just like wxMacaunch(), used until
5b6af7002c, used to do.

Closes #18552.

See https://github.com/wxWidgets/wxWidgets/pull/1561
2019-10-31 18:59:34 +01:00
Vadim Zeitlin
d967940035 Remove trailing spaces from wxCocoaLaunch()
No real changes.
2019-10-31 18:55:29 +01:00
Ilya Sinitsyn
bfde3d3e08 Fix focus behaviour of the spin control under MSW
Override MSWGetFocusHwnd for wxSpinCtrl to focus the right subwindow.
So the correct window will be used in wxWindowMSW::SetFocusFromKbd and
the spin controls content will be selected on TAB key.
2019-11-01 00:27:43 +07:00
Ilya Sinitsyn
1b6dc0a2fb Add MSWGetFocusHWND to allow focus a subwindow
Under MSW allow override which subwindow will be focused for composite
windows which are implemented not as a set of wxControl (i.e. using only
Windows native controls).
2019-11-01 00:19:53 +07:00
Paul Kulchenko
53c5ebedca Fix copy to clipboard by flushing the updated data. (#1623) 2019-10-31 10:59:14 +01:00
Paul Cornett
26701fd017 Refuse to scale an image which is too large to be properly handled
...by the wxIMAGE_QUALITY_NEAREST resampling algorithm. See #18550
2019-10-30 21:17:14 -07:00
Vadim Zeitlin
d7a640933d Remove wxUSE_WCHAR_T, it must always be 1 anyhow
This is not really an option as building requires it to be 1, so don't
make it one in setup.h/configure/cmake and just hardcode it as 1 for
compatibility.

Closes #18558.
2019-10-31 02:16:19 +01:00
Vadim Zeitlin
349e73994b Merge branch 'dpi-awareness-option' of https://github.com/MaartenBent/wxWidgets
Add wxUSE_DPI_AWARE_MANIFEST option allowing to choose to use a manifest
specifying per-monitor DPI awareness.

See https://github.com/wxWidgets/wxWidgets/pull/1622
2019-10-30 21:25:45 +01:00
Paul Cornett
25d25a4385 Fix memory leak in conversion from wxAny to wxVariant
Dynamically allocated copies in intermediate wxVariantList need to be deleted
2019-10-30 08:34:47 -07:00
Vadim Zeitlin
acf2f9ef1f Fix assert in wxWindowX11::SetBackgroundColour(wxColour())
Setting invalid colour is supposed to work and reset the background to
the default one, but asserted and then crashed due to triggering another
assert while trying to repaint the window while the assert dialog was
shown, in wxX11.

Fix this in the most expedient way by just resetting the background
colour to its initial value.

A better fix would be to leave it invalid but provide an accessor
returning the default value if the background colour is not defined.
2019-10-30 14:18:13 +01:00
Vadim Zeitlin
d076859040 Fix harmless signed/unsigned comparison warning
Cast line index to size_t after checking that it is positive to avoid
-Wsign-compare from gcc 8.3.
2019-10-30 14:13:22 +01:00
Paul Cornett
94ac1bbc85 Fix crash in wxImage::Scale()
Caused by arithmetic overflow of a signed addition and subsequent
right-shift of that (now negative) value and use as an array index.
Could only realistically occur on platforms where long is 32 bits.
See #18550
2019-10-29 19:59:31 -07:00
Maarten Bent
a72c9b6dbc Run autoconf and rebake after adding wxUSE_DPI_AWARE_MANIFEST 2019-10-30 00:02:08 +01:00
Maarten Bent
54996525f5 Document wxUSE_DPI_AWARE_MANIFEST option 2019-10-29 23:59:57 +01:00
Maarten Bent
d0b26a90ff Resolve -Wdeprecated-copy warning in wxDataFormat
Implicitly-declared 'constexpr wxDataFormat::wxDataFormat(const wxDataFormat&)'
is deprecated because 'wxDataFormat' has user-provided
'wxDataFormat& wxDataFormat::operator=(const wxDataFormat&)'.
2019-10-29 23:49:51 +01:00
Maarten Bent
cdf1226573 Add DPI Awareness option to configure and bakefile
Add option --with-dpi=[none,system,per-monitor] to configure the dpi awareness
on Windows.

Support DPI Awareness in makefile.gcc and makefile.bcc.

The default DPI awareness is set to per-monitor.
2019-10-29 23:49:51 +01:00
Maarten Bent
6f02c3a897 Add DPI Awareness option to CMake
For VS solutions, the DPI aware manifest is added as additional manifest.
For makefiles, the DPI aware manifest is included via the resource file.

Set the default DPI Awareness to per-monitor.
2019-10-29 23:49:36 +01:00
Artur Wieczorek
9e4d28ba7f Fix names of wxDirProperty ctor parameters
First two paramaters of ctors of wxPGProperty and its derivates are named
'label' and 'name' so wxDirProperty ctor should conform to this convention.

Close #18547.
2019-10-29 23:34:37 +01:00
Paul Cornett
d6c6fe78bb Fix read of uninitialized variable in wxFileConfig dtor 2019-10-29 11:17:06 -07:00
Vadim Zeitlin
c700f3bdf7 Remove asserts from wxZipHeader::ReadNN() methods
They prevent fuzzing from working properly as the program aborts instead
of continuing and crashing if it mishandles incorrect input, so just
remove them -- they didn't add any safety anyhow, as asserts are dormant
by default in release builds.
2019-10-29 19:05:15 +01:00
Vadim Zeitlin
c836b94cc4 Fix buffer read overflow in ZIP-64 loading code
Don't even try to parse the ZIP-64 header if there is not enough data in
the file.

Credit to OSS-Fuzz: this solves its issue 16250.
2019-10-29 19:01:48 +01:00
Vadim Zeitlin
e790f03950 Fix popup menu position on non-primary displays in wxGTK
If the popup menu position was explicitly specified, it wasn't taken
into account correctly in wxGTK code as it always clamped it to the
primary display boundaries, even if the window showing the menu wasn't
on this monitor at all, typically resulting in the menu shown at the
left or right edge of the monitor instead of the correct position.

Fix this by using the display containing the window instead. This
requires passing the window, or rather the menu from which it can be
retrieved, to wxPopupMenuPositionCallback too, so add a helper struct to
pass both the position and the menu to it.

Closes https://github.com/wxWidgets/wxWidgets/pull/1621
2019-10-29 13:55:41 +01:00
Vadim Zeitlin
c0db9fe01c Remove MinGW 7.2 note as we build 7.3 binaries now
Also correct 8.x version number, it's 8.1 and not 8.3.
2019-10-28 14:56:37 +01:00
Vadim Zeitlin
4951d3be6f Remove mention of TDM from binaries description
We don't provide binaries for this compiler any more, just MinGW-w64.

Also mention that SJLJ exceptions propagation mechanism is only used in
32-bit builds.
2019-10-28 14:25:10 +01:00
Vadim Zeitlin
0a02f4c190 Increment version number to 3.1.4
Done by running misc/scripts/inc_release, manually updating version.bkl,
rebaking and rerunning autoconf.

Also a header for the next version to the change log.
2019-10-28 14:11:00 +01:00
Vadim Zeitlin
e8fbf9aa49 Also mention wxwidgets.props in the release notes
Explain how to use the MSVC binaries in the new projects. We could also
link to https://docs.wxwidgets.org/3.1.3/plat_msw_binaries.html, but
it's arguably better to add this small note here.
2019-10-27 19:11:27 +01:00
Vadim Zeitlin
a04207a5f8 Update 3.1.3 source archives SHA-1 sums 2019-10-27 19:01:40 +01:00
Vadim Zeitlin
8a40d23b27 Update release notes etc for 3.1.3 release
Also simplify MSVC binaries use instructions by instructing people to
just use the provided properties file.
2019-10-27 18:41:42 +01:00
Vadim Zeitlin
57f3a20d39 Update change log for 3.1.3 release
Add all the changes from "git notes --ref=changelog" and a few more.
2019-10-27 17:53:26 +01:00
Vadim Zeitlin
67739303fd Don't force wxAuiToolBar size to be less than its parent
This results in the toolbar being too small to show any items in it
in wxGTK and wxOSX, because the parent window size is still the default
small one and not the actual size it will be when shown, when the size
of the toolbar is first set.

And it seems completely unnecessary to do this anyhow, as toolbar is
resized by wxAuiManager in any case.

Closes #18218.
2019-10-27 17:41:05 +01:00
Vadim Zeitlin
1d844882ed Avoid closing invalid socket after unsuccessful Accept()
Calling wxSocket::Accept() may return an invalid socket, especially when
non-blocking, so don't close it unconditionally.

This avoids an assertion failure in MSVC CRT due to calling
closesocket() with an invalid argument.
2019-10-27 15:50:33 +01:00
Vadim Zeitlin
56d36d11ba Merge remote-tracking branch 'github/osx-fixes'
Several fixes for wxOSX, including several focus-related changes.

See https://github.com/wxWidgets/wxWidgets/pull/1620
2019-10-27 14:52:37 +01:00
Vadim Zeitlin
d38d8f4f9c Remove Carbon-specific code from wxScreenDC implementation
Carbon is not supported any more and defining m_overlayWindow, which was
only used by Carbon code, resulted in "unused private variable" warning
from clang.
2019-10-27 01:44:29 +02:00
Vadim Zeitlin
85b5337160 Try to improve CanFocus() behaviour for hidden windows
This should be less important now that we don't rely on CanFocus() to
determine if we should set focus to the window any longer, but it seems
to still be better to try to make it work better for hidden windows, so
at least return true from it when full keyboard access is on.

When it's off, the behaviour is the same as before, but this doesn't
affect wxTextCtrl, whose peer NSView overrides CanFocus() to always
return true.

We almost certainly need to override CanFocus() in other views, notably
wxDataViewCtrl, wxSearchCtrl, and any other controls that can have focus
even when full keyboard access is off.

See #17340.
2019-10-27 01:42:26 +02:00