]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoFinnish translations update from Jani Kinnunen.
Vadim Zeitlin [Wed, 22 Aug 2012 21:22:04 +0000 (21:22 +0000)] 
Finnish translations update from Jani Kinnunen.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoLatvian translation improvements
Julian Smart [Fri, 17 Aug 2012 09:09:21 +0000 (09:09 +0000)] 
Latvian translation improvements

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCorrect a missing apostrophe in a doc string.
Robin Dunn [Thu, 16 Aug 2012 00:42:40 +0000 (00:42 +0000)] 
Correct a missing apostrophe in a doc string.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse the popup's background as a border on wxGTK too.
Robin Dunn [Thu, 16 Aug 2012 00:42:35 +0000 (00:42 +0000)] 
Use the popup's background as a border on wxGTK too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix bug in ribbon bar label size calculation.
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:40 +0000 (23:34 +0000)] 
Fix bug in ribbon bar label size calculation.

Due to an off by 1 error in wxString::Mid() call, the size computed was too
small and hence the label could have been not displayed at all.

Fix this and also replace Mid(0, n) with a more clear Left(n) call.

Closes #14566.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd page highlighting to wxRibbonBar.
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:36 +0000 (23:34 +0000)] 
Add page highlighting to wxRibbonBar.

Allow visually highlighting a page to make it more noticeable to the user.

Closes #14527.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix AUI appearance when a maximized pane becomes floating.
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:31 +0000 (23:34 +0000)] 
Fix AUI appearance when a maximized pane becomes floating.

The other panes were not previously restored, resulting in bad appearance and
behaviour. Do restore them now before making the previous maximized pane
floating.

Closes #14460.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRespect item max sizes in wxBoxSizer.
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:27 +0000 (23:34 +0000)] 
Respect item max sizes in wxBoxSizer.

Don't give more space than the max size, if set, to wxBoxSizer elements.

Closes #11497.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo real changes, just add wxSizerItem::AddBorderToSize() helper.
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:22 +0000 (23:34 +0000)] 
No real changes, just add wxSizerItem::AddBorderToSize() helper.

Factor out this function from GetMinSizeWithBorder() as it will be used for
max size too in a next commit.

See #11497.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoHonour window min and max sizes in wxWindow::GetBestSize().
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:18 +0000 (23:34 +0000)] 
Honour window min and max sizes in wxWindow::GetBestSize().

The best size of the window should be at least as large as its min size and
less than its max size. This allows to override the windows own best size
determination with an explicit SetMinSize() or SetMaxSize() call.

See #11497.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxSize::DecToIfSpecified() helper.
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:15 +0000 (23:34 +0000)] 
Add wxSize::DecToIfSpecified() helper.

This is similar to DecTo() but can be used even if the wxSize argument has
some components set to -1.

Notice that we don't need IncToIfSpecified() because IncTo() already works
correctly anyhow in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't generate events from wxSpinCtrl::SetRange() in wxMSW.
Vadim Zeitlin [Wed, 15 Aug 2012 23:34:10 +0000 (23:34 +0000)] 
Don't generate events from wxSpinCtrl::SetRange() in wxMSW.

Other ports don't send wxEVT_COMMAND_SPINCTRL_UPDATED from SetRange() even if
the value changed because it was adjusted to fit into the new range and this
makes sense as this change is not due to a user action, so don't send this
event under wxMSW neither.

Also add a unit test checking for this behaviour.

Closes #14583.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRestore the use of wxListCtrl in report view in wxListbook.
Vadim Zeitlin [Wed, 15 Aug 2012 11:34:46 +0000 (11:34 +0000)] 
Restore the use of wxListCtrl in report view in wxListbook.

This reverts r71965 for wxMSW as the list mode there doesn't work correctly if
there are sufficiently many items: the native control insists on laying them
out in multiple columns which is inappropriate for wxListbook, so use report
mode for horizontal wxListbooks. Do use the list mode in the vertical case as
we do want to have multiple columns -- and not rows -- then.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFixes for forwarding events to parent in wxGenericListCtrl.
Vadim Zeitlin [Wed, 15 Aug 2012 11:34:43 +0000 (11:34 +0000)] 
Fixes for forwarding events to parent in wxGenericListCtrl.

