Forgot to set GtkIter stamp in Select() and friends

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2008-10-08 18:46:46 +00:00
parent a57f24f97a
commit 0e50223f87

View File

@ -3984,6 +3984,7 @@ void wxDataViewCtrl::SetSelections( const wxDataViewItemArray & sel )
for (i = 0; i < sel.GetCount(); i++)
{
GtkTreeIter iter;
iter.stamp = m_internal->GetGtkModel()->stamp;
iter.user_data = (gpointer) sel[i].GetID();
gtk_tree_selection_select_iter( selection, &iter );
}
@ -3998,6 +3999,7 @@ void wxDataViewCtrl::Select( const wxDataViewItem & item )
GtkTreeSelection *selection = gtk_tree_view_get_selection( GTK_TREE_VIEW(m_treeview) );
GtkTreeIter iter;
iter.stamp = m_internal->GetGtkModel()->stamp;
iter.user_data = (gpointer) item.GetID();
gtk_tree_selection_select_iter( selection, &iter );
@ -4011,6 +4013,7 @@ void wxDataViewCtrl::Unselect( const wxDataViewItem & item )
GtkTreeSelection *selection = gtk_tree_view_get_selection( GTK_TREE_VIEW(m_treeview) );
GtkTreeIter iter;
iter.stamp = m_internal->GetGtkModel()->stamp;
iter.user_data = (gpointer) item.GetID();
gtk_tree_selection_unselect_iter( selection, &iter );
@ -4022,6 +4025,7 @@ bool wxDataViewCtrl::IsSelected( const wxDataViewItem & item ) const
GtkTreeSelection *selection = gtk_tree_view_get_selection( GTK_TREE_VIEW(m_treeview) );
GtkTreeIter iter;
iter.stamp = m_internal->GetGtkModel()->stamp;
iter.user_data = (gpointer) item.GetID();
return gtk_tree_selection_iter_is_selected( selection, &iter );