Commit Graph

57877 Commits

Author SHA1 Message Date
Paul Cornett
f2dbd85dac fix missing/incorrect GTK runtime version checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-15 01:29:56 +00:00
Julian Smart
a0761842f1 Ensure a small spanned column doesn't shrink its columns too much by checking for min column sizes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-14 15:33:15 +00:00
Stefan Csomor
df53ec0da4 backport, fixes #15688
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-12 16:08:43 +00:00
Vadim Zeitlin
3743ac4bc7 Afrikaans translations update from Friedel Wolff.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-11 17:26:46 +00:00
Julian Smart
991b7d1b78 Fix for occasionally missing cells in tables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-11 12:06:19 +00:00
Julian Smart
e60fe373fb Fixed overlapping text and floating objects by simplifying the available rectangle calculation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-08 10:30:39 +00:00
Julian Smart
3d60682cf5 Clicking on a floating (non-container) object no longer sets the caret position.
Double-clicking on a floating (non-container) object selects it instead of selecting a word.
Selection refresh now takes floating objects into account.
The last line of a paragraph now takes floating objects into account.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-07 15:51:01 +00:00
Julian Smart
78779cdf84 Backported r75354: Fix layout of content within a floating object by using Move and not SetPosition; prevent creeping of floating objects on layout.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-07 15:12:00 +00:00
Vadim Zeitlin
6a4a04aac7 Big Galician translation update from Nuria Andión.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-07 11:55:32 +00:00
Stefan Csomor
544957a18a backporting SDK 10.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-05 19:16:49 +00:00
Václav Slavík
f84ee5caaa wxOSX Retina fixes: wxImageList::GetSize().
wxImageList returns size of its bitmap as pixel size, i.e.  twice the
displayed screen on HiDPI screens.  Unfortunately,
wxImageList::GetSize() is used heavily in (generic) GUI drawing code,
e.g.  to properly size wxListCtrl's icon columns.  As wxImageList is
used primarily by controls, it seems reasonable to adjust for scaling
here, rather than requiring all users of the class to do it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-04 14:32:46 +00:00
Václav Slavík
973c978da1 wxOSX Retina fixes: size wxStaticBitmap and wxBitmapButton properly.
The size is expressed in logical coordinates and needs to use bitmap's
scaled size, otherwise it would appear twice as large in both
dimensions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-04 14:32:43 +00:00
Václav Slavík
09b92c87fc Fix fixed-width progress columns in generic wxDataViewCtrl.
Both native wxDVC implementations grow the progress column, the generic
one didn't.  This change fixes it and _seems_ not to break other things.
As a consequence, progress columns no longer have a 40px minimal width,
but that should be OK.

Fixes #15745.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-04 12:38:54 +00:00
Julian Smart
cd1fa15598 Applied patch #15744: wxRichTextCtrl: HitTest can't find top-level floats (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-03 18:41:30 +00:00
Vadim Zeitlin
69ff70b693 Fix crash when Destroy()-ing a TLW with a non-TLW parent.
Generalize the code in wxTopLevelWindowBase dtor checking for the children of
the TLW being destroyed pending for deletion themselves to work when the child
TLW is an indirect child, i.e. was created with a child window of this TLW as
parent and not this TLW itself.

Closes #15743.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-03 14:53:46 +00:00
Vadim Zeitlin
6c3e363cb0 Work around wrong vsscanf() declaration under HP-UX.
Under this system vsscanf() is declared as taking a non-const char* as first
argument which prevented our code using it from compiling. Wrap it in
wxCRT_VsscanfA() adding the necessary const_cast<> to fix this.

