cropper
view main.c @ 12:75a30c850ea0
more cosmetic changes
author | meillo@marmaro.de |
---|---|
date | Thu, 04 Mar 2010 14:23:30 +0100 |
parents | 5e282003f0c1 |
children | da18f2d4f92f |
line source
1 #include <gtk/gtk.h>
3 #include "main.h"
4 #include "support.h"
7 int
8 main(int argc, char* argv[])
9 {
10 /* commandline option handling */
11 if (argc != 2) {
12 g_print("cropper -- a crop frontend to convert\n");
13 g_print("usage: cropper IMAGE\n");
14 return 1;
15 }
17 image_filename = argv[1];
19 gtk_set_locale();
20 gtk_init(&argc, &argv);
22 add_pixmap_directory("/usr/share/pixmaps");
24 cropper_window = create_cropper_window();
25 gtk_widget_show(cropper_window);
26 gtk_main();
28 return 0;
29 }