Mercurial > cropper
annotate main.c @ 15:7dbf3879939a
removed support.*
author | meillo@marmaro.de |
---|---|
date | Thu, 04 Mar 2010 19:16:10 +0100 |
parents | da18f2d4f92f |
children | 4453456abad1 |
rev | line source |
---|---|
0 | 1 #include <gtk/gtk.h> |
2 | |
2
e359bea4c8ac
added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents:
1
diff
changeset
|
3 #include "main.h" |
0 | 4 |
2
e359bea4c8ac
added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents:
1
diff
changeset
|
5 |
11 | 6 int |
7 main(int argc, char* argv[]) | |
8 { | |
4
2f11ab3e6047
added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents:
2
diff
changeset
|
9 /* commandline option handling */ |
11 | 10 if (argc != 2) { |
10 | 11 g_print("cropper -- a crop frontend to convert\n"); |
12 g_print("usage: cropper IMAGE\n"); | |
13 return 1; | |
4
2f11ab3e6047
added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents:
2
diff
changeset
|
14 } |
2f11ab3e6047
added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents:
2
diff
changeset
|
15 |
11 | 16 image_filename = argv[1]; |
10 | 17 gtk_init(&argc, &argv); |
4
2f11ab3e6047
added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents:
2
diff
changeset
|
18 |
10 | 19 cropper_window = create_cropper_window(); |
20 gtk_widget_show(cropper_window); | |
11 | 21 gtk_main(); |
0 | 22 |
10 | 23 return 0; |
0 | 24 } |
25 |