This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This demo GTK 4 program creates a GtkColumnView that shows a list of movies, each with | |
// a year and title. You can click column headers to sort by year or title. The | |
// sorting is implemented using GtkCustomSorter objects. | |
// | |
// To keep things simple, I haven't bothered to deref or free any allocated objects. | |
// | |
// To build, run | |
// $ gcc -Wall `pkg-config --cflags gtk4` -o column_view column_view.c `pkg-config --libs gtk4` | |
#include <gtk/gtk.h> |