Set the event object and the event ID correctly, i.e. to the values
corresponding to the main wxListCtrl itself, when forwarding mouse and
keyboard events from wxListMainWindow to wxListCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofix some compile warnings
Robin Dunn [Tue, 14 Aug 2012 07:13:39 +0000 (07:13 +0000)] 
fix some compile warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate the wxVersionInfo, and don't forget to initialize the new attributes of the...
Robin Dunn [Tue, 14 Aug 2012 05:55:23 +0000 (05:55 +0000)] 
Update the wxVersionInfo, and don't forget to initialize the new attributes of the event class.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate stc interface docs
Robin Dunn [Tue, 14 Aug 2012 05:55:15 +0000 (05:55 +0000)] 
Update stc interface docs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate new names to conform, add new event types and event attributes, etc.
Robin Dunn [Tue, 14 Aug 2012 05:55:08 +0000 (05:55 +0000)] 
Update new names to conform, add new event types and event attributes, etc.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMinimal tweaks and additions to get wxSTC compiling successfully again, with Scintill...
Robin Dunn [Tue, 14 Aug 2012 05:14:46 +0000 (05:14 +0000)] 
Minimal tweaks and additions to get wxSTC compiling successfully again, with Scintilla 3.21

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofix a couple typos
Robin Dunn [Tue, 14 Aug 2012 05:14:35 +0000 (05:14 +0000)] 
fix a couple typos

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agorebake make/project files for new scintilla
Robin Dunn [Tue, 14 Aug 2012 05:14:27 +0000 (05:14 +0000)] 
rebake make/project files for new scintilla

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInitial copy of Scintilla 3.21 code
Robin Dunn [Tue, 14 Aug 2012 05:14:09 +0000 (05:14 +0000)] 
Initial copy of Scintilla 3.21 code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInterface fixes for Phoenix
Robin Dunn [Tue, 14 Aug 2012 05:11:59 +0000 (05:11 +0000)] 
Interface fixes for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoforwarding style changes to documentViews, see #14578
Stefan Csomor [Sun, 12 Aug 2012 12:58:42 +0000 (12:58 +0000)] 
forwarding style changes to documentViews, see #14578

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix typo in an example of Bind()-ing a function in the event overview.
Vadim Zeitlin [Sat, 11 Aug 2012 23:09:36 +0000 (23:09 +0000)] 
Fix typo in an example of Bind()-ing a function in the event overview.

Functors must be passed by const reference, not pointer.

Closes #14572.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUpdate the icon of a parent item without children in wxDataViewCtrl.
Vadim Zeitlin [Sat, 11 Aug 2012 23:09:33 +0000 (23:09 +0000)] 
Update the icon of a parent item without children in wxDataViewCtrl.

Ensure that a parent item that doesn't have any children any more isn't left
with a "-" expander icon, it can't be collapsed any more but only expanded
again (possibly adding children under it dynamically). This results in better
behaviour in e.g. the last page of the dataview sample where the container
item remained with a "+" icon even after its both children were deleted.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoReally delete the item in wxDataViewTreeStore::DeleteItem().
Vadim Zeitlin [Sat, 11 Aug 2012 23:09:29 +0000 (23:09 +0000)] 
Really delete the item in wxDataViewTreeStore::DeleteItem().

For some incomprehensible reason only child branches were ever deleted from
the list of parents children in DeleteItem(), not simple tree items. This
meant that reexpanding a node after deleting all its children showed the
previously "deleted" children again.

