Commit Graph

58967 Commits

Author SHA1 Message Date
Pete Bannister
d4ae8219d9 Fix rendering of owner-drawn multi-column menus in wxMSW
Compute the item rectangle bounds correctly for the items in non-first column.

See #17072.

(cherry picked from commit 61083f4871)
2016-09-09 23:46:32 +02:00
Robin Dunn
24b506b66e Merge branch 'propgrid' into wxPy-3.0-branch 2016-09-02 22:38:22 -07:00
Robin Dunn
dfcffe7783 Add missing methods in wxGridCellAttr 2016-09-02 10:49:21 -07:00
Robin Dunn
354897cd13 Fix wxPropertyGridPage declaration 2016-08-31 16:18:15 -07:00
Paul Cornett
48841ad703 Remove incorrect g_object_ref on wxMenuBar
Should probably have been removed as part of 9ff9d30 (r55288)

(backport of 7986ccf039)
2016-08-31 10:45:49 -07:00
Paul Cornett
786f778b71 Save and restore GtkStyleContext in a few places that were not doing it
Does not fix any known problem, but seems prudent

(backport of 5d04f41d47)
2016-08-31 10:39:57 -07:00
Paul Cornett
ed54a746b0 Remove run-time dependencies on GTK3 backends for Wayland, Mir, Broadway
This allows running with a GTK+ library that was built with different backends
than the one wxWidgets was built with. Since GTK3 provides no way to determine
the backends available at run-time, avoid referencing symbols in the backends
by checking the type name of the GdkDisplay, on the assumption that they are
unlikely to ever be changed. The X11 backend is still required at run-time if
it was available at build-time, although this dependency could also be removed.

(cherry picked from commit 1ba59a410f)
2016-08-31 10:25:34 -07:00
Stefan Csomor
817bd0076f Don't include QuickTime headers unnecessarily
This should fix compilation under macOS Sierra (10.12).

See #17639.

(cherry picked from commit f6a2d1caef)
2016-08-27 18:02:58 +02:00
Robin Dunn
1d5119acf5 Add the other property classes so wxPython can see them. 2016-08-25 21:01:03 -07:00
Robin Dunn
ec4fd8b553 SetValueToUnspecified is not pure virtual 2016-08-24 18:50:52 -07:00
samurajj
e1e9482005 Fix error reporting for wxCopyFile() under Unix
Check if copying file actually succeeded, any IO errors that could happen in
it were previously just completely ignored.

See #17638.

(cherry picked from commit a93dcc531c)
2016-08-22 14:18:55 +02:00
Vadim Zeitlin
f252e56e88 Fix wxBitmap ctor from XBM in wxGTK
Width and height were exchanged in the loops, so the conversion code didn't
work correctly and overflowed the pixel buffer (due to extra padding in the
row stride) for non-square bitmaps. It also resulted in a completely wrong
bitmap appearance, but somehow this managed to go unnoticed, unlike the memory
errors.

See #17633.

(cherry picked from commit f9740e8180)
2016-08-21 14:49:07 +02:00
Andy Robinson
3550b50461 Fix format specifiers used for size_t values in wxFileConfig
Fix assert failures when reporting errors in config files under 64 bit systems
where "%d" can't be used to output a "size_t" value.

See #17630.

(cherry picked from commit 75e254fce7)
2016-08-19 22:46:10 +02:00
Robin Dunn
dcc23ceba8 Change ~wxPGChoicesData from private to protected 2016-08-13 14:51:59 -07:00
Robin Dunn
05fa348b20 Add more missing classes and methods in propgrid interface 2016-08-13 13:33:16 -07:00
Robin Dunn
b6c66f9c55 Add more missing classes 2016-08-13 13:33:16 -07:00
Robin Dunn
a5c4577a4a Add wxPGPaintData and wxPGCellRenderer 2016-08-13 13:33:16 -07:00
Robin Dunn
ea65f387f6 Remove wxDEPRECATED decorator from doc 2016-08-13 13:33:16 -07:00
Robin Dunn
b82af6885a some formatting tweaks for propgrid 2016-08-13 13:33:16 -07:00
Robin Dunn
0e333f336b Add missing methods 2016-08-10 19:22:34 -07:00
Scott Talbert
238a948ed0 Fix wxNativeFontInfo::InitFromFont() when using Pango
Use pango_font_description_copy() to make a lossless copy of the original font
instead of doing it using wxWidgets API which is less direct and, in addition,
currently is completely broken as SetXXX() methods don't create the Pango font
description if it doesn't exist as they ought to.

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

(cherry picked from commit dbe2a1c2fd)
2016-08-10 15:05:10 +02:00
Scott Talbert
a19e512e80 Fix the stop function of wxFontEnumerator for wxGTK
In a wxFontEnumerator, if false is returned from OnFacename() or
OnFontEncoding(), the enumeration is supposed to stop.  This was not happening
on wxGTK.

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

(cherry picked from commit 3572c2c654)
2016-08-08 14:07:46 +02:00
Robin Dunn
eaf70ea3cb wxPalette::Create should return true 2016-08-04 22:47:44 -07:00
Robin Dunn
8d543d6d3c Add setter methods to wxListEvent 2016-08-03 16:38:32 -07:00
Robin Dunn
73fca4c37d Revert my old hack for a dataformat issue on OSX, it caused more troubles than it fixes. 2016-08-02 15:04:29 -07:00
Robin Dunn
fe65419be3 Fix typo 2016-08-02 14:58:17 -07:00
David Costanzo
b4e2f93248 Don't handle special keys as characters in wxSTC in non-Unicode build
Correct the check for non-special keys when wxUSE_UNICODE==0.

