]> git.saurik.com Git - wxWidgets.git/commit - src/stc/stc.cpp
Fix wxSTC compilation without wxUSE_DRAG_AND_DROP after r65827.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Oct 2010 18:17:30 +0000 (18:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 Oct 2010 18:17:30 +0000 (18:17 +0000)
commit35f8d83dbb985f81b7b7b63f113b05e7ca243489
treea76215767f585933dab186302062f81a8c347d78
parent5f8bf0ee6f934a2c0a5e482d976f3a1c53bb1c46
Fix wxSTC compilation without wxUSE_DRAG_AND_DROP after r65827.

Correct the changes of r65827 to also compile with wxUSE_DRAG_AND_DROP==0
(especially important for the ports without dnd support such as wxX11 and
wxDFB).

Also do the changes in the correct files, i.e. src/stc/stc.{h,cpp}.in and not
in the generated files themselves to prevent them from being overwritten the
next time gen_iface.py is ran.

Finally keep backwards compatibility as SetDragAllowMove(bool) is a public
method so preserve its old semantics and add a new SetDragFlags() instead of
silently breaking the existing code using SetDragAllowMove().

See #11709.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/stc/stc.h
src/stc/ScintillaWX.cpp
src/stc/stc.cpp
src/stc/stc.cpp.in
src/stc/stc.h.in