]> git.saurik.com Git - wxWidgets.git/commit
Never refresh controls from EVT_PAINT handler in wxPropertyGrid.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Feb 2012 01:20:00 +0000 (01:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Feb 2012 01:20:00 +0000 (01:20 +0000)
commitde75a255e55cea16f0bbb1db504f13e64e6058d9
tree32c95681619edfb67f7b137521afea1151422508
parentfe8aae41abf98f090ff59cdaec70ced89f8318fd
Never refresh controls from EVT_PAINT handler in wxPropertyGrid.

Refreshing the controls after finishing repainting the grid results in an
infinite stream of paint events, so don't do this, especially as this doesn't
seem to have any bad consequences under wxGTK which was the only major
platform where this behaviour was enabled.

Also rename wxPG_REFRESH_CONTROLS_AFTER_REPAINT to just wxPG_REFRESH_CONTROLS
and keep the control refreshing code for wxGTK only in a couple of places
outside of EVT_PAINT handler to be on the safe side.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/propgrid/propgriddefs.h
src/propgrid/propgrid.cpp