Commit Graph

58993 Commits

Author SHA1 Message Date
Vadim Zeitlin
08bba701ff Fix wxPropertySheetDialog::SetInnerSize() ABI breakage in 3.0.3
Add back the old method name, replacing it with SetInnerSizer() in
6b335c8ca4 wasn't ABI (nor even API) compatible.

Still keep SetInnerSizer() and do _not_ add it to version-script.in to avoid
breaking compatibility with 3.0.3 now.

Closes #17861.
2017-05-15 22:42:55 +02:00
Vadim Zeitlin
8df55d69dd Replace separate release notes with a single file
Use the same file for both sources and binaries, they are all on the same page
when using Github releases.
v3.0.3
2017-05-02 00:07:09 +02:00
Vadim Zeitlin
6bb0c86874 Update copyright year in the documentation to 2017
Don't touch the year elsewhere and especially in the sources to avoid the
mismatch with the existing binary packages, it's not that important.
2017-05-01 23:04:34 +02:00
Vadim Zeitlin
913155cc57 Update copyright year in wxMSW DLLs version information block
Use 2017 instead of 2013 which was already out of date even for the previous
release, which was in 2014.
2017-04-29 19:18:07 +02:00
Vadim Zeitlin
eadbf3e139 Merge branch 'pvs-fixes-3.0' into 3.0
See https://github.com/wxWidgets/wxWidgets/pull/470
v3.0.3-rc1
2017-04-29 14:00:38 +02:00
Ilya Ivanov
717ffcd80c Fix wrong variable name in assignment in wxRichTextSizePage dtor
The "sm_showMinMaxSizeControls" was assigned twice, while
"sm_enablePositionAndSizeUnits" was not assigned at all, apparently by
mistake.

Thanks to PVS-Studio for finding this issue (V519 The
'sm_showMinMaxSizeControls' variable is assigned values twice successively).
2017-04-29 13:59:52 +02:00
Ilya Ivanov
0eb34b5256 Use VARIANT_TRUE and VARIANT_FALSE correctly
VARIANT_TRUE (-1) must be used with VARIANTs of boolean type, instead of TRUE
(1) which has a different value and can result in interoperability problems.

Thanks to PVS-Studio for finding this issue (V721 The VARIANT_BOOL type is
utilized incorrectly).
2017-04-29 13:58:47 +02:00
Ilya Ivanov
ef227d669d Fix check for wxACC_STATE_SYSTEM_MARQUEED in accessibility code
wxACC_STATE_SYSTEM_INVISIBLE was checked twice, by mistake, while
wxACC_STATE_SYSTEM_MARQUEED was never checked at all.

Thanks to PVS-Studio for finding this issue (V581: The conditional expressions
of the 'if' operators situated alongside each other are identical).
2017-04-29 13:58:47 +02:00
tommash
e1a6857d5a Don't send unnecessary events when wxSpinCtrlDouble loses focus
Only send the event when the control loses focus if its value has really
changed.

See https://github.com/wxWidgets/wxWidgets/pull/436

(cherry picked from commit 5e24bd162c)
2017-04-29 13:55:44 +02:00
Robin Dunn
3fa996453f Add a missing constant and enum 2017-04-27 19:38:04 -07:00
Tobias Taschner
7847ce2304 Fix AVKit availability check for OS X SDK 10.7 and 10.8
This fixes the check for older SDKs and outputs the check result.

(cherry picked from commit 159186d656)

Closes https://github.com/wxWidgets/wxWidgets/pull/371
2017-04-26 22:33:43 +02:00
Vadim Zeitlin
ef30edf5e0 Fix keyboard event key codes when using Wayland
Correct the confusion between compile- and run-time checks for X11.

See #17848.

(cherry picked from commit 7542632302)
2017-04-26 22:32:52 +02:00
Lauri Nurmi
cc86c80495 Fix the integer value in events generated by generic wxSpinCtrl
This notably fixes the problem with changing the year using spin control
arrows under macOS, where this control is used as part of
wxGenericCalendarCtrl, as not having the correct value in the event object
resulted in bogus events with dates in the year 0 there.

See http://trac.wxwidgets.org/ticket/17193

