diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-10-19 22:31:23 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-10-20 06:56:25 -0400 |
commit | 019650ff26ecdb0cad0c92ec39ebbfabd147359c (patch) | |
tree | d824eb758ececd91c0921dc02104bda5e01da5a4 | |
parent | eb045fe9363be25d19877339ba41d0a0891540dd (diff) | |
download | gtk+-column-sorting.tar.gz |
columnview: Clarify docscolumn-sorting
Mention that gtk_column_view_sort_by_column
can be called multiple times to ste up
complex sorting.
-rw-r--r-- | gtk/gtkcolumnview.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkcolumnview.c b/gtk/gtkcolumnview.c index 9ba7db6c2b..2828682436 100644 --- a/gtk/gtkcolumnview.c +++ b/gtk/gtkcolumnview.c @@ -1689,6 +1689,13 @@ gtk_column_view_get_sorter (GtkColumnView *self) * on @column to associate a sorter with the column. * * If @column is %NULL, the view will be unsorted. + * + * This function can be called multiple times to set up + * sorting with multiple columns: + * + * gtk_column_view_sort_by_column (view, NULL, 0); + * gtk_column_view_sort_by_column (view, col1, GTK_SORT_DESCENDING); + * gtk_column_view_sort_by_column (view, col0, GTK_SORT_ASCENDING); */ void gtk_column_view_sort_by_column (GtkColumnView *self, |