-void wxListBox::DoInsertItems(const wxArrayString& items, int pos)
-{
- wxCHECK_RET( m_list != NULL, wxT("invalid listbox") );
-
- // code elsewhere supposes we have as many items in m_clientData as items
- // in the listbox
- wxASSERT_MSG( m_clientData.GetCount() == (size_t)GetCount(),
- wxT("bug in client data management") );
-
- GList *children = m_list->children;
- int length = g_list_length(children);
- wxCHECK_RET( pos <= length, wxT("invalid index in wxListBox::InsertItems") );
-
- // VZ: it seems that GTK 1.0.6 doesn't has a function to insert an item
- // into a listbox at the given position, this is why we first delete
- // all items after this position, then append these items and then
- // reappend back the old ones.
-
- // VZ: notice that InsertItems knows nothing about sorting, so calling it
- // from outside (and not from our own Append) is likely to break
- // everything
+// ----------------------------------------------------------------------------
+// adding items
+// ----------------------------------------------------------------------------