From 42369e31e2ed127abac6a9cd06ac64e27a6e398b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 16 Jan 2018 18:15:13 -0500 Subject: [PATCH] tree model sort: Fix initial default sort func gtk_tree_sortable_has_default_sort_func should return FALSE initially. --- gtk/gtktreemodelsort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c index 336f796fa0..761e01fa55 100644 --- a/gtk/gtktreemodelsort.c +++ b/gtk/gtktreemodelsort.c @@ -1768,7 +1768,7 @@ gtk_tree_model_sort_has_default_sort_func (GtkTreeSortable *sortable) { GtkTreeModelSort *tree_model_sort = (GtkTreeModelSort *)sortable; - return (tree_model_sort->priv->default_sort_func != NULL); + return (tree_model_sort->priv->default_sort_func != NO_SORT_FUNC); } /* DragSource interface */