[gtk/column-sorting: 3/3] columnview: Clarify docs




commit 0bbef76bc25f17daa50c78232bad077b9c35b654
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 19 22:31:23 2022 -0400

    columnview: Clarify docs
    
    Mention that gtk_column_view_sort_by_column
    can be called multiple times to ste up
    complex sorting.

 gtk/gtkcolumnview.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]