Closes #17598.

(cherry picked from commit ab092c8d13)
2016-07-17 14:17:40 +02:00
Vadim Zeitlin
bca90fc95f Recognize wxAUI_NB_MIDDLE_CLICK_CLOSE in wxAuiNotebook XRC handler
This style was apparently just forgotten, so add it too.

See #17597.

(cherry picked from commit 63944ae9bd)
2016-07-17 14:06:55 +02:00
Robin Dunn
24d5ff7dc1 Change parameter name to reduce confusion in wxPython docs. 2016-07-15 15:41:10 -07:00
Robin Dunn
b93215eddd Merge branch 'WX_3_0_BRANCH' into wxPy-3.0-branch 2016-07-14 11:53:26 -07:00
Robin Dunn
5f86a4d86d Add lots of missing methods in wxAboutDialogInfo 2016-07-14 11:48:57 -07:00
Robin Dunn
22f9852519 WX_CLEAR_LIST in wxHtmlWindow::CleanUpStatics is hard-crashing in wxHtmlWindow::CleanUpStatics, perhaps due to a different cleanup order?? Anyway, switching to .Clear() avoids the crash and does nearly the same. Since it is in code that is called on exit it shouldn't matter either way. 2016-07-13 10:24:58 -07:00
Robin Dunn
64b4ce5794 Add missing GetParser method 2016-07-13 10:21:15 -07:00
Paul Cornett
3e9bd07e3f Be more conservative in avoiding Cairo's maximum coordinate limit.
Fixes wxGCDC::Clear().
See #17584

(cherry picked from commit fa54e1af15)
2016-07-08 22:59:19 -07:00
Robin Dunn
3fcded484e Add missing parameter name 2016-07-07 21:01:29 -07:00
Robin Dunn
ae0c1ed0dc typo 2016-07-06 18:46:20 -07:00
Robin Dunn
f4f34a7ef1 Use "clientData" parameter name for consistency. 2016-07-05 11:17:42 -07:00
Robin Dunn
6f4dd7ff30 fix missing ; 2016-07-04 22:33:48 -07:00
Vadim Zeitlin
0264b2218c Use equally-sized buttons in wxMSW horizontal toolbars
Only use TBSTYLE_AUTOSIZE, adjusting each button to the size it really needs,
for the toolbars with wxTB_HORZ_LAYOUT style as they don't have any uniform
button size anyhow.

(cherry picked from commit 967bdbf994)
2016-06-30 19:13:30 +02:00
Robin Dunn
c1a1a13032 Add more stuff missing from the ribbon interface 2016-06-28 17:11:37 -07:00
Robin Dunn
95bff5496b Merge branch 'WX_3_0_BRANCH' into wxPy-3.0-branch 2016-06-28 15:46:11 -07:00
Robin Dunn
1b1657e2d8 Fix typo 2016-06-21 18:21:27 -07:00
Robin Dunn
e93f6dbc0b Fix typos and missing items in the ribbon interface definitions 2016-06-21 14:07:56 -07:00
Paul Cornett
722ff6a210 Avoid clearing selection for mouse button up event which is not over an item, see #17547
(cherry picked from commit e9fdda8638)
2016-06-16 07:25:24 -07:00
Dimitri Schoolwerth
6c6522736d Make a public free function private
In cfe9625a0d the free function
MSWShouldBeChecked was introduced in toolbar.cpp and mistakenly made
inline. Fix by making it static instead.

(cherry picked from commit 54e6f6e7b8)
2016-06-08 01:32:33 +02:00
Artur Wieczorek
f82f74d09b Fix disabling control tools in wxMSW wxToolBar
Tools containing controls should be enabled/disabled in a different way from
the button tools in wxToolBar::DoEnableTool(). The control and its label (if
any) need to be explicitly enabled/disabled for wxToolBarBase::EnableTool() to
work properly.

Closes #17346.

(cherry picked from commit 68eae6ba5b)
2016-06-08 01:30:04 +02:00
Vadim Zeitlin
15507c0ab4 Suppress harmless unused parameter warnings in release build
Use WXUNUSED_UNLESS_DEBUG() for the parameters used only inside debug
checks.

See #16829.

(cherry picked from commit 6c3dfd113b)
2016-06-08 01:25:56 +02:00
Vadim Zeitlin
cfe9625a0d Fix checked disabled wxToolBar tools with custom images in wxMSW
Windows doesn't use the correct image for checked disabled tools, at least
up to and including Windows 7, so don't put such tools in the "checked"
state at all: this doesn't matter as they are disabled anyhow, but shows
the correct image for them.

See #12989.

(cherry picked from commit 29cd13cc8f)
2016-06-08 01:20:18 +02:00
Andreas Falkenhahn
fd95ab5615 Refresh wxListCtrl with wxLC_HRULES in SetColumnWidth() in wxMSW
This is necessary to avoid corrupted rules display after changing the column
width.

Closes #17158.

(cherry picked from commit 02c8973a57)
2016-06-07 23:37:20 +02:00
Kevin B. McCarty
fa19bfa239 Fix race condition in Unix wxExecute() if child exited too quickly.
Check if the child has already finished before starting waiting for it.

Closes #16661.

(cherry picked from commit 1298f5970b)
2016-06-07 23:35:34 +02:00