wxWidgets.git
10 years agoFix doxygen warnings.
Steve Lamerton [Wed, 11 Sep 2013 10:10:36 +0000 (10:10 +0000)] 
Fix doxygen warnings.

Using @since inside a style or event list causes doxygen warnings, replace with plain text.

See #15346.

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

10 years agoChange version to 3.0.0.
Vadim Zeitlin [Wed, 11 Sep 2013 01:46:08 +0000 (01:46 +0000)] 
Change version to 3.0.0.

Keep "RC1" in the version string for now, but otherwise all version numbers
should be updated.

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

10 years agoFix wrong in wxListCtrl::SetItemColumnImage() in r74716.
Vadim Zeitlin [Tue, 10 Sep 2013 12:12:52 +0000 (12:12 +0000)] 
Fix wrong in wxListCtrl::SetItemColumnImage() in r74716.

The check for "image == -1" was added to a wrong line.

See #15421.

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

10 years agoFix configure on GNU Hurd.
Vadim Zeitlin [Tue, 10 Sep 2013 12:12:47 +0000 (12:12 +0000)] 
Fix configure on GNU Hurd.

Closes #15480.

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

10 years agoConsistently handle DST start time in wxDateTime::Set().
Vadim Zeitlin [Sun, 8 Sep 2013 18:00:58 +0000 (18:00 +0000)] 
Consistently handle DST start time in wxDateTime::Set().

Always move the dates invalid due to DST (i.e. falling into the "missing" hour
on the DST start date) forward, as GNU libc does, even when using a different
CRT implementation, such as MSVC one which moves the invalid dates backwards.

This seems more expected and also fixes an especially bad problem which
happened due to moving the date backwards in Brazilian time zone where DST
starts at midnight as doing this changed the day and totally broke ParseDate()
assumption that setting wxDateTime to 00:00:00 at the given date really did
set it to this date.

Closes #15419.

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

10 years agowxMSW: return correct value from wxMessageDialog::GetReturnCode().
Václav Slavík [Fri, 6 Sep 2013 17:09:23 +0000 (17:09 +0000)] 
wxMSW: return correct value from wxMessageDialog::GetReturnCode().

wxMessageDialog's native code didn't call SetReturnCode() as it should.
As a result, it didn't work with ShowWindowModal().

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

10 years agoAdd lambda-friendly wxDialog::ShowWindowModalThenDo().
Václav Slavík [Fri, 6 Sep 2013 17:09:20 +0000 (17:09 +0000)] 
Add lambda-friendly wxDialog::ShowWindowModalThenDo().

Add a convenience ShowWindowModalThenDo() variant of ShowWindowModal()
that takes a functor argument and calls it when the dialog is closed.

This is, of course, particularly useful when the argument is a C++11
lambda, especially when having more than one window-modal dialog invoked
from the same window, which can get messy quickly with all the
wxEVT_WINDOW_MODAL_DIALOG_CLOSED handlers.

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

10 years agoAdd wxWindowPtr smart pointer.
Václav Slavík [Fri, 6 Sep 2013 17:09:16 +0000 (17:09 +0000)] 
Add wxWindowPtr smart pointer.

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

10 years agoAdd basic deleter support to wxSharedPtr<T>.
Václav Slavík [Fri, 6 Sep 2013 17:09:11 +0000 (17:09 +0000)] 
Add basic deleter support to wxSharedPtr<T>.

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

10 years agoDocument wxWindowModalDialogEvent.
Václav Slavík [Fri, 6 Sep 2013 17:09:07 +0000 (17:09 +0000)] 
Document wxWindowModalDialogEvent.

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

10 years agoAdd wxCondition::Wait() overload that also tests the condition.
Václav Slavík [Fri, 6 Sep 2013 17:09:05 +0000 (17:09 +0000)] 
Add wxCondition::Wait() overload that also tests the condition.

Add Wait() overload that takes a functor argument and doesn't return
until the condition is signaled _and_ the predicate returns true.  This
is useful for dealing with spurious wakeups and is modeled after C++11
std::condition_variable's corresponding method.

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

10 years agoFix outdated comment for wxCondition::Wait().
Václav Slavík [Fri, 6 Sep 2013 17:09:01 +0000 (17:09 +0000)] 
Fix outdated comment for wxCondition::Wait().

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

10 years agoFix bug with not selecting wxAuiNotebook page when its child was focused.
Vadim Zeitlin [Fri, 6 Sep 2013 12:27:04 +0000 (12:27 +0000)] 
Fix bug with not selecting wxAuiNotebook page when its child was focused.

