Make sure we always update the virtual root, also when ->priv->root is

2006-02-21  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
	Make sure we always update the virtual root, also when ->priv->root
	is still NULL.  (Markku Vire)
This commit is contained in:
Kristian Rietveld 2006-02-21 09:06:09 +00:00 committed by Kristian Rietveld
parent 77ae64b8ab
commit e3880748da
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2006-02-21 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
Make sure we always update the virtual root, also when ->priv->root
is still NULL. (Markku Vire)
2006-02-21 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkselection-quartz.c:

View File

@ -1,3 +1,9 @@
2006-02-21 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
Make sure we always update the virtual root, also when ->priv->root
is still NULL. (Markku Vire)
2006-02-21 Anders Carlsson <andersca@imendio.com>
* gdk/quartz/gdkselection-quartz.c:

View File

@ -1910,9 +1910,6 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model,
if (c_path == NULL || gtk_tree_path_get_indices (c_path) == NULL)
{
if (!filter->priv->root)
return;
length = gtk_tree_model_iter_n_children (c_model, NULL);
if (filter->priv->virtual_root)
@ -2009,7 +2006,7 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model,
}
}
if (level->array->len < 1)
if (!level || level->array->len < 1)
{
gtk_tree_path_free (path);
return;