Update the text part of combobox when changing text of selected item in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Mar 2012 23:55:19 +0000 (23:55 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Mar 2012 23:55:19 +0000 (23:55 +0000)
commita9ed8caa09bc542a2ad9f752c0a6ca63c7119747
tree4e4dcc7a49235b12a336e601183d01fe07912134
parentdfb4176ac5f9017542405618f534899a56ba0e6e
Update the text part of combobox when changing text of selected item in wxGTK.

Add a call to SetValue() to wxComboBox::SetString() in wxGTK if the item being
changed is the currently selected one. The new behaviour is consistent with
wxMSW and also makes more sense.

Document it too to remove any doubts about what is supposed to happen in this
case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/gtk/combobox.h
interface/wx/combobox.h
src/gtk/combobox.cpp