]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/treectrl.cpp
Fixed a notebook crash and added more tests to sample.
[wxWidgets.git] / src / gtk / treectrl.cpp
index b1df8d5abc81a0ecb454951ee1c4b4d89186fac4..6d8fa194e161bc0d7feb275b0b1e99208529feeb 100644 (file)
@@ -133,9 +133,7 @@ printf("5\n");
   SetValidator(validator);
 
 printf("Robert's new insertion code :-)\n");
-  m_parent->AddChild( this );
-  (m_parent->m_insertCallback)( m_parent, this );
-
+  m_parent->DoAddChild( this );
 printf("postcreate\n");
   PostCreation();