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/gtktreemodelsort.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/gtktreemodelsort.c')
-rw-r--r-- | gtk/gtktreemodelsort.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c index abfd0c6e4f..61cb405f49 100644 --- a/gtk/gtktreemodelsort.c +++ b/gtk/gtktreemodelsort.c @@ -1322,14 +1322,15 @@ gtk_tree_model_sort_get_sort_column_id (GtkTreeSortable *sortable, g_return_val_if_fail (GTK_IS_TREE_MODEL_SORT (sortable), FALSE); - if (tree_model_sort->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID) - return FALSE; - if (sort_column_id) *sort_column_id = tree_model_sort->sort_column_id; if (order) *order = tree_model_sort->order; + if (tree_model_sort->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID || + tree_model_sort->sort_column_id == GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID) + return FALSE; + return TRUE; } |