Don't emit EVT_TEXT after wxComboBox::SetValue()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-04-26 21:18:24 +00:00
parent 5166603dcc
commit d9138d0539

View File

@@ -954,9 +954,11 @@ void wxComboBox::SetValue( const wxString& value )
#endif
entry = GTK_ENTRY( GTK_COMBO(m_widget)->entry );
DisableEvents();
wxString tmp;
if (!value.IsNull()) tmp = value;
gtk_entry_set_text( entry, wxGTK_CONV( tmp ) );
EnableEvents();
InvalidateBestSize();
}