The code in OnChildFocusNotebook() handler only worked correctly if the page
itself was focused but not if the focus was given to one of its children --
which should still make the page itself current.

Closes #15471.

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

10 years agoFix history storing in wxWebViewWebKit with custom schemes.
Steve Lamerton [Fri, 6 Sep 2013 09:50:58 +0000 (09:50 +0000)] 
Fix history storing in wxWebViewWebKit with custom schemes.

When the history has just been cleared there is no existing item so we should add the new history item even in this case.

Fixes #15446.

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

10 years agoFix horizontal mouse wheel scrolling in wxGTK.
Vadim Zeitlin [Fri, 6 Sep 2013 00:20:06 +0000 (00:20 +0000)] 
Fix horizontal mouse wheel scrolling in wxGTK.

Change the value of the appropriate adjustment instead of always using the
vertical one.

Closes #15469.

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

10 years agoExport recently added wxRichTextXMLHelper to fix link errors.
Vadim Zeitlin [Thu, 5 Sep 2013 14:10:39 +0000 (14:10 +0000)] 
Export recently added wxRichTextXMLHelper to fix link errors.

This class is referenced from outside the library, see e.g. this build log:

http://buildbot.tt-solutions.com/wx/builders/Linux x86 wxGTK trunk/builds/2961/steps/compile utils/logs/stdio

and so must be exported, otherwise the build fails under Linux (and under
Windows when using DLL).

Perhaps it would be better to make it completely private to the library if it
is not meant to be public, but this would require more changes.

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

10 years agoRevert wxDO_LOG_IF_ENABLED() change for MSVC6 in r74735.
Vadim Zeitlin [Thu, 5 Sep 2013 14:10:34 +0000 (14:10 +0000)] 
Revert wxDO_LOG_IF_ENABLED() change for MSVC6 in r74735.

The old solution worked fine for that compiler and the new one fails when
wxLogXXX() is used inside a switch statement to the wrong rules used by VC6
for the scope of the variables defined inside the for loop.

Simply revert back to using the old version for it, this will be easy to
re-revert after 3.0 by simply removing the check for it.

See #11829.

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

10 years agoJust remove redundant wxDocument::SetDocumentTemplate() call.
Vadim Zeitlin [Wed, 4 Sep 2013 13:07:11 +0000 (13:07 +0000)] 
Just remove redundant wxDocument::SetDocumentTemplate() call.

This is already done from InitDocument() called from
wxDocTemplate::CreateDocument().

Closes #15467.

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

10 years agoRestore correct wx-config creation and work around MinGW lack of symlinks.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:42 +0000 (00:14 +0000)] 
Restore correct wx-config creation and work around MinGW lack of symlinks.

This undoes the changes of r72205 and r72249 (see #14517) as using relative
paths for wx-config symlink didn't work correctly if non-default values for
$bindir and/or $libdir were used (i.e. if they were not siblings).

Instead, fix the original problem of lack of symlinks when using MinGW
directly: just use "cp -p" if "ln -s" fails. This should work everywhere and
do the right thing.

Closes #15463.

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

10 years agoCorrect erasing of background behind controls in a toolbar in wxMSW.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:37 +0000 (00:14 +0000)] 
Correct erasing of background behind controls in a toolbar in wxMSW.

We need to handle WM_PRINTCLIENT in wxToolBar itself as the default handler
for this message forwards to WM_ERASEBKGND of the parent window and our
handler for that message only erases the client part of the window, in wx
sense, i.e. including a relatively big vertical offset accounting for the
toolbar. This means that when we get WM_PRINTCLIENT from the embedded control
drawing code, we don't erase anything at all as the control rectangle height
is smaller than the offset.

This fix is not perfect as ideally the existing MSWGetBgBrushForChild() should
be taken into account automatically by the default MSWPrintChild()
implementation but at least it fixes the ugly visual artefacts.

Closes #12307.

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

10 years agoRemove unnecessary wxHTML dependency from the notebook sample.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:34 +0000 (00:14 +0000)] 
Remove unnecessary wxHTML dependency from the notebook sample.

r70321 added html library to the notebook sample, apparently accidentally as
the commit message only mentioned aui one. Remove html and rebake.

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

10 years agoAdd a test for a tooltip for a control inside a static box.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:25 +0000 (00:14 +0000)] 
Add a test for a tooltip for a control inside a static box.

Also create the controls as children of the static box, not its siblings, to
make the tooltip work under wxGTK and because this is how we recommend doing
things now.

See #9859.

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

