Commit Graph

62672 Commits

Author SHA1 Message Date
Stefan Csomor
36de95bd8e wxSecretStore is not implemented on iOS 2017-06-23 11:04:26 +02:00
Dimitri Schoolwerth
9b9f8ac468 Extend limits of allowed time zone offsets 2017-06-23 02:02:19 +04:00
Dimitri Schoolwerth
af309e6d96 Add minus sign (U+2212) as a time zone offset indicator 2017-06-23 02:02:19 +04:00
Dimitri Schoolwerth
1a5163a882 Add time zone parsing support for only specifying HH 2017-06-23 02:02:19 +04:00
Dimitri Schoolwerth
101433190f Add time zone parsing support for HH:MM 2017-06-23 02:02:19 +04:00
Dimitri Schoolwerth
a3a4e7c638 Add time zone parsing support for 'Z' (UTC indicator) 2017-06-23 02:02:19 +04:00
Dimitri Schoolwerth
51cfb64ecb Add test for wxDateTime time zone parsing 2017-06-23 02:02:19 +04:00
Stefan Csomor
1b6dfb8324 Include configure determined flags via setup.h
Compilation issued warnings about missing prototypes without the flags to include unistd.h.
2017-06-22 22:51:08 +02:00
Stefan Csomor
e15d417a76 Move config_xcode.h include to setup.h
In order to allow inclusion of configure determined flags via a wx/setup.h include also for xcode builds, the include has to move into the setup0.h template
2017-06-22 22:23:28 +02:00
Vadim Zeitlin
bfb893170e Fix initialization of SingleCharBuffer and Utf16CharBuffer data
Don't do it at all in the ctor, initializing just the first element of
the array is useless as it's overwritten by EncodeChar() anyhow, so just
leave the task of NUL-terminating the data to this function as well.

It might be even better to just have a ctor taking wxUniChar in these
classes instead and make EncodeChar() a trivial wrapper around it, but
for now just apply the minimal fix to repair the test breakage after the
last commit.

