#include #include #include #include "file.h" #include "image.h" #include "option.h" #include "window.h" int main(int argc, char **argv) { gtk_init(&argc, &argv); parse_options(argc, argv); // load the specified image if (load_image(options->file_name)) { exit(EXIT_FAILURE); } // scan other supported image file in the same dir scan(options->file_name); create_main_window(); gtk_main(); return EXIT_SUCCESS; }