pass NULL to gtk_tree_model_rows_reordered and not an iter with user_data
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to gtk_tree_model_rows_reordered and not an iter with user_data set to NULL (which is an invalid liststore iter, so iter_n_children failed, etc)
This commit is contained in:
parent
add14c9ef4
commit
b99088974e
@ -1,3 +1,10 @@
|
||||
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
|
||||
gtk_tree_model_rows_reordered and not an iter with user_data
|
||||
set to NULL (which is an invalid liststore iter, so
|
||||
iter_n_children failed, etc)
|
||||
|
||||
2002-01-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tests/prop-editor.c: declared internal functions static.
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
|
||||
gtk_tree_model_rows_reordered and not an iter with user_data
|
||||
set to NULL (which is an invalid liststore iter, so
|
||||
iter_n_children failed, etc)
|
||||
|
||||
2002-01-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tests/prop-editor.c: declared internal functions static.
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
|
||||
gtk_tree_model_rows_reordered and not an iter with user_data
|
||||
set to NULL (which is an invalid liststore iter, so
|
||||
iter_n_children failed, etc)
|
||||
|
||||
2002-01-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tests/prop-editor.c: declared internal functions static.
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
|
||||
gtk_tree_model_rows_reordered and not an iter with user_data
|
||||
set to NULL (which is an invalid liststore iter, so
|
||||
iter_n_children failed, etc)
|
||||
|
||||
2002-01-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tests/prop-editor.c: declared internal functions static.
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
|
||||
gtk_tree_model_rows_reordered and not an iter with user_data
|
||||
set to NULL (which is an invalid liststore iter, so
|
||||
iter_n_children failed, etc)
|
||||
|
||||
2002-01-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tests/prop-editor.c: declared internal functions static.
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
|
||||
gtk_tree_model_rows_reordered and not an iter with user_data
|
||||
set to NULL (which is an invalid liststore iter, so
|
||||
iter_n_children failed, etc)
|
||||
|
||||
2002-01-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tests/prop-editor.c: declared internal functions static.
|
||||
|
@ -1,3 +1,10 @@
|
||||
Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
|
||||
gtk_tree_model_rows_reordered and not an iter with user_data
|
||||
set to NULL (which is an invalid liststore iter, so
|
||||
iter_n_children failed, etc)
|
||||
|
||||
2002-01-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tests/prop-editor.c: declared internal functions static.
|
||||
|
@ -1567,7 +1567,6 @@ gtk_list_store_compare_func (gconstpointer a,
|
||||
static void
|
||||
gtk_list_store_sort (GtkListStore *list_store)
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
GArray *sort_array;
|
||||
gint i;
|
||||
gint *new_order;
|
||||
@ -1611,11 +1610,10 @@ gtk_list_store_sort (GtkListStore *list_store)
|
||||
new_order = g_new (gint, list_store->length);
|
||||
for (i = 0; i < list_store->length; i++)
|
||||
new_order[i] = g_array_index (sort_array, SortTuple, i).offset;
|
||||
|
||||
path = gtk_tree_path_new ();
|
||||
iter.stamp = list_store->stamp;
|
||||
iter.user_data = NULL;
|
||||
gtk_tree_model_rows_reordered (GTK_TREE_MODEL (list_store),
|
||||
path, &iter, new_order);
|
||||
path, NULL, new_order);
|
||||
gtk_tree_path_free (path);
|
||||
g_free (new_order);
|
||||
g_array_free (sort_array, TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user