gtk-demo: Add more sort columns

Add a second sort column to the Settings demo,
to make it easier to test column view sorting.
This commit is contained in:
Matthias Clasen 2022-10-20 11:38:40 -04:00
parent 4bb79decf3
commit 0149bd49ca

View File

@ -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);
}