[gtk+] clarify the init value for the default sort column id
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] clarify the init value for the default sort column id
- Date: Sat, 27 Jun 2009 09:58:07 +0000 (UTC)
commit adf8db68c7ea0415f418fb4276913446569be3d3
Author: Benjamin Otte <otte gnome org>
Date: Sun Jun 21 22:35:15 2009 +0200
clarify the init value for the default sort column id
The patch is basically s/-2/GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID/
gtk/gtkliststore.c | 2 +-
gtk/gtktreestore.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c
index e24cd76..3f2f7c4 100644
--- a/gtk/gtkliststore.c
+++ b/gtk/gtkliststore.c
@@ -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;
}
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c
index 9a522df..1fb178d 100644
--- a/gtk/gtktreestore.c
+++ b/gtk/gtktreestore.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]