summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f946f8b)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58266
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
GtkWxTreeModel *wxtree_model = (GtkWxTreeModel *) tree_model;
g_return_val_if_fail (GTK_IS_WX_TREE_MODEL (wxtree_model), FALSE);
{
GtkWxTreeModel *wxtree_model = (GtkWxTreeModel *) tree_model;
g_return_val_if_fail (GTK_IS_WX_TREE_MODEL (wxtree_model), FALSE);
- g_return_val_if_fail (wxtree_model->stamp == iter->stamp, 0);
-
+
+ if (iter != NULL)
+ g_return_val_if_fail (wxtree_model->stamp == iter->stamp, 0);
+
return wxtree_model->internal->iter_n_children( iter );
}
return wxtree_model->internal->iter_n_children( iter );
}
+ if (iter == NULL)
+ return m_root->GetChildCount();
+
wxDataViewItem item( (void*) iter->user_data );
if (!m_wx_model->IsContainer( item ))
wxDataViewItem item( (void*) iter->user_data );
if (!m_wx_model->IsContainer( item ))