Closes #14574.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadding SetLabel -> SetTitle redirects, solves missing title updates using wxDocument...
Stefan Csomor [Sat, 11 Aug 2012 13:16:56 +0000 (13:16 +0000)] 
adding SetLabel -> SetTitle redirects, solves missing title updates using wxDocument/wxView

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove wxT from prototype
Robin Dunn [Fri, 10 Aug 2012 04:57:35 +0000 (04:57 +0000)] 
Remove wxT from prototype

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAllow --mac_universal_binary to use a "default" value.
Robin Dunn [Thu, 9 Aug 2012 16:54:24 +0000 (16:54 +0000)] 
Allow --mac_universal_binary to use a "default" value.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd documentation for wxPrintAbortDialog since it is now documented as a return value...
Robin Dunn [Thu, 9 Aug 2012 16:47:48 +0000 (16:47 +0000)] 
Add documentation for wxPrintAbortDialog since it is now documented as a return value type.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCompilation fix for r72307.
Václav Slavík [Thu, 9 Aug 2012 16:16:42 +0000 (16:16 +0000)] 
Compilation fix for r72307.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoShow progress of printing in wxMSW.
Václav Slavík [Thu, 9 Aug 2012 15:52:15 +0000 (15:52 +0000)] 
Show progress of printing in wxMSW.

Add the number of the page being printed as well as the total to the
wxMSW printing progress window. Improved the layout and fixed some i18n
issues in the process.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix crash when canceling printing in wxMSW.
Václav Slavík [Thu, 9 Aug 2012 15:52:11 +0000 (15:52 +0000)] 
Fix crash when canceling printing in wxMSW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoReturn wxPrintAbortDialog from CreateAbortWindow().
Václav Slavík [Thu, 9 Aug 2012 15:52:08 +0000 (15:52 +0000)] 
Return wxPrintAbortDialog from CreateAbortWindow().

Instead of returning a generic wxWindow*, return the type actually used.
It was part of the public header already, but not used in any publicly
visible way.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCreate wxPrintAbortDialog more sensibly.
Václav Slavík [Thu, 9 Aug 2012 15:52:04 +0000 (15:52 +0000)] 
Create wxPrintAbortDialog more sensibly.

Instead of having an empty constructor and filling the dialog with
controls from outside, do the work in the constructor.

This changes the meaning of ctor's 'title' argument, but this class'
terrible API made it unusable for direct use anyway, so it doesn't seem
to be harmful.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosilence GCC warning suggesting parentheses
Paul Cornett [Tue, 7 Aug 2012 16:43:56 +0000 (16:43 +0000)] 
silence GCC warning suggesting parentheses

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake the modal print preview window behave like a modal dialog.
Václav Slavík [Tue, 7 Aug 2012 10:12:09 +0000 (10:12 +0000)] 
Make the modal print preview window behave like a modal dialog.

It's unexpected for a modal dialog window to show up in the taskbar as
app's another window. It also shouldn't be possible to minimize a modal
window, because it's very confusing when a window is unresponsive
without a clear reason, because the modal child is hidden in the
taskbar.

Set wxFRAME_NO_TASKBAR and remove wxMINIMIZE_BOX to fix this. Do it only
for wxPreviewFrame_AppModal.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't crash in wxBitmap::AllocExclusive().
Václav Slavík [Mon, 6 Aug 2012 12:28:58 +0000 (12:28 +0000)] 
Don't crash in wxBitmap::AllocExclusive().

Just use the usual pattern, instead of abusing existing m_refData. In
addition to being cleaner and easier to follow, it also has the benefit
of not crashing when cloning ref data into an UnRef()ed bitmap from
AllocExclusive().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoA better fix for wxHash{Map,Set} with g++ 4.7.
Vadim Zeitlin [Mon, 6 Aug 2012 11:06:45 +0000 (11:06 +0000)] 
A better fix for wxHash{Map,Set} with g++ 4.7.

This reverts r70556, i.e. removes the scope operators added by it to all
WX_DECLARE_HASH_{MAP,SET} macros, and implements a workaround for the problem
due to the use of empty base class optimization in g++ 4.7 standard library
implementations inside the macros themselves by prepending the hasher and
comparator classes with explicit "struct".

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxAutomationObject compilation in PCH-less build.
Vadim Zeitlin [Sun, 5 Aug 2012 22:44:31 +0000 (22:44 +0000)] 
Fix wxAutomationObject compilation in PCH-less build.

Don't use LCID in a public header, windows.h might not be included. Use WXLCID
stand-in instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix uniconizing hidden top level windows in wxMSW.
Vadim Zeitlin [Sun, 5 Aug 2012 22:44:26 +0000 (22:44 +0000)] 
Fix uniconizing hidden top level windows in wxMSW.

