Correctly set item in wxDataViewRenderer::Activate()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2007-10-22 10:40:45 +00:00
parent 45b81639ef
commit 71c6b45513

View File

@ -988,8 +988,10 @@ gtk_wx_cell_renderer_activate(
wxDataViewModel *model = cell->GetOwner()->GetOwner()->GetModel();
GtkTreePath *treepath = gtk_tree_path_new_from_string( path );
// TODO
wxDataViewItem item;
GtkTreeIter iter;
cell->GetOwner()->GetOwner()->GetInternal()->get_iter( &iter, treepath );
wxDataViewItem item( iter.user_data );
gtk_tree_path_free( treepath );
unsigned int model_col = cell->GetOwner()->GetModelColumn();