Commit adf8db68 authored by Benjamin Otte's avatar Benjamin Otte

clarify the init value for the default sort column id

The patch is basically s/-2/GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID/
parent 655e0d8d
......@@ -210,7 +210,7 @@ gtk_list_store_init (GtkListStore *list_store)
list_store->seq = g_sequence_new (NULL);
list_store->sort_list = NULL;
list_store->stamp = g_random_int ();
list_store->sort_column_id = -2;
list_store->sort_column_id = GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID;
list_store->columns_dirty = FALSE;
list_store->length = 0;
}
......
......@@ -235,7 +235,7 @@ gtk_tree_store_init (GtkTreeStore *tree_store)
while (tree_store->stamp == 0);
tree_store->sort_list = NULL;
tree_store->sort_column_id = -2;
tree_store->sort_column_id = GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID;
tree_store->columns_dirty = FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment