cropper

view 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
line source
1 #include <gtk/gtk.h>
3 #include "main.h"
4 #include "support.h"
7 int main (int argc, char *argv[]) {
9 /* commandline option handling */
10 if (argc == 2) {
11 image_filename = argv[1];
12 } else {
13 g_print("cropper -- a crop frontend to convert\n");
14 g_print("usage: cropper IMAGE\n");
15 return 1;
16 }
18 gtk_set_locale();
19 gtk_init(&argc, &argv);
21 add_pixmap_directory("/usr/share/pixmaps");
23 cropper_window = create_cropper_window();
24 gtk_widget_show(cropper_window);
25 gtk_main ();
27 return 0;
28 }