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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
1 #include <gtk/gtk.h>
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
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
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
4 #include "support.h"
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
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
1
80535e4deaa4 nicer code formating
meillo@marmaro.de
parents: 0
diff changeset
7 int main (int argc, char *argv[]) {
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
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 */
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 if (argc == 2) {
10
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
11 image_filename = argv[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
12 } else {
10
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
13 g_print("cropper -- a crop frontend to convert\n");
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
14 g_print("usage: cropper IMAGE\n");
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
15 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
16 }
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
17
10
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
18 gtk_set_locale();
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
19 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
20
10
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
21 add_pixmap_directory("/usr/share/pixmaps");
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
22
10
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
23 cropper_window = create_cropper_window();
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
24 gtk_widget_show(cropper_window);
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
25 gtk_main ();
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
26
10
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
27 return 0;
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
28 }
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
29