10 years agoAdd wxDEPRECATED_MSG() and use it in a couple of places.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:22 +0000 (00:14 +0000)] 
Add wxDEPRECATED_MSG() and use it in a couple of places.

This macro should be used instead of wxDEPRECATED() for the new deprecations
as it allows to give a helpful explanatory message (if supported by the
compiler) and also is simpler to use as it doesn't require wrapping the entire
declaration in it but can be simply used before it.

Also add wxDEPRECATED() support for clang as a side effect.

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

10 years agoDon't take hidden wxGrid row/columns into account when auto-sizing.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:15 +0000 (00:14 +0000)] 
Don't take hidden wxGrid row/columns into account when auto-sizing.

The contents not shown to the user shouldn't affect the fitting width/height
of the columns/rows that are shown.

See #15464.

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

10 years agoRemove superfluous mouse capturing in wxGrid row/column labels windows.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:13 +0000 (00:14 +0000)] 
Remove superfluous mouse capturing in wxGrid row/column labels windows.

This code recaptured the mouse in the window which had already had it, thus
triggering the (recently added, see r74677) asserts in CaptureMouse(). It also
didn't preserve the invariant of m_winCapture always having the capture. And
it was apparently completely unnecessary too.

So simply remove it to fix the asserts while drag-resizing wxGrid rows/columns.

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

10 years agoSimplify wxGridCellAutoWrapStringRenderer::GetBestSize().
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:10 +0000 (00:14 +0000)] 
Simplify wxGridCellAutoWrapStringRenderer::GetBestSize().

The code there was pretty wild, making clearly wrong assumptions (column size
doesn't, and AFAICS never did, include 20 pixel margin) and also was clearly
uncertain about what it was doing by trying to limit the number of iterations
to some arbitrary cutoff when it is pretty clear that the loop increasing the
width and decreasing the height on each iteration will reach the condition of
"width >= height*1.68" sooner or later.

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

10 years agoDon't crash in wxGridCellAutoWrapStringRenderer when the column is hidden.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:05 +0000 (00:14 +0000)] 
Don't crash in wxGridCellAutoWrapStringRenderer when the column is hidden.

Our methods should arguably not be called at all in this case, but if this
does happen, at least don't crash.

Closes #15464.

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

10 years agowxRTC: extracted XML utilities into a separate class for potential reuse.
Julian Smart [Tue, 3 Sep 2013 16:47:09 +0000 (16:47 +0000)] 
wxRTC: extracted XML utilities into a separate class for potential reuse.

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

10 years agoAdd missing XRC format docs for wxComboCtrl and wxEditableListBox.
Václav Slavík [Tue, 3 Sep 2013 14:45:07 +0000 (14:45 +0000)] 
Add missing XRC format docs for wxComboCtrl and wxEditableListBox.

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

10 years agoRemove reduntant content from XRC format docs.
Václav Slavík [Tue, 3 Sep 2013 14:45:04 +0000 (14:45 +0000)] 
Remove reduntant content from XRC format docs.

Window styles are documented globally, no need for control-specific
content for wxStatusBar.  Also, it was outdated and incorrect.

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

10 years agoFix referencing of cairo_t returned from wxDCImpl::GetCairoContext().
Paul Cornett [Tue, 3 Sep 2013 05:37:30 +0000 (05:37 +0000)] 
Fix referencing of cairo_t returned from wxDCImpl::GetCairoContext().
It was assumed that all callers were going to unref the cairo_t, but that is not
true, so callers that are going to unref it should ref it themselves.
See #15455

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

10 years agoReplace @since 2.9.6 with 3.0 in the docs.
Václav Slavík [Mon, 2 Sep 2013 12:17:06 +0000 (12:17 +0000)] 
Replace @since 2.9.6 with 3.0 in the docs.

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

10 years agoRewrite wxLogXXX() macros to avoid "ambiguous else" warnings.
Vadim Zeitlin [Sat, 31 Aug 2013 17:41:16 +0000 (17:41 +0000)] 
Rewrite wxLogXXX() macros to avoid "ambiguous else" warnings.

Use a dummy for loop instead of an if statement to avoid all problems with the
dangling else clauses: both the need for an artificially inversed "if" to make
the code like

if ( something )
wxLogError("...");
else
something-else;

to work as expected and to avoid warnings given by some versions of g++ and
clang for the code above advising to add explicit braces.

Closes #11829.

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

10 years agoRemoved a method using wxColour from non-GUI benchmark code.
Vadim Zeitlin [Sat, 31 Aug 2013 17:41:13 +0000 (17:41 +0000)] 
Removed a method using wxColour from non-GUI benchmark code.

No idea how could this work before but the presence of this code in the
non-GUI benchmark project prevented it from building. As it's not used anyhow,
just remove it.

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

10 years agoDon't update position of widgets in a wxPizza from size_allocate handler.
Paul Cornett [Sat, 31 Aug 2013 03:25:12 +0000 (03:25 +0000)] 
Don't update position of widgets in a wxPizza from size_allocate handler.
The values in m_{x,y} are not the same as client coordinates if the wxPizza is scrolled.
Closes #15444

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

10 years agoFix infinite loop in wxMSW with wxStaticBox inside non-wxTAB_TRAVERSAL parent.
Vadim Zeitlin [Fri, 30 Aug 2013 23:32:42 +0000 (23:32 +0000)] 
Fix infinite loop in wxMSW with wxStaticBox inside non-wxTAB_TRAVERSAL parent.

We didn't ensure that the parent of a (native) control with WS_EX_CONTROLPARENT
had this style as well, unlike for our own windows. Fix this now to make
certain that we never call ::IsDialogMessage() on a window whose parent
doesn't have WS_EX_CONTROLPARENT as it simply hangs in this case, entering an
infinite loop searching for the default button.

Also try to reduce the possibility of such bugs in the future by checking for
WS_EX_CONTROLPARENT and not wxTAB_TRAVERSAL before calling ::IsDialogMessage()
even if this doesn't totally prevent them (it wasn't sufficient to fix even
this particular bug).

