]> git.saurik.com Git - wxWidgets.git/commit
Remove wxTextCtrl::OnEnabled() hack from wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Mar 2013 01:12:21 +0000 (01:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Mar 2013 01:12:21 +0000 (01:12 +0000)
commit00a399c062ce76fbfa9ea0bc2c208a9a144a7528
treefa15d04202c347dea37ae75a4733a541a4a90f35
parent80ceadc1652cf1ca6c93cf0f6657634233a6bcde
Remove wxTextCtrl::OnEnabled() hack from wxGTK.

Don't change the background colour when the control is being enabled or
disabled, it doesn't seem necessary and it's unclear why was this added by
r10179 in the first place. It does result in problems however as it could
somehow make the selection of wxTextCtrl invisible when it lost focus and so
fixes a serious usability problem which happened to all wxTextCtrls for which
a wxEVT_UPDATE_UI handler using wxUpdateUIEvent::Enable() was defined.

Closes #14898.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/gtk/textctrl.h
include/wx/gtk1/textctrl.h
include/wx/window.h
src/common/wincmn.cpp
src/gtk/textctrl.cpp
src/gtk1/textctrl.cpp
src/osx/window_osx.cpp