[gtk/wip.win32.fixes: 65/84] gtk-demo: Add more sort columns




commit 9fdcf9c8478d9a9ab679685a3af58edd9bce0d0a
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 20 11:38:40 2022 -0400

    gtk-demo: Add more sort columns
    
    Add a second sort column to the Settings demo,
    to make it easier to test column view sorting.

 demos/gtk-demo/listview_settings.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/demos/gtk-demo/listview_settings.c b/demos/gtk-demo/listview_settings.c
index 36cd5c22df..b2c53230e0 100644
--- a/demos/gtk-demo/listview_settings.c
+++ b/demos/gtk-demo/listview_settings.c
@@ -422,6 +422,10 @@ do_listview_settings (GtkWidget *do_widget)
       gtk_column_view_column_set_sorter (name_column, sorter);
       g_object_unref (sorter);
 
+      sorter = GTK_SORTER (gtk_string_sorter_new (gtk_property_expression_new (SETTINGS_TYPE_KEY, NULL, 
"type")));
+      gtk_column_view_column_set_sorter (type_column, sorter);
+      g_object_unref (sorter);
+
       g_object_unref (builder);
     }
 


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