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:
@@ -988,8 +988,10 @@ gtk_wx_cell_renderer_activate(
|
|||||||
wxDataViewModel *model = cell->GetOwner()->GetOwner()->GetModel();
|
wxDataViewModel *model = cell->GetOwner()->GetOwner()->GetModel();
|
||||||
|
|
||||||
GtkTreePath *treepath = gtk_tree_path_new_from_string( path );
|
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 );
|
gtk_tree_path_free( treepath );
|
||||||
|
|
||||||
unsigned int model_col = cell->GetOwner()->GetModelColumn();
|
unsigned int model_col = cell->GetOwner()->GetModelColumn();
|
||||||
|
Reference in New Issue
Block a user