Pass a root path to gtk_tree_model_rows_reordered(). (#161720, Marcin

2004-12-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
	root path to gtk_tree_model_rows_reordered().  (#161720,
	Marcin Krzyzanowski)
This commit is contained in:
Matthias Clasen 2004-12-20 17:15:11 +00:00 committed by Matthias Clasen
parent 8454afe8e6
commit 4045cc1ac5
5 changed files with 23 additions and 6 deletions

View File

@ -1,5 +1,9 @@
2004-12-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
root path to gtk_tree_model_rows_reordered(). (#161720,
Marcin Krzyzanowski)
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
translate NULL messages. (#161789, Morten Welinder)

View File

@ -1,5 +1,9 @@
2004-12-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
root path to gtk_tree_model_rows_reordered(). (#161720,
Marcin Krzyzanowski)
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
translate NULL messages. (#161789, Morten Welinder)

View File

@ -1,5 +1,9 @@
2004-12-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
root path to gtk_tree_model_rows_reordered(). (#161720,
Marcin Krzyzanowski)
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
translate NULL messages. (#161789, Morten Welinder)

View File

@ -1,5 +1,9 @@
2004-12-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): Pass a
root path to gtk_tree_model_rows_reordered(). (#161720,
Marcin Krzyzanowski)
* gtk/gtkactiongroup.c (gtk_action_group_translate_string): Don't
translate NULL messages. (#161789, Morten Welinder)

View File

@ -1716,10 +1716,11 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
gint column)
{
GtkTreePath *tmp_path;
GtkTreePath *path;
tmp_path = gtk_tree_model_get_path (GTK_TREE_MODEL (list_store), iter);
gtk_tree_model_row_changed (GTK_TREE_MODEL (list_store), tmp_path, iter);
path = gtk_tree_model_get_path (GTK_TREE_MODEL (list_store), iter);
gtk_tree_model_row_changed (GTK_TREE_MODEL (list_store), path, iter);
gtk_tree_path_free (path);
if (!iter_is_sorted (list_store, iter))
{
@ -1731,12 +1732,12 @@ gtk_list_store_sort_iter_changed (GtkListStore *list_store,
gtk_list_store_compare_func,
list_store);
order = generate_order (list_store->seq, old_positions);
path = gtk_tree_path_new ();
gtk_tree_model_rows_reordered (GTK_TREE_MODEL (list_store),
tmp_path, NULL, order);
path, NULL, order);
gtk_tree_path_free (path);
g_free (order);
}
gtk_tree_path_free (tmp_path);
}
static gboolean