wxTLW wasn't properly restored if Iconize(false) was called while the window
was hidden.

Fix this by adding yet another special case to wxTopLevelWindowMSW::Show().
This makes it even less comprehensible than before but there doesn't seem to
be any obvious way to simplify this code without totally changing it.

Closes #14539.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix the checkbox cell size in generic wxDataViewToggleRenderer.
Vadim Zeitlin [Sun, 5 Aug 2012 22:44:21 +0000 (22:44 +0000)] 
Fix the checkbox cell size in generic wxDataViewToggleRenderer.

r62940 fixed an appearance problem with the checkboxes in wxDataViewCtrl but
introduced another one: as the checkbox was now always drawn in the entire
cell rectangle, the cell alignment was not taken into account any more.

Fix this by only increasing the checkbox rectangle up to the required minimal
size but not any more.

Closes #14504.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd webview library in MSVC-specific setup.h.
Vadim Zeitlin [Sun, 5 Aug 2012 22:44:18 +0000 (22:44 +0000)] 
Add webview library in MSVC-specific setup.h.

wxNO_WEBVIEW_LIB was documented but not implemented: webview library was never
linked in implicitly at all. Fix this by adding the missing #pragma to
msvc/wx/setup.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOptimization: skip 0-sized cells in wxGrid::CalcCellsExposed().
Vadim Zeitlin [Fri, 3 Aug 2012 15:36:25 +0000 (15:36 +0000)] 
Optimization: skip 0-sized cells in wxGrid::CalcCellsExposed().

There is no need to compute intersections with 0-sized cells, skip them to
speed up refresh of big grids.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove unnecessary statement from the grid sample.
Vadim Zeitlin [Fri, 3 Aug 2012 15:36:21 +0000 (15:36 +0000)] 
Remove unnecessary statement from the grid sample.

No real changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake wxGraphicsContext::GetSize() const.
Vadim Zeitlin [Fri, 3 Aug 2012 13:05:11 +0000 (13:05 +0000)] 
Make wxGraphicsContext::GetSize() const.

Closes #14556.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake wxRect2D::Get{Position,Size}() const.
Vadim Zeitlin [Fri, 3 Aug 2012 12:50:03 +0000 (12:50 +0000)] 
Make wxRect2D::Get{Position,Size}() const.

Accessors should be const.

Closes #14555.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRevert change that installs the wx/gtk/dc.h header file, since we no longer need...
Robin Dunn [Fri, 3 Aug 2012 03:57:06 +0000 (03:57 +0000)] 
Revert change that installs the wx/gtk/dc.h header file, since we no longer need wxDCImpl classes to be public.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd the ability to trigger a print from JavaScript for the OSX backend of the wxWebVi...
Robin Dunn [Fri, 3 Aug 2012 03:56:59 +0000 (03:56 +0000)] 
Add the ability to trigger a print from JavaScript for the OSX backend of the wxWebView control.  Closes #14241

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd the ability to trigger a print from JavaScript for the old wxWebKitCtrl.
Robin Dunn [Fri, 3 Aug 2012 03:56:54 +0000 (03:56 +0000)] 
Add the ability to trigger a print from JavaScript for the old wxWebKitCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoEnable the wxMediaCtrl backend for wxOSX-cocoa in the build and fix some bugs that...
Robin Dunn [Thu, 2 Aug 2012 20:25:16 +0000 (20:25 +0000)] 
Enable the wxMediaCtrl backend for wxOSX-cocoa in the build and fix some bugs that were causing it to not send the EVT_MEDIA_LOADED events and to not have a valid best size set.  Closes #13065

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoHave wxDCImpl::GetHandle return NULL by default instead of being pure virtual.
Robin Dunn [Thu, 2 Aug 2012 20:25:06 +0000 (20:25 +0000)] 
Have wxDCImpl::GetHandle return NULL by default instead of being pure virtual.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremove unused OSX includes
Paul Cornett [Thu, 2 Aug 2012 16:37:09 +0000 (16:37 +0000)] 
remove unused OSX includes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxGCDC::Clear() for Cairo, and possibly MSW.
Paul Cornett [Thu, 2 Aug 2012 16:25:14 +0000 (16:25 +0000)] 
Fix wxGCDC::Clear() for Cairo, and possibly MSW.
Maximum positive coordinate Cairo can handle is 2^23 - 1.
Also convert coordinates to logical so it works right with modified origin or scale.
See #14529

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd ctors for wxFileSystemWatcherEvent
Robin Dunn [Thu, 2 Aug 2012 05:38:39 +0000 (05:38 +0000)] 
Add ctors for wxFileSystemWatcherEvent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just fix typos in comments in wxOSX files.
Vadim Zeitlin [Wed, 1 Aug 2012 22:05:48 +0000 (22:05 +0000)] 
No changes, just fix typos in comments in wxOSX files.