Closes #15458.

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

10 years agoFix wxMenu::GetTitle() before the menu is appended to the menu bar.
Vadim Zeitlin [Fri, 30 Aug 2013 23:32:37 +0000 (23:32 +0000)] 
Fix wxMenu::GetTitle() before the menu is appended to the menu bar.

The mnemonics conversion was not done correctly when the menu title contained
them but the menu hadn't been appended to the menu bar yet.

Closes #15461.

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

10 years agoLoosen the assert in IsScrollIncrement().
Václav Slavík [Fri, 30 Aug 2013 13:14:50 +0000 (13:14 +0000)] 
Loosen the assert in IsScrollIncrement().

wxWindowGTK::GTKGetScrollEventType() tries to map GtkAdjustment's delta
to either step or page increment by comparing it with the respective
GtkAdjustment steps. Both of them can be 0, but this code is not
expected to be called in such case.

Yet, in practice, it occasionally is, see e.g.
http://devel.aegisub.org/ticket/979GTKGetScrollEventType (wxWebView is
prone to it as well).

Check for >= 0 instead, to be more robust when faced with unexpected
input from GTK+.

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

10 years agoInitialize wxImageFileProperty correctly when file is given in the ctor.
Vadim Zeitlin [Thu, 29 Aug 2013 20:44:58 +0000 (20:44 +0000)] 
Initialize wxImageFileProperty correctly when file is given in the ctor.

Previously the file had to be specified later and the value passed to the ctor
was ignored.

Closes #15456.

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

10 years agoDon't define __STRICT_ANSI__, we should build both with and without it.
Vadim Zeitlin [Thu, 29 Aug 2013 12:33:44 +0000 (12:33 +0000)] 
Don't define __STRICT_ANSI__, we should build both with and without it.

For some reason, wxDialUpManager code defined __STRICT_ANSI__ itself, don't do
it as __STRICT_ANSI__ can be predefined by the compiler resulting in the
redefinition warnings and, in any case, our code should build both with and
without it.

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

10 years agoCrash fix for inserting text into a buffer without an associated control
Julian Smart [Thu, 29 Aug 2013 11:41:48 +0000 (11:41 +0000)] 
Crash fix for inserting text into a buffer without an associated control

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

10 years agoOnly patch bk-deps in configure if dependency tracking is used.
Vadim Zeitlin [Thu, 29 Aug 2013 11:15:53 +0000 (11:15 +0000)] 
Only patch bk-deps in configure if dependency tracking is used.

Otherwise we get (harmless) errors when trying to patch a non-existent file.

See #15454.

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

10 years agowxGTK1 : another msiing include file in evtloop.cpp
Jouk Jansen [Thu, 29 Aug 2013 06:39:38 +0000 (06:39 +0000)] 
wxGTK1 : another msiing include file in evtloop.cpp

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

10 years agoCzech translations update from Zbyněk Schwarz.
Vadim Zeitlin [Wed, 28 Aug 2013 20:52:46 +0000 (20:52 +0000)] 
Czech translations update from Zbyněk Schwarz.

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

