void wxDataViewColumn::SetAsSortKey( bool WXUNUSED(sort) )
{
- // it might not make sense to have this function in wxHeaderColumnBase at
+ // it might not make sense to have this function in wxHeaderColumn at
// all in fact, changing of the sort order should only be done using the
// associated control API
wxFAIL_MSG( "not implemented" );
gtk_tree_path_free( path );
}
+bool wxDataViewCtrl::IsExpanded( const wxDataViewItem & item ) const
+{
+ GtkTreeIter iter;
+ iter.user_data = item.GetID();
+ GtkTreePath *path = m_internal->get_path( &iter );
+ bool res = gtk_tree_view_row_expanded( GTK_TREE_VIEW(m_treeview), path );
+ gtk_tree_path_free( path );
+
+ return res;
+}
+
wxDataViewItem wxDataViewCtrl::GetSelection() const
{
GtkTreeSelection *selection = gtk_tree_view_get_selection( GTK_TREE_VIEW(m_treeview) );
}
void wxDataViewCtrl::EnsureVisible(const wxDataViewItem& item,
- const wxDataViewColumn *WXUNUSED(column))
+ const wxDataViewColumn *column)
{
+ wxDataViewCtrlBase::EnsureVisible(item,column);
+
GtkTreeIter iter;
iter.user_data = (gpointer) item.GetID();
GtkTreePath *path = m_internal->get_path( &iter );