Closes #14549, #14552.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUncomment and improve wxFileName::CreateTempFileName() documentation.
Vadim Zeitlin [Tue, 31 Jul 2012 16:49:42 +0000 (16:49 +0000)] 
Uncomment and improve wxFileName::CreateTempFileName() documentation.

Most of CreateTempFileName() documentation was commented out in r57994 for
some reason, uncomment it back and also improve it.

Closes #14545.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix comparisons of char and wchar_t with wxUniChar[Ref].
Vadim Zeitlin [Tue, 31 Jul 2012 16:49:36 +0000 (16:49 +0000)] 
Fix comparisons of char and wchar_t with wxUniChar[Ref].

Comparisons didn't work correctly in the other direction as they were not
reversed as needed. Fix this by adding wxDEFINE_COMPARISON_REV() macro which
defines comparisons in terms of the reverse operations and use it for both
wxUniChar and wxUniCharRef.

Closes #14547.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxKeyEvent::m_uniChar for EVT_CHAR for native controls in wxGTK.
Vadim Zeitlin [Tue, 31 Jul 2012 11:29:00 +0000 (11:29 +0000)] 
Fix wxKeyEvent::m_uniChar for EVT_CHAR for native controls in wxGTK.

It was mistakenly set to the same value as in EVT_KEY_DOWN event but, just as
m_keyCode, it may be different for EVT_CHAR.

Use gdk_keyval_to_unicode() to set it correctly instead of inheriting
EVT_KEY_DOWN value.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd an option to use wxTextCtrl as input window in keyboard sample.
Vadim Zeitlin [Tue, 31 Jul 2012 11:09:00 +0000 (11:09 +0000)] 
Add an option to use wxTextCtrl as input window in keyboard sample.

Keyboard handling is subtly different in wxGTK for native controls and generic
wxWindows so add a way to test both of them in the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAllow setting LCID used by wxAutomationObject.
Vadim Zeitlin [Tue, 31 Jul 2012 10:31:55 +0000 (10:31 +0000)] 
Allow setting LCID used by wxAutomationObject.

Default user-locale-dependent LCID may be inappropriate for some situations,
notably Microsoft Excel uses localized formula names for non-English LCIDs.
So add a way to change the LCID to use at wxAutomationObject level while
preserving the old behaviour by default.

Closes #14540.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse compatibility_iterator instead of "Node*" in wxWinCE toolbar code.
Vadim Zeitlin [Tue, 31 Jul 2012 10:31:48 +0000 (10:31 +0000)] 
Use compatibility_iterator instead of "Node*" in wxWinCE toolbar code.

This allows the code to compile in all build configurations.

Closes #14541.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just fix some typos in wxDFB comments.
Vadim Zeitlin [Tue, 31 Jul 2012 10:31:42 +0000 (10:31 +0000)] 
No changes, just fix some typos in wxDFB comments.

Closes #14538.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse (newly) added wxStaticCastVariantData() to fix wxNO_RTTI build.
Vadim Zeitlin [Mon, 30 Jul 2012 19:16:30 +0000 (19:16 +0000)] 
Use (newly) added wxStaticCastVariantData() to fix wxNO_RTTI build.