10 years agowxGTK1 : wx/private/eventloopsourcesmanager.h was missing in evtloop.cpp
Jouk Jansen [Wed, 28 Aug 2013 06:01:12 +0000 (06:01 +0000)] 
wxGTK1 : wx/private/eventloopsourcesmanager.h was missing in evtloop.cpp

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

10 years agoDon't enable dialog navigation inside wxFrame by default.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:53 +0000 (22:49 +0000)] 
Don't enable dialog navigation inside wxFrame by default.

This was done, apparently accidentally, by r68366 and resulted in cursor arrow
keys not being sent by default to the wxFrame children under MSW any more as
they were used for dialog navigation instead.

So don't derive wxTopLevelWindow from wxNavigationEnabled<> any more and only
derive from it at wxDialog level.

Closes #15445.

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

10 years agoDon't recurse into top level children in wxWindow::FindWindow().
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:48 +0000 (22:49 +0000)] 
Don't recurse into top level children in wxWindow::FindWindow().

Finding a button in a child dialog when looking for it in the current window
is totally unexpected and can result in subtle bugs, see #15442.

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

10 years agoHandle custom configurations in MSVC-specific setup.h.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:44 +0000 (22:49 +0000)] 
Handle custom configurations in MSVC-specific setup.h.

Account for wxCFG when building the paths used for MSVC autolinking. This
variable should be defined to the same value as CFG during (command line)
build.

Closes #15431.

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

10 years agoExplicitly specify target names for all configurations in VC10 projects.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:38 +0000 (22:49 +0000)] 
Explicitly specify target names for all configurations in VC10 projects.

The target names were not specified for the "Release" configuration in some
projects, resulting in (harmless, but annoying) warnings during the build.

Closes #15439.

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

10 years agoUse $(OutDir) instead of explicit directories in VC10 project files.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:34 +0000 (22:49 +0000)] 
Use $(OutDir) instead of explicit directories in VC10 project files.

This makes it simpler to use a different output directory as it only needs to
be changed in one place.

See #15439.

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

10 years agoCorrect making the newly inserted menu item owner drawn in some cases.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:28 +0000 (22:49 +0000)] 
Correct making the newly inserted menu item owner drawn in some cases.

The item being inserted is not inserted yet when we call
SetOwnerDrawnMenuItem() so we must call it separately for it after inserting
it.

Closes #15437.

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

10 years agoDon't use any icon for items inserted without one in wxMSW wxListCtrl.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:23 +0000 (22:49 +0000)] 
Don't use any icon for items inserted without one in wxMSW wxListCtrl.

Previously we erroneously used the first icon in the image list for them
instead. This was inconsistent with wxGTK and didn't make much sense, even if
it is the default behaviour of the native control, so don't do this any more
and explicitly specify I_IMAGENONE for the icon if it wasn't given.

Closes #15421.

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

10 years agoMake wxWindow::HasScrollbar() respect wxScrolled::ShowScrollbars().
Vadim Zeitlin [Tue, 27 Aug 2013 13:12:38 +0000 (13:12 +0000)] 
Make wxWindow::HasScrollbar() respect wxScrolled::ShowScrollbars().

Override CanScroll() in wxScrolled to return the real state of the scrollbar
instead of just relying on the wx[HV]SCROLL styles.

Closes #15440.

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

10 years agoNo real changes, just make wxWindow::CanScroll() virtual.
Vadim Zeitlin [Tue, 27 Aug 2013 13:12:31 +0000 (13:12 +0000)] 
No real changes, just make wxWindow::CanScroll() virtual.

This will allow overriding it in wxScrolled<>, see #15440.

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

10 years agoUpdate OpenVMS compile support
Jouk Jansen [Tue, 27 Aug 2013 12:02:20 +0000 (12:02 +0000)] 
Update OpenVMS compile support

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

10 years agorevert nested event loop support for wxGTK1 because it causes applications hangs
Jouk Jansen [Tue, 27 Aug 2013 11:46:13 +0000 (11:46 +0000)] 
revert nested event loop support for wxGTK1 because it causes applications hangs

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

10 years agocorrect base for carbon is 10.6 max
Stefan Csomor [Sun, 25 Aug 2013 08:36:54 +0000 (08:36 +0000)] 
correct base for carbon is 10.6 max

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

10 years agoadding correct valid architectures
Stefan Csomor [Sun, 25 Aug 2013 08:28:43 +0000 (08:28 +0000)] 
adding correct valid architectures

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

10 years agoproper default for iphone
Stefan Csomor [Sat, 24 Aug 2013 19:20:03 +0000 (19:20 +0000)] 
proper default for iphone

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

