Don't access the level after removing the node, since that may kill the

Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
	Don't access the level after removing the node, since that may
	kill the level.  (#132615, Crispin Flowerday)
This commit is contained in:
Matthias Clasen 2004-02-02 22:44:05 +00:00 committed by Matthias Clasen
parent db2440ed55
commit f744d5aa33
6 changed files with 32 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Feb 2 23:41:48 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't access the level after removing the node, since that may
kill the level. (#132615, Crispin Flowerday)
2004-02-02 Tor Lillqvist <tml@iki.fi> 2004-02-02 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor

View File

@ -1,3 +1,9 @@
Mon Feb 2 23:41:48 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't access the level after removing the node, since that may
kill the level. (#132615, Crispin Flowerday)
2004-02-02 Tor Lillqvist <tml@iki.fi> 2004-02-02 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor

View File

@ -1,3 +1,9 @@
Mon Feb 2 23:41:48 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't access the level after removing the node, since that may
kill the level. (#132615, Crispin Flowerday)
2004-02-02 Tor Lillqvist <tml@iki.fi> 2004-02-02 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor

View File

@ -1,3 +1,9 @@
Mon Feb 2 23:41:48 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't access the level after removing the node, since that may
kill the level. (#132615, Crispin Flowerday)
2004-02-02 Tor Lillqvist <tml@iki.fi> 2004-02-02 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor

View File

@ -1,3 +1,9 @@
Mon Feb 2 23:41:48 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't access the level after removing the node, since that may
kill the level. (#132615, Crispin Flowerday)
2004-02-02 Tor Lillqvist <tml@iki.fi> 2004-02-02 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor

View File

@ -1079,13 +1079,14 @@ gtk_tree_model_filter_row_changed (GtkTreeModel *c_model,
{ {
/* get rid of this node */ /* get rid of this node */
gtk_tree_model_get_iter (GTK_TREE_MODEL (filter), &iter, path); gtk_tree_model_get_iter (GTK_TREE_MODEL (filter), &iter, path);
gtk_tree_model_filter_remove_node (filter, &iter, TRUE);
level = FILTER_LEVEL (iter.user_data); level = FILTER_LEVEL (iter.user_data);
if (!level->parent_level) if (!level->parent_level)
filter->priv->root_level_visible--; filter->priv->root_level_visible--;
gtk_tree_model_filter_remove_node (filter, &iter, TRUE);
goto done; goto done;
} }