(cherry picked from commit 148e8971c7)
2017-04-25 13:10:05 +02:00
Vadim Zeitlin
b6ad01d2a9 Prepare for 3.0.3 release
Update the README, change log and the announcement in preparation for the
release.
2017-04-22 16:57:22 +02:00
Vadim Zeitlin
6288f8e2e6 Add dummy wxGStreamerMediaBackend::QueryVideoSizeFromElement()
This is not used, but having it avoids warnings about breaking ABI
compatibility with 3.0.2 when using GStreamer 1.0 in 3.0.3.
2017-04-22 16:30:36 +02:00
Vadim Zeitlin
fd2b143a48 Fix wxDataViewRendererBase::FinishEditing() symbol version
This symbol is not new in 3.0.3, unlike wxDataViewRenderer::FinishEditing(),
so it should keep its 3.0 version to avoid breaking ABI compatibility.
2017-04-22 16:17:33 +02:00
Vadim Zeitlin
df67c91995 Don't mark wxSimplebookXmlHandler as being 3.0.3-only
This change (done in 7b25b65a2f) makes 3.0.3
binary-incompatible with 3.0.2 as the programs using wxSimplebookXmlHandler
with the latter use these symbols with the version WXU_3.0 and not WXU_3.0.3
that they have now.

So while not adding these symbols to the version script before 3.0.2 release
was wrong, adding them for 3.0.3 is even worse, hence revert this change.
2017-04-22 16:03:47 +02:00
Vadim Zeitlin
ebb62db0fc Revert wrong fix for wxDateTime timezone conversion to/from local
This reverts commit aaddf6be7f as it broke
handling of dates when local time zone is BST, whose offset not counting DST
is 0, as for UTC, but which still should be handled as local timezone,
see #17220.

With the current wxDateTime handling of time zones, FromTimezone(Local)
doesn't make much sense anyhow, so abandon attempts to try making it work as
to really do it we need to specify the time zone being converted from too, as
explained in the second point of #10445.

See #16585.

(cherry picked from commit f6d9d7962e)
2017-04-19 17:12:32 +02:00
Vadim Zeitlin
a8533c4f7b Fix wrong example using printf() in wxDateTime overview
Use wxPrintf() and remove the c_str() call which is redundant with it instead
of using printf() which can't be used with non-POD objects like wxCStrData
returned by c_str() in wx 3.0+.

(cherry picked from commit dd134b9534)
2017-04-19 17:12:32 +02:00
Scott Talbert
c7a77f5bc8 Add autoconf support for building with SDL2
Adds support for finding SDL2 when running configure (support for actually
using SDL2 was added back in cb50bdc075).

(cherry picked from commit ed577b7099)
2017-04-18 03:53:38 +02:00
Damien Ruscoe
586e8a572c Hide empty wxCheckBoxes in wxGTK to fix display problem
Focus rectangle was still drawn around the label when it was empty with some
themes, so hide it completely to ensure this doesn't happen.

See #17443.

(cherry picked from commit fc0108ce71)
2017-04-18 03:45:23 +02:00
David Hart
48b86c20b2 Fix or work around several wxX11 problems in the widgets sample
Initialize the variables and check that they're initialized in the event
handlers which are called earlier in wxX11.

Also always use valid wxSlider flags.

Closes #17843.
2017-04-18 03:17:18 +02:00
David Hart
e1a4b7d5aa Fix use of dangling reference in wxFileSystemWatcher Unix code
Don't reference the "watch" object after possibly destroying it when handling
IN_DELETE_SELF inotify notification.

Closes #17122.

(cherry picked from commit 34d39c9dfb)
2017-04-18 03:10:18 +02:00
David Hart
07168e3d2a Make failure to remove an inotify watch a warning
Apparently this can happen when a directory is deleted just before the watch
is removed and it is impossible to avoid it, so just send a warning message so
that the program could react to this, if necessary, but don't annoy the user
with an error in this case.

See #17122.

(cherry picked from commit 6537356236)
2017-04-18 03:08:55 +02:00
Lauri Nurmi
7c540fd007 Compilation fix for narrowing conversions in XBM files in wxMotif
The same fix as in commit 3704547684 for #12575.

