From 71c6b4551315e88c099348e3b0b9c276b3084e98 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 22 Oct 2007 10:40:45 +0000 Subject: [PATCH] Correctly set item in wxDataViewRenderer::Activate() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dataview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index 06e9749535..92706b8001 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -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();