guard against child removal in row-expanded callback. (#366782, John

2006-10-29  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
	child removal in row-expanded callback. (#366782, John Ellis).
This commit is contained in:
Kristian Rietveld 2006-10-29 15:49:50 +00:00 committed by Kristian Rietveld
parent 1739daf8e0
commit 736755e07d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-10-29 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_real_expand_row): guard against
child removal in row-expanded callback. (#366782, John Ellis).
2006-10-29 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling

View File

@ -11778,7 +11778,7 @@ gtk_tree_view_real_expand_row (GtkTreeView *tree_view,
install_presize_handler (tree_view);
g_signal_emit (tree_view, tree_view_signals[ROW_EXPANDED], 0, &iter, path);
if (open_all)
if (open_all && node->children)
{
_gtk_rbtree_traverse (node->children,
node->children->root,