Closes #15638.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-03 13:36:23 +00:00
Václav Slavík
2ebc240bf5 Don't use native cue banners in wxTextEntry::SetHint() on XP.
The code apparently expected EM_SETCUEBANNER to return false on
pre-Vista systems (where the cue banners don't work).  This isn't the
case in practice, so check for Vista explicitly and use the generic
implementation on XP.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 17:45:51 +00:00
Václav Slavík
1ee3437ac6 Backport r75319: support for localized help menus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 17:45:47 +00:00
Vadim Zeitlin
f9450029bc Fix clicking on checkboxes in generic wxDataViewCtrl.
Back port the fix of r75329 from the trunk but without changing
GetEffectiveAlignment() visibility to avoid changing the ABI.

See #15731.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 16:34:35 +00:00
Vadim Zeitlin
66214e197b Don't change header window foreground colour in wxGenericListCtrl.
As calling wxGenericListCtrl::SetBackgroundColour() doesn't change the header
window background, don't change its foreground in SetForegroundColour()
neither.

Closes #15741.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 12:56:44 +00:00
Vadim Zeitlin
6db96277f2 Add a missing string in Slovakian translations.
Closes #15740.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 12:52:21 +00:00
Julian Smart
5c3861d6f8 Fixed #15717: wxRichTextStyleOrganiserDialog returns wxID_OK when closed with Escape key (ikamakj)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 10:38:18 +00:00
Julian Smart
7541c7cb77 Apply fix for #15734: wxRichTextCtrl: A floating wxRichTextTable's cells aren't drawn (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-02 09:06:13 +00:00
Julian Smart
ebb2f74ef5 Partial fix for #15714: Caret jumping problem in wxRichTextCtrl text selection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-28 16:50:58 +00:00
Julian Smart
b8e9bf6f9c Fix for #15716: wxRichTextCompositeObject::Dump() should also dump the object itself?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-28 16:29:59 +00:00
Julian Smart
ed8d9ad109 Fix for #15718: wxSymbolPickerDialog crashes on ampersand character
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-28 16:24:15 +00:00
Julian Smart
d15f2b7385 Fix for #15715: NULL check required in wxRichTextBuffer::SetStyleSheetAndNotify()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-28 16:23:29 +00:00
Vadim Zeitlin
485ecdf721 Fix wxCommandProcessor::IsDirty() for unsaved unmodified case.
IsDirty() still returned true even after undoing all the commands which was
wrong, as there was nothing to save in this case.

Closes #15722.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-28 13:46:28 +00:00
Vadim Zeitlin
3fb5084b31 Fix unwanted focus events when deleting a wxTreeCtrl item in wxMSW.
Disable setting focus in response to TVN_SELCHANGING when deleting an item in
a single selection control too -- this was already done in multi selection
case but not in this one, for some reason.

See #15721.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-28 12:39:06 +00:00
Vadim Zeitlin
e39fa49d7e Fix wxCHECK_MINGW32_VERSION() definition.
Include _mingw.h before testing for __MINGW32_MAJOR_VERSION as it's only
defined in that header.

Closes #15696.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-27 16:12:31 +00:00
Václav Slavík
40b6009d56 Fix OS X startup to not hang if the application doesn't get focus.
If the application launches while the parent process doesn't have an active
window, [NSApp run] won't terminate immediately, as was assumed here. Instead,
it blocks until some input arrives, e.g. clicking the Dock icon.

Work around this by adding a dummy event to the queue.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-27 15:34:49 +00:00
Vadim Zeitlin
aa63554745 Fix wxWindow::SetSizeHints() documentation.
Add the missing @overload.

Closes #15707.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-26 23:30:50 +00:00
Stefan Csomor
1c73dfa2db correct behavior in case it is still used with ShowModal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-26 14:28:44 +00:00
Stefan Csomor
27f15965e1 fixing shadowed var
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-26 14:16:53 +00:00
Paul Cornett
21ef119c89 always initialize m_statText
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-25 16:50:06 +00:00
Stefan Csomor
4f10f41433 backporting r75289
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-25 14:21:12 +00:00
Vadim Zeitlin
407c0595ff Fix multiple calls to wxSocket::Initialize() in wxMSW.
Subsequent calls didn't initialize the hidden window correctly because
wxSocket::Shutdown() unregistered the window class used for it, but
wxSocket::Initialize() still kept a pointer to the previously registered class
name.

Don't remember it any longer, unlike in the other cases where we use
wxCreateHiddenWindow(), this function is only ever going to be called once
until the class is unregistered anyhow, so it doesn't have to be static.

Closes #15701.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-25 13:41:10 +00:00
Paul Cornett
ffdde87536 avoid deprecated gtk_style_context_get_font(), closes #15697
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-24 18:07:20 +00:00
Václav Slavík
47271dd99e fix GCC warning "logical ‘or’ applied to non-boolean constant"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-24 17:20:02 +00:00
Václav Slavík
f2bbf083c6 Recognize Windows 8 and 8.1 in wxGetOsDescription().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-23 15:10:57 +00:00
Václav Slavík
458b528a35 Differentiate between WXK_UP etc. and WXK_NUMPAD_ variants in NSMenuItem code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-23 15:10:52 +00:00
Václav Slavík
2f109ac2a9 Don't add NSFunctionKeyMask to NSMenuItem modifiers.
This code probably misunderstood NSEvent documentation, where this mask is
mentioned, but setKeyEquivalentModifierMask: documentation doesn't list it as
allowed. More importantly, it causes "fn" to appear in the menu item and the
accelerator doesn't work.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-23 15:10:48 +00:00
Václav Slavík
6005b1195c Fix selection behavior on right-click in wxGTK wxDataViewCtrl.
Select the item under the cursor even when right-clicking it, because
it's expected behavior (Nautilus does it too).

Fixes #13531.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-23 10:56:48 +00:00
Václav Slavík
d77f02756b Allow NULL model in wxGTK's wxDataViewCtrl.
This is consistent with other ports.

Fixes #14616.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-23 10:56:39 +00:00
Julian Smart
e798e85239 Improved equality test to ignore invalid attributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-21 20:54:38 +00:00
Julian Smart
602a0d1260 Corrected bugs with text effects comparison and style removal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-21 15:25:53 +00:00
Václav Slavík
b4900d9341 Add symbols added in r75258 to version-script.in.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-21 13:51:20 +00:00
Vadim Zeitlin
5e97ee41d7 Update version to 3.0.1.
And regenerate everything.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-21 13:49:53 +00:00
Vadim Zeitlin
8319046b9c Correct the name of Doxyfile containing the version.
Use the correct file name in the version update script and version update
instructions, it is called just Doxyfile and not Doxyfile_inc now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-21 13:49:25 +00:00
Václav Slavík
f53c2ae044 Override ClearColumns() in wxDataViewListCtrl.
Without this, the associated store's columns would be out of sync,
causing asserts next time a column is appended.

Fixes #14952.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-21 13:11:35 +00:00