10 years agocarbon sdk must be 10.7 max, 10.8 is not supported anymore
Stefan Csomor [Sat, 24 Aug 2013 19:05:28 +0000 (19:05 +0000)] 
carbon sdk must be 10.7 max, 10.8 is not supported anymore

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

10 years agoleave i386 compiler to default
Stefan Csomor [Sat, 24 Aug 2013 19:00:09 +0000 (19:00 +0000)] 
leave i386 compiler to default

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

10 years agoAdd webviewarchivehandler.cpp to manually maintained VC10 project file.
Vadim Zeitlin [Sat, 24 Aug 2013 14:33:33 +0000 (14:33 +0000)] 
Add webviewarchivehandler.cpp to manually maintained VC10 project file.

Closes #15427.

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

10 years agoFix Doxygen warnings due to documenting overloaded functions together.
Vadim Zeitlin [Sat, 24 Aug 2013 14:33:28 +0000 (14:33 +0000)] 
Fix Doxygen warnings due to documenting overloaded functions together.

Apparently we can't make @param statements apply just to some overloads, so
document them separately now.

See #15346.

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

10 years agoMove code removing "-psn_xxx" command line arguments to common code.
Vadim Zeitlin [Sat, 24 Aug 2013 14:33:22 +0000 (14:33 +0000)] 
Move code removing "-psn_xxx" command line arguments to common code.

We need to do this when using any port under OS X, not just wxOSX, e.g. the
-psn_xxx arguments passed by the Finder when launching the application, must
also be ignored when using wxGTK.

Closes #15432.

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

10 years agoFix DLL targets names in manually maintained VC10 project files.
Vadim Zeitlin [Sat, 24 Aug 2013 14:33:16 +0000 (14:33 +0000)] 
Fix DLL targets names in manually maintained VC10 project files.

This takes care of annoying warning about "target name does not match linker
output file name" when building the DLLs.

Closes #15435.

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

10 years agoFix recreating of wxBitmapComboBox using untyped client data.
Vadim Zeitlin [Sat, 24 Aug 2013 14:33:09 +0000 (14:33 +0000)] 
Fix recreating of wxBitmapComboBox using untyped client data.

Use the correct array when restoring the client data, correcting a fatal typo
in the changes of r73880.

Closes #15436.

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

10 years agoremove redundant initialization of base class member variables
Paul Cornett [Sat, 24 Aug 2013 05:11:28 +0000 (05:11 +0000)] 
remove redundant initialization of base class member variables

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

10 years agowxDialogBase only has one ctor, so just do initialization in ctor instead of Init()
Paul Cornett [Sat, 24 Aug 2013 05:04:11 +0000 (05:04 +0000)] 
wxDialogBase only has one ctor, so just do initialization in ctor instead of Init()

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

10 years agoFix typo in wxConfig example in the documentation.
Vadim Zeitlin [Sat, 24 Aug 2013 01:03:47 +0000 (01:03 +0000)] 
Fix typo in wxConfig example in the documentation.

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

10 years agoAnother Basque translations update from Xabier Aramendi.
Vadim Zeitlin [Sat, 24 Aug 2013 01:02:57 +0000 (01:02 +0000)] 
Another Basque translations update from Xabier Aramendi.

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

10 years agoFix wxHtmlHelpData::SetTempDir() to behave correctly without trailing slash.
Vadim Zeitlin [Fri, 23 Aug 2013 16:37:09 +0000 (16:37 +0000)] 
Fix wxHtmlHelpData::SetTempDir() to behave correctly without trailing slash.

The path passed to this function is always a directory, so use
wxFileName::AssignDir() instead of the default constructor of wxFileName which
considers the name to be a name of a file unless it ends with a path separator.

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

10 years agoUpdate Basque translations after wxGetTranslation() strings addition.
Vadim Zeitlin [Fri, 23 Aug 2013 16:23:51 +0000 (16:23 +0000)] 
Update Basque translations after wxGetTranslation() strings addition.

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

10 years agoBasque translations update from Xabier Aramendi.
Vadim Zeitlin [Fri, 23 Aug 2013 16:22:40 +0000 (16:22 +0000)] 
Basque translations update from Xabier Aramendi.

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

10 years agoRegenerated message catalogs with the strings inside wxGetTranslation().
Vadim Zeitlin [Fri, 23 Aug 2013 16:22:35 +0000 (16:22 +0000)] 
Regenerated message catalogs with the strings inside wxGetTranslation().

We didn't extract the strings inside wxGetTranslation() in the message catalog
when creating it using xgettext, do it now.

