diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-11-30 21:45:26 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-11-30 21:45:26 +0000 |
commit | 35a3099ec676f0e4b62173154c377084c9f80640 (patch) | |
tree | cac2ba2c0f13122b9dad08e7642c4440686e2383 /gtk/gtktreestore.c | |
parent | 126efafc406d5945663b5bd86c7833796e12e349 (diff) | |
download | gtk+-35a3099ec676f0e4b62173154c377084c9f80640.tar.gz |
Update the documentation to specify a more useful behaviour, which can be
2004-11-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreesortable.c (gtk_tree_sortable_get_sort_column_id): Update
the documentation to specify a more useful behaviour, which can be
implemented with the multiple special values we have now. (#159984,
Nicholas Rahn)
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_sort_column_id):
* gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id):
* gtk/gtkliststore.c (gtk_list_store_get_sort_column_id): Update the
implementations.
Diffstat (limited to 'gtk/gtktreestore.c')
-rw-r--r-- | gtk/gtktreestore.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index c8cc9cd1fb..642b74c728 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -2833,15 +2833,16 @@ gtk_tree_store_get_sort_column_id (GtkTreeSortable *sortable, g_return_val_if_fail (GTK_IS_TREE_STORE (sortable), FALSE); - if (tree_store->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID) - return FALSE; - if (sort_column_id) * sort_column_id = tree_store->sort_column_id; if (order) * order = tree_store->order; - return TRUE; + if (tree_store->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID || + tree_store->sort_column_id == GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID) + return FALSE; + + return TRUE; } static void |