See https://github.com/wxWidgets/wxWidgets/pull/467#issuecomment-310384946
2017-06-22 15:55:24 +02:00
Vadim Zeitlin
4d3aaafc86 Avoid MSVC warning about correctly default-initializing arrays
Don't rely on default array initialization, not only it may not work
with some really old compilers (which is actually not that important as
we don't seem to rely on these arrays being initialized, in fact), but
it results in warnings about working correctly (sic) from MSVC in
versions from 9 up to 12 inclusive.

See https://github.com/wxWidgets/wxWidgets/pull/467#issuecomment-310193867
2017-06-22 01:50:19 +02:00
Vadim Zeitlin
16252f1299 Merge branch with several fixes for Coverity 8.5 warnings
See https://github.com/wxWidgets/wxWidgets/pull/505
2017-06-22 01:35:37 +02:00
Dimitri Schoolwerth
3e945a0a5d Fix wxMSW test build in UTF-8 and ANSI build
Use wxString::t_str() with a function taking LPCTSTR (which is either
LPCWSTR or LPCSTR). And wxStrg::wc_str() for LPCOLESTR which,
ordinarily, is a wide string.
2017-06-22 02:04:50 +04:00
Dimitri Schoolwerth
07c8f15e43 Fix 'destionation' typos
Rename relatively new enum value wxTASKBAR_JUMP_LIST_DESTIONATION to
wxTASKBAR_JUMP_LIST_DESTINATION as well as a private function containing
the same typo.
2017-06-21 22:51:57 +04:00
Vadim Zeitlin
bb306b7ed0 Merge fixes for handling Unicode characters outside of BMP
Closes https://github.com/wxWidgets/wxWidgets/pull/467
2017-06-21 19:10:12 +02:00
Vadim Zeitlin
8311715bdf Ensure that SIZEOF_WCHAR_T is defined in wx/chartype.h
This should always the case now, but wasn't when not using configure
(e.g. in MSVC builds) before, so verify this explicitly to ensure that
we don't just silently define wxUSE_UNICODE_UTF16 wrongly, as it
happened before the fix in the previous commit.
2017-06-21 19:08:27 +02:00
Vadim Zeitlin
a86d0f8d65 Move wx/debug.h inclusion after SIZEOF_WCHAR_T in wx/defs.h
This is required now because wx/debug.h includes wx/chartype.h which uses
SIZEOF_WCHAR_T to define wxUSE_UNICODE_UTF16.
2017-06-21 19:07:43 +02:00
Vadim Zeitlin
24f3ff3b78 No changes, just fix a typo in a recently added comment 2017-06-21 19:07:13 +02:00
Stefan Csomor
f008a9d2d5 Update zlib to 1.2.11 (#508)
Mark Adler recommends an immediate update to this version on htt://zlib.net because of bug fixes. Copied the differences (only for the files we have at all) over.
2017-06-21 18:47:35 +02:00
Marc-Philip
01215b8519 fix possible overrun 2017-06-21 17:19:58 +02:00
Marc-Philip
d449b429e8 fix unitialized variable 2017-06-21 17:19:58 +02:00
Marc-Philip
060c7e7157 fix illegal memory access 2017-06-21 17:19:58 +02:00
Marc-Philip
3e9c24f57f add missing zero padding 2017-06-21 17:19:58 +02:00
Stefan Csomor
7513492024 these selectors may exist not only on our own wxUIView class , but also in eg documentViews ie UIViews, add selectors for the enabled property 2017-06-20 20:38:23 +02:00
Stefan Csomor
c0cc4bec53 Merge branch 'master' of https://github.com/wxWidgets/wxWidgets 2017-06-20 19:55:46 +02:00
Stefan Csomor
5276800576 keep older version for iOS, CGDisplay doesn't exist there 2017-06-20 19:55:29 +02:00
Stefan Csomor
8b1381f2b1 OSX use fontAttributes for better emulation of bold fonts (#501)
* using fontAttributes dictionary allows for better emulation of bold typefaces, also switch to using color from context, this allows keeping the same dict throughout, as a side effect fix font caching

* reverting in order to maintain crossplatform compatibility

* applying review suggestions

* applying review suggestions
2017-06-20 17:55:26 +02:00
Vadim Zeitlin
e121e8addb Check for view presence in wxDocument::RemoveView()
Return false and avoid calling OnChangedViewList() if the view wasn't present
in the first place.

This is not, strictly speaking, backwards compatible, but most of the existing
code doesn't seem to check the return value of RemoveView() at all and it's
hard to imagine that someone would rely on it returning true when removing a
non-existent view, so in practice this changes seems to be safe.

Closes #17888.
2017-06-20 15:32:00 +02:00
Vadim Zeitlin
a2af796156 Remove outdated comment about wxListCtrl checkboxes support
They're implemented in the generic version too, so don't say that they're
MSW-only.

No real changes.
2017-06-20 15:25:28 +02:00
Jouk
c03364149d correct typo in previous commit 2017-06-20 10:18:22 +02:00
Jouk
edb60cfcda Correct bitmap_in_button code for wxUniversal, wxMOTIF and wxGTK1 2017-06-20 08:31:16 +02:00
Marc-Philip
25ce17ca7b avoid using invalid field 2017-06-19 14:15:19 +02:00
Paul Cornett
dd3c62660b Remove hard TABs and trailing spaces
no real changes
2017-06-18 23:14:43 -07:00
Paul Cornett
a08812c499 Simplify overlapping regions check 2017-06-18 22:47:15 -07:00
Paul Cornett
59acf5ac27 Use correct signature for callback 2017-06-18 13:56:06 -07:00
Paul Cornett
74bde5690c Use reported size for page source string
Avoids a warning from Valgrind about reading uninitialized byte in strlen.
The string does not seem to be nul-terminated.
2017-06-18 13:48:41 -07:00
Jouk
084009bff5 Update setup for OpenVMS 2017-06-16 10:45:03 +02:00
Stefan Csomor
e2e99f5c91 removing deprecated APIs 2017-06-15 20:51:14 +02:00
Paul Cornett
1d3ed51eab Fix indentation, remove trailing whitespace
no real changes
2017-06-15 10:39:06 -07:00
Paul Cornett
820149121b Make local function static 2017-06-15 10:32:57 -07:00
Paul Cornett
fcd2401af7 Simplify flags casting 2017-06-15 10:31:31 -07:00
Paul Cornett
a1fde23d88 Simplify conversion from bool
there is no need to explicitly convert to int
2017-06-15 10:26:31 -07:00
Paul Cornett
47dc046b1e Simplify zoom conversion code
so there is no need to "shut up compilers"
2017-06-15 10:21:54 -07:00
Paul Cornett
4e55fca038 Use explicit conversion to bool 2017-06-15 09:50:26 -07:00
Paul Cornett
e03fd314fd Use correct signature for callback 2017-06-15 09:27:19 -07:00
Paul Cornett
b4a6f39ab2 Use HandleWindowEvent() from C callbacks
Avoids issues with exceptions. Also remove worthless null pointer checks, the
pointer has already been dereferenced, and GetEventHandler() never returns NULL
2017-06-15 09:22:37 -07:00
Paul Cornett
188b249467 Avoid reading uninitialized member variable
m_historyLimit is unused with webkit2
2017-06-15 09:04:05 -07:00
Paul Cornett
b9c9fc3534 Initialize member variables during construction
avoids uninitialized memory accesses later on
2017-06-15 08:57:05 -07:00
Stefan Csomor
4558dbe97f switching from comma to semicolon, possible error warning 2017-06-15 17:48:23 +02:00
Stefan Csomor
75831d232c modernizing API 2017-06-14 21:58:42 +02:00