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