#include #include int main(int argc, char *argv[]) { gtk_init (&argc, &argv); if(argc != 2) { printf("Invalid arguments.\n"); return 1; } printf("Filename: %s\n", argv[1]); while(1) { GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file(argv[1], NULL); g_object_unref(pixbuf); } return 0; }