See https://github.com/wxWidgets/wxWidgets/pull/460

(cherry picked from commit 4cdc1f5ba8)
2017-04-15 14:32:16 +02:00
oBFusCATed
430a72fad6 Fix inserting child properties into the parent composed property (in wxPropertyGridPageState::DoInsert).
When new sub-property is added and the parent property is a container of composed values then its editor (if exists) need to be refreshed to reflect the new composed value.

Closes #16982.
2017-04-10 23:56:27 +02:00
Artur Wieczorek
a4f2f2ec6c Fixed wxPropertyGrid::DoEndLabelEdit function
When label editing is finished then property label has to be always updated. If there is a text which is cached in the corresponding cell then it also needs to be updated.

See #16982.
2017-04-10 23:56:27 +02:00
Artur Wieczorek
6575ed47a1 Fixed setting property label with wxPGproperty::SetLabel
If there is a corresponding cell containing a cached text for column 0 then this text also needs to be updated when the label is changed.

See #16982.
2017-04-10 23:56:27 +02:00
Artur Wieczorek
6b236d5d7e Prevent sending wxEVT_PG_LABEL_EDIT_ENDING events recursively, cont.
Spurious wxEVT_PG_LABEL_EDIT_ENDING events shouldn't be generated also if wxPropertyGrid::DoEndLabelEdit() function is reentered multiple times (constraint for selected column should be removed from the guard because column index is set to 1 after first reentry and no longer reflects original value stored in the event object).

Closes #16864.
2017-04-10 23:56:27 +02:00
Artur Wieczorek
3dcdbe82b3 Prevent sending wxEVT_PG_LABEL_EDIT_ENDING events recursively.
By preventing sending wxEVT_PG_LABEL_EDIT_ENDING events recursively (recursive generation can happen due to the calling wxPropertyGrid::RefreshProperty() directly or indirectly from within wxEVT_PG_LABEL_EDIT_ENDING event handler) spurious events are not sent to the application and wxPropertyGrid::DoEndLabelEdit() function is not reentered.

Closes #16864.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2017-04-10 23:56:27 +02:00
Vadim Zeitlin
1a9900a813 Fix warning about undefined __cplusplus in wx/defs.h
Check that __cplusplus is defined before testing its value to avoid warnings
when compiling C code, e.g. regex library.

Notice that in master a check for __cplusplus covering a bigger part of this
file was added to solve the same problem, but it doesn't seem like a good idea
to stop defining other symbols which had been previously defined in 3.0, so
keep this check as narrow as possible here.
2017-04-10 00:02:21 +02:00
Artur Wieczorek
f93fe544c5 Allow wxPG to take focus on the entire area even if wxPG is not a standalone control.
By default, to prevent wxPG from stealing focus from other controls, focus is moved to the grid only if it was already in one of its child controls.
When newly introduced wxPG_EX_ALWAYS_ALLOW_FOCUS flag is set then wxPG can take focus on the entire grid area (on canvas) even if focus is moved from another control.
Default wxPG behavior remains unchanged because wxPG_EX_ALWAYS_ALLOW_FOCUS flag must be explicitly set with wxPropertyGrid::SetExtraStyle function.

Closes #16993.

(cherry picked from commit 7394dd8e1f)
2017-04-10 00:02:16 +02:00
Stefan Csomor
a34b9c1e01 adding wxFALLTHROUGH to indicate intended fall through in switch statements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2017-04-07 11:42:08 -07:00
Václav Slavík
c228c55428 Fix "unknown keyboard accel" with 1-char translations
wxAcceleratorEntry::ParseAccel() incorrectly assumes that every
single-character accelerator must be a direct character code. But
that's not true, a human-friendly name for a key (e.g. "Down") may be
translated with a single character in some languages (or because a
translator decides to use a Unicode arrow…).

Amend the test to check if the character is a 7bit ASCII one. That
would be extremely unlikely to be a translation.

