X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66bd6b93005b803910caca469110495ce549599f..e6886957b4b3a8dfc0fb85c22c62e132a357defd:/src/gtk1/combobox.cpp diff --git a/src/gtk1/combobox.cpp b/src/gtk1/combobox.cpp index 1ac91ffdd4..6f0acae137 100644 --- a/src/gtk1/combobox.cpp +++ b/src/gtk1/combobox.cpp @@ -13,6 +13,7 @@ #endif #include "wx/combobox.h" +#include //----------------------------------------------------------------------------- // data @@ -155,7 +156,7 @@ void wxComboBox::Delete( int n ) wxNode *node = m_clientData.Nth( n ); if (!node) { - wxFAIL_MSG("wxComboBox::Delete wrong index"); + wxFAIL_MSG( "wxComboBox: wrong index" ); } else m_clientData.DeleteNode( node ); @@ -175,6 +176,9 @@ int wxComboBox::FindString( const wxString &item ) count++; child = child->next; }; + + wxFAIL_MSG( "wxComboBox: string not found" ); + return -1; }; @@ -182,6 +186,9 @@ char* wxComboBox::GetClientData( int n ) { wxNode *node = m_clientData.Nth( n ); if (node) return (char*)node->Data(); + + wxFAIL_MSG( "wxComboBox: wrong index" ); + return NULL; }; @@ -189,6 +196,8 @@ void wxComboBox::SetClientData( int n, char * clientData ) { wxNode *node = m_clientData.Nth( n ); if (node) node->SetData( (wxObject*) clientData ); + + wxFAIL_MSG( "wxComboBox: wrong index" ); }; int wxComboBox::GetSelection(void) const @@ -207,6 +216,9 @@ int wxComboBox::GetSelection(void) const child = child->next; }; }; + + wxFAIL_MSG( "wxComboBox: no selection" ); + return -1; }; @@ -221,6 +233,9 @@ wxString wxComboBox::GetString( int n ) const GtkLabel *label = GTK_LABEL( bin->child ); return label->label; }; + + wxFAIL_MSG( "wxComboBox: wrong index" ); + return ""; }; @@ -235,6 +250,9 @@ wxString wxComboBox::GetStringSelection(void) const wxString tmp = GTK_LABEL( bin->child )->label; return tmp; }; + + wxFAIL_MSG( "wxComboBox: no selection" ); + return ""; };