Mercurial > cropper
annotate main.c @ 12:75a30c850ea0
more cosmetic changes
author | meillo@marmaro.de |
---|---|
date | Thu, 04 Mar 2010 14:23:30 +0100 |
parents | c18ba4ea1514 |
children | da18f2d4f92f |
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 #include "support.h" |
5 | |
2
e359bea4c8ac
added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents:
1
diff
changeset
|
6 |
11 | 7 int |
8 main(int argc, char* argv[]) | |
9 { | |
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
|
10 /* commandline option handling */ |
11 | 11 if (argc != 2) { |
10 | 12 g_print("cropper -- a crop frontend to convert\n"); |
13 g_print("usage: cropper IMAGE\n"); | |
14 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
|
15 } |
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
|
16 |
11 | 17 image_filename = argv[1]; |
18 | |
10 | 19 gtk_set_locale(); |
20 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
|
21 |
10 | 22 add_pixmap_directory("/usr/share/pixmaps"); |
0 | 23 |
10 | 24 cropper_window = create_cropper_window(); |
25 gtk_widget_show(cropper_window); | |
11 | 26 gtk_main(); |
0 | 27 |
10 | 28 return 0; |
0 | 29 } |
30 |