cropper

diff main.c @ 11:c18ba4ea1514

just cosmetic changes
author meillo@marmaro.de
date Thu, 04 Mar 2010 14:18:19 +0100
parents 5e282003f0c1
children da18f2d4f92f
line diff
     1.1 --- a/main.c	Thu Mar 04 13:54:17 2010 +0100
     1.2 +++ b/main.c	Thu Mar 04 14:18:19 2010 +0100
     1.3 @@ -4,17 +4,18 @@
     1.4  #include "support.h"
     1.5  
     1.6  
     1.7 -int main (int argc, char *argv[]) {
     1.8 -
     1.9 +int
    1.10 +main(int argc, char* argv[])
    1.11 +{
    1.12  	/* commandline option handling */
    1.13 -	if (argc == 2) {
    1.14 -		image_filename = argv[1];
    1.15 -	} else {
    1.16 +	if (argc != 2) {
    1.17  		g_print("cropper -- a crop frontend to convert\n");
    1.18  		g_print("usage: cropper IMAGE\n");
    1.19  		return 1;
    1.20  	}
    1.21  
    1.22 +	image_filename = argv[1];
    1.23 +
    1.24  	gtk_set_locale();
    1.25  	gtk_init(&argc, &argv);
    1.26  
    1.27 @@ -22,7 +23,7 @@
    1.28  
    1.29  	cropper_window = create_cropper_window();
    1.30  	gtk_widget_show(cropper_window);
    1.31 -	gtk_main ();
    1.32 +	gtk_main();
    1.33  
    1.34  	return 0;
    1.35  }