wxDataViewCtrl can show tree/list music sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-07-05 19:55:00 +00:00
parent d2505ba254
commit fc5eacdb48
2 changed files with 20 additions and 26 deletions

View File

@@ -267,21 +267,14 @@ wxgtk_tree_model_get_iter (GtkTreeModel *tree_model,
wxDataViewItem item;
wxPrintf( "get_iter depth: %d\n", depth );
int i;
for (i = 0; i < depth; i++)
{
gint pos = gtk_tree_path_get_indices (path)[i];
item = model->GetNthChild( item, (unsigned int) pos );
wxPrintf( "pos %d\n", pos );
if (!item.IsOk())
{
wxPrintf( "wrong item from path\n" );
return FALSE;
}
}
iter->stamp = wxtree_model->stamp;