Don't define wxDynamicCastVariantData if RTTI is disabled and don't use it in
wxConvertVariantToOle() code as we don't really need it there anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd expand/collapse button to wxRibbonBar.
Vadim Zeitlin [Mon, 30 Jul 2012 17:53:36 +0000 (17:53 +0000)] 
Add expand/collapse button to wxRibbonBar.

This allows the user to toggle the ribbon bar visibility.

Closes #14530.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix the size of the buffer passed to wxTmemcpy() in wxTextDataObject.
Vadim Zeitlin [Mon, 30 Jul 2012 11:39:08 +0000 (11:39 +0000)] 
Fix the size of the buffer passed to wxTmemcpy() in wxTextDataObject.

This corrects fatal bug introduced in r72259: we must not multiply the string
length by sizeof(wxChar) as wxTmemcpy() does this internally.

See #14444.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoTranslate wxTextDataObject to/from native EOL format.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:50 +0000 (22:08 +0000)] 
Translate wxTextDataObject to/from native EOL format.

The text data should use CR LF EOLs under Windows but the data inside the
program typically has only LF EOLs, so translate between them automatically in
wxTextDataObject.

Closes #14444.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo real changes, just use accessors in wxTextDataObject.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:46 +0000 (22:08 +0000)] 
No real changes, just use accessors in wxTextDataObject.

Use {Set,Get}Text() instead of using m_text directly in wxTextDataObject as
these virtual methods overridable and should be called in case the class
doesn't actually use m_text for its storage at all.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoSupport wxID_HELP_{INDEX,SEARCH} and wxID_MDI_WINDOW_XXX in XRC.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:42 +0000 (22:08 +0000)] 
Support wxID_HELP_{INDEX,SEARCH} and wxID_MDI_WINDOW_XXX in XRC.

Add missing wxStandardID enum elements to AddStdXRCID_Records().

Also add blank lines to make the code in this function align with the enum
declaration to make side-by-side comparison easier.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix bug in wxNumberFormatter::ToString() for negative numbers.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:37 +0000 (22:08 +0000)] 
Fix bug in wxNumberFormatter::ToString() for negative numbers.

Don't include the possible leading sign in the span of digits to be grouped as
this gave nonsensical strings such as "-,123" when adding thousands separators
to "123".

Closes #14526.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove workaround for slow scrolling in wxStyledTextCtrl.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:31 +0000 (22:08 +0000)] 
Remove workaround for slow scrolling in wxStyledTextCtrl.

We don't need to drop mouse wheel events coming too fast after the previous
commit as now scrolling in wxStyledTextCtrl works quickly enough.

Closes #9057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove unnecessary Update() in wxStyledTextCtrl scrolling code.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:24 +0000 (22:08 +0000)] 
Remove unnecessary Update() in wxStyledTextCtrl scrolling code.

Calling Update() every time ScrollText() dramatically slowed down scrolling
and doesn't seem to be necessary, so remove it.

See #9057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake keyboard sample output less confusing.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:21 +0000 (22:08 +0000)] 
Make keyboard sample output less confusing.

Warn if key presses occur when the input window doesn't have focus as the
usual key events are not generated then which could be understood as a bug in
the sample instead of the correct result.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoGenerate clipboard events for wxComboBox in wxGTK too.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:15 +0000 (22:08 +0000)] 
Generate clipboard events for wxComboBox in wxGTK too.

These events were only generated for wxTextCtrl but should be sent for
non-readonly wxComboBox too, so refactor the code to allow its reuse from
wxComboBox.

Also add EVT_TEXT_PASTE handlers for both controls to the widgets sample for
testing.

Closes #14520.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRevert HasModifiers() change in behaviour, add HasAnyModifiers().
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:09 +0000 (22:08 +0000)] 
Revert HasModifiers() change in behaviour, add HasAnyModifiers().

In 2.8 wxKeyEvent::HasModifiers() returned false if (only) Shift was pressed
as it tested for Control and Alt only but when it was moved to wxKeyboardState
in r55745 it started checking for all modifiers as this made more sense now
that it was used by wxMouseEvent. However it broke existing code using it,
including in wxWidgets itself (in wxTreeCtrl), so revert it now and add
HasAnyModifiers() that does check for all modifiers, including Shift.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd a wxGTK-specific function to set wxNotificationMessage icon name.
Vadim Zeitlin [Sun, 29 Jul 2012 22:07:06 +0000 (22:07 +0000)] 
Add a wxGTK-specific function to set wxNotificationMessage icon name.