(cherry picked from commit 166f5c0abb)
2017-04-05 13:53:43 +02:00
Vadim Zeitlin
ed88188be7 Fix spurious assert in wxGTK wxDataViewCtrl::EditItem().
The assert in wxGtkTreeSelectionLock ctor failed after the first time this
object was created as it doesn't reset the selection function to NULL with
wxGTK2, fix this by checking for different values depending on whether it's
actually the first time we do it or not.

In the future we should just reset the selection function to NULL as it does
work in GTK+ 3, also update the comment explaining the problem to mention this.

(cherry picked from commit 24c0401e81)
2017-04-04 18:39:35 +02:00
Vadim Zeitlin
8fad217a6f Hide wxChoice before destroying it with GTK+ 3
This works around GTK+ critical error messages that we get otherwise with GTK+
since the change done in its commit 7401794de6b084fea469af297b7c144724b8492c
which appeared in 3.22.8 release and is still present in the latest version.

These messages happen because gtk_combo_box_popdown() ends up being called
during the widget destruction if it's still shown, so just hide the combobox
before destroying it to avoid them.

Closes https://github.com/wxWidgets/wxWidgets/pull/449

(cherry picked from commit 404f0f8587)
2017-04-04 07:46:34 -07:00
Paul Cornett
397e6e9e35 Fix typo: CFStringref --> CFStringRef
(cherry picked from commit 493643477c)
2017-03-24 08:35:33 -07:00
Tim Kosse
8f12eaf980 Create empty wxCFStringRef and not null one if conversion fails
If the passed string cannot be represented in the target encoding in the
wxCFStringRef constructor, create a reference to an empty string instead of a
null ref. Most users of wxCFStringRef cannot handle a null wxCFStringRef.

Closes #17825.

(cherry picked from commit a2b04536d3)
2017-03-23 14:08:55 +01:00
Paul Cornett
e4293e9e39 Avoid using stale nl_langinfo() pointer
See #17813

(cherry picked from commit a0cb7c1291)
2017-03-02 07:48:44 -08:00
Robin Dunn
6eb5943ed0 Add missing event type constants for propgrid 2017-02-20 19:36:16 -08:00
Robin Dunn
060df58bbf Add propgriddefs.h to the interface, containing macros, enums and such referenced elsewhere in the API. 2017-02-20 19:36:16 -08:00
Vadim Zeitlin
be0eb3d213 Support proportions for wxFlexGridSizer growables in XRC schema
The value of "growablerows" and "growablecols" elements is not just a
list of numbers, but a list of numbers with optional weights, specified
after a colon.

Update the XRC schema to account for the weights too.

See #17802.

(cherry picked from commit 0d73253111)
2017-02-19 15:51:15 +01:00
Paul Cornett
24604a2b5b Use spaces to avoid pasting arguments together
Don't rely on variables starting with a space, it's too fragile

(backport of b6fea21140)
2017-02-18 16:25:01 -08:00
Paul Cornett
bcb0382250 Avoid using negative width
(cherry picked from commit 95ae67d1f4)
2017-02-18 11:47:17 -08:00
Scott Talbert
dc7acca2cd Document missing wxGrid methods
Add documentation for the previously undocumented
IsCellEditControlShown(), Deselect{Col,Row,Cell}() and SetAttr().

See https://github.com/wxWidgets/wxWidgets/pull/405

(cherry picked from commit b1fd65a903)
2017-02-05 02:59:12 +01:00
Robin Dunn
c07c544720 SetSelection returns an int, not a size_t 2017-02-02 09:54:12 -08:00
Robin Dunn
732f3e5e61 Add missing wxImageHandler::SetType 2017-01-31 20:09:41 -08:00
Robin Dunn
c329fab727 wxPGVIterator does not inherit from wxObjectRefData 2017-01-23 15:01:38 -08:00
Robin Dunn
cc360cffbe wxSystemSettings does not inherit from wxObject 2017-01-23 15:01:37 -08:00
Scott Talbert
501b377435 Add support for GStreamer 1.x in Unix wxMediaCtrl implementation
Do it while keeping both 0.8 and 0.10 support, unlike the commit d0ef5d7,
which this is based on, that removed support for 0.8.

Closes https://github.com/wxWidgets/wxWidgets/pull/400
2017-01-23 13:47:50 +01:00