mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Don't assume that a path of depth 0 has no indices. (#467324, Szilard
2007-09-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): Don't assume that a path of depth 0 has no indices. (#467324, Szilard Pfeiffer) svn path=/trunk/; revision=18770
This commit is contained in:
parent
57e8bdcb54
commit
5c4d0d697d
@ -1,3 +1,10 @@
|
||||
2007-09-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
|
||||
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): Don't
|
||||
assume that a path of depth 0 has no indices. (#467324, Szilard
|
||||
Pfeiffer)
|
||||
|
||||
2007-09-09 18:22:28 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose): fix invalid
|
||||
|
@ -1864,7 +1864,7 @@ gtk_tree_model_filter_rows_reordered (GtkTreeModel *c_model,
|
||||
|
||||
g_return_if_fail (new_order != NULL);
|
||||
|
||||
if (c_path == NULL || gtk_tree_path_get_indices (c_path) == NULL)
|
||||
if (c_path == NULL || gtk_tree_path_get_depth (c_path) == 0)
|
||||
{
|
||||
length = gtk_tree_model_iter_n_children (c_model, NULL);
|
||||
|
||||
|
@ -807,7 +807,7 @@ gtk_tree_model_sort_rows_reordered (GtkTreeModel *s_model,
|
||||
|
||||
g_return_if_fail (new_order != NULL);
|
||||
|
||||
if (s_path == NULL || gtk_tree_path_get_indices (s_path) == NULL)
|
||||
if (s_path == NULL || gtk_tree_path_get_depth (s_path) = 0)
|
||||
{
|
||||
if (tree_model_sort->root == NULL)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user