This notably fixes the missing translations for the generic progress dialog
elapsed/estimated/remaining time labels.

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

10 years agofix missing ;
Robin Dunn [Wed, 21 Aug 2013 15:50:27 +0000 (15:50 +0000)] 
fix missing ;

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

10 years agoFix various documentation warnings throughout core and base.
Steve Lamerton [Wed, 21 Aug 2013 15:26:34 +0000 (15:26 +0000)] 
Fix various documentation warnings throughout core and base.

See #15346.

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

10 years agoFix ribbon documentation warnings.
Steve Lamerton [Wed, 21 Aug 2013 15:21:08 +0000 (15:21 +0000)] 
Fix ribbon documentation warnings.

See #15346.

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

10 years agoFix html documentation warnings.
Steve Lamerton [Wed, 21 Aug 2013 15:20:28 +0000 (15:20 +0000)] 
Fix html documentation warnings.

See #15346.

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

10 years agoFix warnings in rich text documentation.
Steve Lamerton [Wed, 21 Aug 2013 13:24:48 +0000 (13:24 +0000)] 
Fix warnings in rich text documentation.

See #15346.

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

10 years agoRemove DoSetSizeHints() call from Create()
Paul Cornett [Mon, 19 Aug 2013 17:25:56 +0000 (17:25 +0000)] 
Remove DoSetSizeHints() call from Create()
The reason it was added does not seem to be reproducible anymore,
and it interferes with wxRESIZE_BORDER on Ubuntu.
Closes #14870

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

10 years agorevert r74683, wxTLW has its own {Width,Height}Default()
Paul Cornett [Mon, 19 Aug 2013 16:58:43 +0000 (16:58 +0000)] 
revert r74683, wxTLW has its own {Width,Height}Default()
which are not the ones called by PreCreation()

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

10 years agoRemove some old redundant code
Paul Cornett [Mon, 19 Aug 2013 05:42:21 +0000 (05:42 +0000)] 
Remove some old redundant code
Default size stuff is done by PreCreation()

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

10 years agoavoid setting initial position if it was not specified, broken in r70734
Paul Cornett [Sun, 18 Aug 2013 16:00:22 +0000 (16:00 +0000)] 
avoid setting initial position if it was not specified, broken in r70734

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

10 years agoMove code that does not need realized GdkWinow out of realize handler
Paul Cornett [Sun, 18 Aug 2013 15:01:06 +0000 (15:01 +0000)] 
Move code that does not need realized GdkWinow out of realize handler
These calls can be made much earlier, and it seems like a good idea to do so.

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

10 years agoOnly give capture to wxPopupTransientWindow child if it's the only one.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:28 +0000 (13:28 +0000)] 
Only give capture to wxPopupTransientWindow child if it's the only one.

This removes the arbitrariness of using the first child which didn't make any
sense when the popup had several controls inside it, e.g. in wxRichToolTip
case this resulted in the mouse capture being given to wxStaticBitmap showing
the tooltip icon even though it didn't need it at all.

This probably doesn't really change the observable behaviour but seems more
logical.

See #15288.

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

10 years agoUse wxFindWindowAtPoint() for hit testing in wxPopupTransientWindow.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:23 +0000 (13:28 +0000)] 
Use wxFindWindowAtPoint() for hit testing in wxPopupTransientWindow.

This works even with irregularly shaped windows such as wxRichToolTip unlike
the old naive test using wxRect::Contains() which didn't and resulted in us
believing that the mouse was outside the window when it was still in it and
(somehow, the details are not totally clear) recapturing the mouse again and
again in the same window which resulted in assert failures with the new checks
in wxWindowBase::CaptureMouse() or the capture stack corruption before this.

Closes #15288.

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

10 years agoReturn NULL from wxWindow::GetCapture() when the capture is being lost.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:19 +0000 (13:28 +0000)] 
Return NULL from wxWindow::GetCapture() when the capture is being lost.

Make GetCapture() return NULL during wxEVT_MOUSE_CAPTURE_{LOST,CHANGED} events
processing in wxMSW to help their handlers to avoid calling ReleaseCapture():
this shouldn't be done as the mouse capture is being lost anyhow and results
in reentrancy problems between NotifyCaptureLost() and ReleaseCapture() if
it's called.

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

10 years agoMake mouse capture checking asserts stronger and more detailed.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:16 +0000 (13:28 +0000)] 
Make mouse capture checking asserts stronger and more detailed.

Verify not only that we don't destroy the window having the capture now but
also that this window is not in the mouse capture stack at all, not
necessarily on top. This is important as keeping a dangling pointer in the
capture stack would result in difficult to diagnose bugs later.

