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:

committed by
Kristian Rietveld

parent
77ae64b8ab
commit
e3880748da
@ -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>
|
2006-02-21 Anders Carlsson <andersca@imendio.com>
|
||||||
|
|
||||||
* gdk/quartz/gdkselection-quartz.c:
|
* gdk/quartz/gdkselection-quartz.c:
|
||||||
|
@ -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>
|
2006-02-21 Anders Carlsson <andersca@imendio.com>
|
||||||
|
|
||||||
* gdk/quartz/gdkselection-quartz.c:
|
* gdk/quartz/gdkselection-quartz.c:
|
||||||
|
@ -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 (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);
|
length = gtk_tree_model_iter_n_children (c_model, NULL);
|
||||||
|
|
||||||
if (filter->priv->virtual_root)
|
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);
|
gtk_tree_path_free (path);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user