forked from AuroraMiddleware/gtk
don't bother inserting new rows in a level with a zero refcount and
2005-08-23 Kristian Rietveld <kris@gtk.org> * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't bother inserting new rows in a level with a zero refcount and immediately free the level. (Fixes #312350, reported by Markku Vire).
This commit is contained in:
parent
346c3501d9
commit
e6615bfc3b
@ -1,3 +1,9 @@
|
||||
2005-08-23 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
|
||||
bother inserting new rows in a level with a zero refcount and
|
||||
immediately free the level. (Fixes #312350, reported by Markku Vire).
|
||||
|
||||
2005-08-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Complain when there is no index.theme file
|
||||
|
@ -1,3 +1,9 @@
|
||||
2005-08-23 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
|
||||
bother inserting new rows in a level with a zero refcount and
|
||||
immediately free the level. (Fixes #312350, reported by Markku Vire).
|
||||
|
||||
2005-08-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Complain when there is no index.theme file
|
||||
|
@ -1,3 +1,9 @@
|
||||
2005-08-23 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): don't
|
||||
bother inserting new rows in a level with a zero refcount and
|
||||
immediately free the level. (Fixes #312350, reported by Markku Vire).
|
||||
|
||||
2005-08-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Complain when there is no index.theme file
|
||||
|
@ -728,6 +728,12 @@ gtk_tree_model_sort_row_inserted (GtkTreeModel *s_model,
|
||||
if (!parent_level)
|
||||
goto done;
|
||||
|
||||
if (level->ref_count == 0 && level != tree_model_sort->root)
|
||||
{
|
||||
gtk_tree_model_sort_free_level (tree_model_sort, level);
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!gtk_tree_model_sort_insert_value (tree_model_sort,
|
||||
parent_level,
|
||||
s_path,
|
||||
|
Loading…
Reference in New Issue
Block a user