X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b1ff57f1ee08eb970520de784816c4115bd84f0..929bd5fd5f0d6a0dff3afb6ac037ea5305de474b:/src/gtk/combobox.cpp diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 43ed08ba4a..7660f4a9fa 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -557,13 +557,14 @@ void wxComboBox::SetSelection( int n ) EnableEvents(); } -void wxComboBox::SetStringSelection( const wxString &string ) +bool wxComboBox::SetStringSelection( const wxString &string ) { - wxCHECK_RET( m_widget != NULL, wxT("invalid combobox") ); + wxCHECK_MSG( m_widget != NULL, false, wxT("invalid combobox") ); int res = FindString( string ); - if (res == -1) return; + if (res == -1) return false; SetSelection( res ); + return true; } wxString wxComboBox::GetValue() const