It's trivial to use a stock icon with the given name in wxGTK with libnotify,
so provide a way to do it. However this is not as simple as that in other
implementations (notably Windows), so make it private to this port for now.

In the future we should try to support arbitrary wxIcons as well as extend
wxIconLocation to support FreeDesktop stock icon names.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix installed wx-config broken by r72205.
Václav Slavík [Sun, 29 Jul 2012 08:52:52 +0000 (08:52 +0000)] 
Fix installed wx-config broken by r72205.

In an attempt to fix DESTDIR support on platforms without symbolic
links, this commit completely broke the wx-config symlink created by
"make install" everywhere (unless you were insane enough to use
"--prefix=/", that is): $(libdir) is absolute path and so using
../$(libdir) has no chance of working.

Fixed by using `basename $(libdir)`. This is still unsatisfactory,
because it assumes that $(libdir) and $(bindir) are at the same level in
the filesystem -- which, while usually true, is by no means guaranteed.
But at least this works most of the time.

See #14517.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd GetHandle for wxGnomePrinterDCImpl
Robin Dunn [Sat, 28 Jul 2012 21:52:37 +0000 (21:52 +0000)] 
Add GetHandle for wxGnomePrinterDCImpl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxDC::GetHandle support for wxGTK
Robin Dunn [Sat, 28 Jul 2012 19:31:18 +0000 (19:31 +0000)] 
wxDC::GetHandle support for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxDC::GetHandle support for wxMSW
Robin Dunn [Sat, 28 Jul 2012 19:31:09 +0000 (19:31 +0000)] 
wxDC::GetHandle support for wxMSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdding wxDC::GetHandle for wxOSX-cocoa and wxOSX-carbon
Robin Dunn [Sat, 28 Jul 2012 19:31:03 +0000 (19:31 +0000)] 
Adding wxDC::GetHandle for wxOSX-cocoa and wxOSX-carbon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMove new wxGTK wxNotificationMessage files to adv from core.
Vadim Zeitlin [Fri, 27 Jul 2012 19:36:59 +0000 (19:36 +0000)] 
Move new wxGTK wxNotificationMessage files to adv from core.

The new files were erroneously added to the wrong place, move them where they
belong.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix compilation of new wxNotificationMessage for wxGTK without libnotify.
Vadim Zeitlin [Fri, 27 Jul 2012 16:03:35 +0000 (16:03 +0000)] 
Fix compilation of new wxNotificationMessage for wxGTK without libnotify.

Add the wxUSE_LIBNOTIFY check forgotten by the previous commit.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoImplement wxNotificationMessage using libnotify in wxGTK.
Vadim Zeitlin [Fri, 27 Jul 2012 15:36:54 +0000 (15:36 +0000)] 
Implement wxNotificationMessage using libnotify in wxGTK.

Use libnotify -- if detected by configure -- to provide native notifications
in wxGTK. Our API maps to libnotify one in rather straightforward way, we
might consider extending it to cover more of libnotify functionality
(categories, user-defined icons and, especially, actions) later.

Also update the dialogs sample to show another kind of notification and the
documentation to clarify the behaviour of various methods.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd a private wrapper for GError to wxGTK.
Vadim Zeitlin [Fri, 27 Jul 2012 15:36:45 +0000 (15:36 +0000)] 
Add a private wrapper for GError to wxGTK.

This class simply calls g_error_free() automatically.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd all extra GTK libraries to GUI_TK_LIBRARY in configure.
Vadim Zeitlin [Fri, 27 Jul 2012 15:36:40 +0000 (15:36 +0000)] 
Add all extra GTK libraries to GUI_TK_LIBRARY in configure.

Some libraries (e.g. Pango) were added to GUI_TK_LIBRARY already while others
(e.g. Hildon) had their own EXTRALIBS_HILDON variables that were then added to
EXTRALIBS_GUI separately. Finally, some others were simply broken because
neither EXTRALIBS_GNOMEVFS nor EXTRALIBS_GTKPRINT were set anywhere.

