#include <gtk/gtk.h>

int main(int argc, char *argv[])
{
    GtkWidget *window;
    GtkListStore *ls;
    GtkWidget *list;
    GtkCellRenderer *rend;
    GtkTreeViewColumn *col;
    GtkTreeIter iter;

    gtk_init(&argc, &argv);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

    ls = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_BOOLEAN);
    list = gtk_tree_view_new_with_model(GTK_TREE_MODEL(ls));
    rend = gtk_cell_renderer_text_new();
    g_object_set(rend, "weight", PANGO_WEIGHT_BOLD, NULL);
    col = gtk_tree_view_column_new_with_attributes(NULL, rend, "text", 0, "weight-set", 1, NULL);

    gtk_tree_view_append_column(GTK_TREE_VIEW(list), col);

    gtk_container_add(GTK_CONTAINER(window), list);
    gtk_widget_show(list);
    gtk_widget_show(window);

    gtk_list_store_insert_with_values(ls, &iter, 0, 0, "testrow1", 1, FALSE, -1);
    gtk_list_store_insert_with_values(ls, &iter, 0, 0, "testrow2", 1, TRUE, -1);
    gtk_list_store_insert_with_values(ls, &iter, 0, 0, "testrow3", 1, FALSE, -1);

    gtk_main();

    return 0;
}
