You can also view the source code online: http://git.gnome.org/browse/gtk+/tree/demos/gtk-demo
The main() function is at the very end of main.c
EDIT:
Here is a simple main() function that you can add to the end of the file. You should also remove the #include "demo-common.h" from the beginning.
int main(int argc, char **argv) { GtkWidget *window; gtk_init(&argc, &argv); window = do_textscroll(NULL); g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); gtk_main(); return 0; }
source share