clarify the init value for the default sort column id

The patch is basically s/-2/GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID/
This commit is contained in:
Benjamin Otte 2009-06-21 22:35:15 +02:00
parent 655e0d8ddc
commit adf8db68c7
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}