#include <gtk/gtk.h>

int main (int argc, char *argv[]) {
    gtk_init (&argc, &argv);

    GtkWidget *win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    GtkWidget *scr = gtk_scrolled_window_new (NULL, NULL);
    GtkWidget *lb = gtk_list_box_new ();
    for (int i=0; i<100; ++i) {
        GtkWidget *tv = gtk_text_view_new ();
        gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (tv)), "aaaaaaaaaaaaaaaaaaaaaaaaaa", -1);
        gtk_container_add (GTK_CONTAINER (lb), tv);
    }

    gtk_container_add (GTK_CONTAINER (scr), lb);
    gtk_container_add (GTK_CONTAINER (win), scr);

    g_signal_connect (win, "delete-event", G_CALLBACK (gtk_main_quit), NULL);
    gtk_widget_show_all (win);

    gtk_main ();
}
