resort if we're already in 'unsorted' state, and update the docs

Thu Apr 25 00:26:34 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
        resort if we're already in 'unsorted' state, and update the docs
This commit is contained in:
Kristian Rietveld 2002-04-24 22:21:25 +00:00 committed by Kristian Rietveld
parent b56a552166
commit ef32bad877
7 changed files with 36 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 25 00:26:34 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
resort if we're already in 'unsorted' state, and update the docs
2002-04-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc

View File

@ -1,3 +1,8 @@
Thu Apr 25 00:26:34 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
resort if we're already in 'unsorted' state, and update the docs
2002-04-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc

View File

@ -1,3 +1,8 @@
Thu Apr 25 00:26:34 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
resort if we're already in 'unsorted' state, and update the docs
2002-04-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc

View File

@ -1,3 +1,8 @@
Thu Apr 25 00:26:34 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
resort if we're already in 'unsorted' state, and update the docs
2002-04-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc

View File

@ -1,3 +1,8 @@
Thu Apr 25 00:26:34 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
resort if we're already in 'unsorted' state, and update the docs
2002-04-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc

View File

@ -1,3 +1,8 @@
Thu Apr 25 00:26:34 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func):
resort if we're already in 'unsorted' state, and update the docs
2002-04-24 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_stop_editing): Remove doc

View File

@ -2200,7 +2200,9 @@ gtk_tree_model_sort_clear_cache_helper (GtkTreeModelSort *tree_model_sort,
* @tree_model_sort: A #GtkTreeModelSort
*
* This resets the default sort function to be in the 'unsorted' state. That
* is, it is in the same order as the child model.
* is, it is in the same order as the child model. It will re-sort the model
* to be in the same order as the child model only if the #GtkTreeModelSort
* is in 'unsorted' state.
**/
void
gtk_tree_model_sort_reset_default_sort_func (GtkTreeModelSort *tree_model_sort)
@ -2218,6 +2220,9 @@ gtk_tree_model_sort_reset_default_sort_func (GtkTreeModelSort *tree_model_sort)
tree_model_sort->default_sort_func = NO_SORT_FUNC;
tree_model_sort->default_sort_data = NULL;
tree_model_sort->default_sort_destroy = NULL;
if (tree_model_sort->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID)
gtk_tree_model_sort_sort (tree_model_sort);
tree_model_sort->sort_column_id = GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID;
}