Standardize on using GUI_TK_LIBRARY for everything.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxOSX/Carbon compilation fix after the changes of r72207.
Vadim Zeitlin [Wed, 25 Jul 2012 22:21:45 +0000 (22:21 +0000)] 
wxOSX/Carbon compilation fix after the changes of r72207.

Don't use position for keyboard events in Carbon code neither.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxMSW: Use TBSTYLE_AUTOSIZE for toolbar buttons with horizontal text.
Václav Slavík [Wed, 25 Jul 2012 16:31:58 +0000 (16:31 +0000)] 
wxMSW: Use TBSTYLE_AUTOSIZE for toolbar buttons with horizontal text.

Without this style, all buttons share the same width and look ugly when
their labels differ even a little in their lengths. With
TBSTYLE_AUTOSIZE, toolbar buttons use the size of their image plus
label's width and look better, even though their sizes differ.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAnother wxOSX compilation fix after the changes of r72207.
Vadim Zeitlin [Tue, 24 Jul 2012 23:13:30 +0000 (23:13 +0000)] 
Another wxOSX compilation fix after the changes of r72207.

Don't use position for keyboard events in wxWebKitCtrl code neither.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxWebView::GetNativeBackend() method.
Vadim Zeitlin [Tue, 24 Jul 2012 21:59:21 +0000 (21:59 +0000)] 
Add wxWebView::GetNativeBackend() method.

This allows to use platform-specific methods in user code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoBuild fix for wxOSX after removing position in MacCreateKeyEvent().
Vadim Zeitlin [Tue, 24 Jul 2012 21:44:32 +0000 (21:44 +0000)] 
Build fix for wxOSX after removing position in MacCreateKeyEvent().

This fixes compilation after the changes of r72207.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoI don't think this is still necessary, see #13625
Stefan Csomor [Tue, 24 Jul 2012 21:43:15 +0000 (21:43 +0000)] 
I don't think this is still necessary, see #13625

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't eagerly set wxKeyEvent position fields.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:52 +0000 (20:45 +0000)] 
Don't eagerly set wxKeyEvent position fields.

This results in a noticeable delay when using wxGTK via a remote X11
connection for every key event as a round trip to server is needed to get the
mouse pointer position every time a key is pressed or released.

Only provide the position on demand. And explain that it's actually not very
useful as it's simply the same as the current mouse position.

Closes #14361.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoExtract OS X non-GUI event loop in a separate header.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:43 +0000 (20:45 +0000)] 
Extract OS X non-GUI event loop in a separate header.

This will allow its reuse from non-wxOSX ports, e.g. wxGTK under OS X.

Closes #14519.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse relative path for wx-config symlink in "make install".
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:36 +0000 (20:45 +0000)] 
Use relative path for wx-config symlink in "make install".

This fixes "make DESTDIR=..." Broken by r71050 but still allows "make
DESTDIR=... install" to work even under MinGW where "ln -s" is mapped to "cp"
and so doesn't work with non-existing first argument.

Closes #14517.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxDir::Close().
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:30 +0000 (20:45 +0000)] 
Add wxDir::Close().

This is trivial to have and can sometimes be useful and also is symmetric to
Open().

Closes #14493.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoSet up scrollbars correctly for wxWebView in wxGTK.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:25 +0000 (20:45 +0000)] 
Set up scrollbars correctly for wxWebView in wxGTK.

This allows Scroll{Lines,Pages}() methods inherited from wxWindow to work with
it.

Add a test of using them to the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRefactor: extract GtkScrolledWindow creation from wxWindow::Create().
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:21 +0000 (20:45 +0000)] 
Refactor: extract GtkScrolledWindow creation from wxWindow::Create().

No real changes, just make it possible to reuse the scrolled window and
scrollbars creation code from derived classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAllow passing the URL to open to webview sample on command line.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:14 +0000 (20:45 +0000)] 
Allow passing the URL to open to webview sample on command line.

This makes it simpler to test the sample with other pages and especially local
HTML files.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775