- node->SetData( (wxObject*) clientData );
-}
-
-void* wxComboBox::GetClientData( int n )
-{
- wxCHECK_MSG( m_widget != NULL, NULL, "invalid combobox" );
-
- wxNode *node = m_clientDataList.Nth( n );
- if (!node) return NULL;
-
- return node->Data();
-}
-
-void wxComboBox::SetClientObject( int n, wxClientData* clientData )
-{
- wxCHECK_RET( m_widget != NULL, "invalid combobox" );
-
- wxNode *node = m_clientObjectList.Nth( n );
- if (!node) return;
-
- wxClientData *cd = (wxClientData*) node->Data();
- if (cd) delete cd;
-
- node->SetData( (wxObject*) clientData );
-}
-
-wxClientData* wxComboBox::GetClientObject( int n )
-{
- wxCHECK_MSG( m_widget != NULL, (wxClientData*)NULL, "invalid combobox" );
-
- wxNode *node = m_clientDataList.Nth( n );
- if (!node) return (wxClientData*) NULL;
-
- return (wxClientData*) node->Data();
-}
-
-void wxComboBox::Clear()
-{
- wxCHECK_RET( m_widget != NULL, "invalid combobox" );
-
- GtkWidget *list = GTK_COMBO(m_widget)->list;
- gtk_list_clear_items( GTK_LIST(list), 0, Number() );
-
- wxNode *node = m_clientObjectList.First();
- while (node)