/* gcc -o i insert_with_values.c `pkg-config --cflags --libs gtk+-3.0` && ./i
 */
#include <stdio.h>
#include <gtk/gtk.h>

int main()
{
    GtkListStore *store;
    int i, j;
    static gint cols[] = {0, 1};
    GValue values[2] = {G_VALUE_INIT, G_VALUE_INIT};

    g_value_init (&values[0], G_TYPE_INT);
    g_value_set_int (&values[0], 42);
    g_value_init (&values[1], G_TYPE_INT);
    g_value_set_int (&values[1], 1234);

    for (i = 0; i < 100000; ++i) {
        printf("%i\n", i);
        store = gtk_list_store_new (2, G_TYPE_INT, G_TYPE_INT);

        for (j = 0; j < 10000; ++j)
            gtk_list_store_insert_with_valuesv (store, NULL, -1, cols, values, 2);

        g_object_unref (store);
    }
}