Also check that we don't recapture the mouse in the same window as this should
never be necessary.

Finally, give more details in the assert checking that the window does have
capture in ReleaseMouse().

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

10 years agoDon't set even try to set focus to wxPopupWindow itself in wxMSW.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:13 +0000 (13:28 +0000)] 
Don't set even try to set focus to wxPopupWindow itself in wxMSW.

This doesn't work anyhow with our popup window implementation (it's a child of
the desktop and we can't set focus to it) and provokes error messages due to
::SetFocus() failures, so simply don't do this at all.

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

10 years agoNo changes, just change data structures used by mouse capture code.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:09 +0000 (13:28 +0000)] 
No changes, just change data structures used by mouse capture code.

Use a simple stack of windows instead of a separate singly linked list and a
separate current capture pointer.

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

10 years agoNo changes, just use wxRecursionGuard instead of manual boolean flag.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:06 +0000 (13:28 +0000)] 
No changes, just use wxRecursionGuard instead of manual boolean flag.

Use wxRecursionGuard with the flag indicating whether the mouse capture is
changing to ensure that we always reset it correctly and make the code
slightly shorter.

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

10 years agoNo changes, just move mouse capturing bookkeeping data out of wxWindow.
Vadim Zeitlin [Sun, 18 Aug 2013 13:28:02 +0000 (13:28 +0000)] 
No changes, just move mouse capturing bookkeeping data out of wxWindow.

All mouse capture-related data doesn't have to be declared in wxWindow itself
and can just be global in wincmn.cpp, so move it there, this will facilitate
further changes as they won't require recompiling everything any more.

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

10 years agoshould have been part of r74664: Avoid calling gtk_window_get_position() from "config...
Paul Cornett [Sun, 18 Aug 2013 04:28:28 +0000 (04:28 +0000)] 
should have been part of r74664: Avoid calling gtk_window_get_position() from "configure-event" handler

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

10 years agoavoid duplicate move events
Paul Cornett [Sat, 17 Aug 2013 16:38:12 +0000 (16:38 +0000)] 
avoid duplicate move events

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

10 years agoAvoid calling gtk_window_get_position() from "configure-event" handler, if possible.
Paul Cornett [Sat, 17 Aug 2013 16:25:13 +0000 (16:25 +0000)] 
Avoid calling gtk_window_get_position() from "configure-event" handler, if possible.
This avoids a round trip to the X server, which is expensive over a remote connection.
Closes #15116

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

10 years agoFix typo in wxSingleInstanceChecker docs, props Lauri Nurmi.
Bryan Petty [Fri, 16 Aug 2013 18:17:01 +0000 (18:17 +0000)] 
Fix typo in wxSingleInstanceChecker docs, props Lauri Nurmi.

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

10 years agouse names for gs_requestFrameExtentsStatus values
Paul Cornett [Fri, 16 Aug 2013 15:43:51 +0000 (15:43 +0000)] 
use names for gs_requestFrameExtentsStatus values

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

10 years agoReplace wxFONTFAMILY_DEFAULT with wxFONTFAMILY_SWISS when comparing fonts.
Vadim Zeitlin [Fri, 16 Aug 2013 11:04:39 +0000 (11:04 +0000)] 
Replace wxFONTFAMILY_DEFAULT with wxFONTFAMILY_SWISS when comparing fonts.

Otherwise comparison always failed as no existing fonts had
wxFONTFAMILY_DEFAULT as their family in all ports except wxOSX, which does
keep wxFONTFAMILY_DEFAULT.

Closes #15410.

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

10 years agoforgotten commit :-( remove #if 0 if things work again
Stefan Csomor [Wed, 14 Aug 2013 20:34:53 +0000 (20:34 +0000)] 
forgotten commit :-( remove #if 0 if things work again

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

10 years agoFix wxComboCtrlBase::DoGetSizeFromTextSize() performance regression.
Václav Slavík [Wed, 14 Aug 2013 15:47:21 +0000 (15:47 +0000)] 
Fix wxComboCtrlBase::DoGetSizeFromTextSize() performance regression.

r72935 introduced code that created a temporary wxComboBox control to
take measurements. This is very expensive in MSW and adds noticeable
delay when creating more than a few controls.

Replace with equivalent wxMSW code that computes the height in the same
way other wxMSW controls do.

The wxGTK version cannot be eliminated in the same way, so at least add
some basic caching there. It's much less of a problem, because GTK+
controls creation is much cheaper than MSW one.

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