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