]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dataview.cpp
fix unused variable warning in release build
[wxWidgets.git] / src / gtk / dataview.cpp
index eca69982ef27d2470a1826b1074a64e953bec37c..75849f7fab6e73ecae1a964a5074a7f198966c6b 100644 (file)
@@ -4013,6 +4013,15 @@ void wxDataViewCtrl::Collapse( const wxDataViewItem & item )
     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 );
+    gtk_tree_view_row_expanded( GTK_TREE_VIEW(m_treeview), path );
+    gtk_tree_path_free( path );
+}
+
 wxDataViewItem wxDataViewCtrl::GetSelection() const
 {
     GtkTreeSelection *selection = gtk_tree_view_get_selection( GTK_TREE_VIEW(m_treeview) );