]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/combobox.cpp
-Debian glibc2 system is 'linux-gnu', not 'Linux';updated .cvsignore's -Markus
[wxWidgets.git] / src / gtk1 / combobox.cpp
index 1ac91ffdd4338d25e12b5de5dba87f7a4783e70c..6f0acae1372d3b828dcd292655c23cfdd1509062 100644 (file)
@@ -13,6 +13,7 @@
 #endif
 
 #include "wx/combobox.h"
+#include <wx/intl.h>
 
 //-----------------------------------------------------------------------------
 // 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 "";
 };