cropper

diff interface.c @ 12:75a30c850ea0

more cosmetic changes
author meillo@marmaro.de
date Thu, 04 Mar 2010 14:23:30 +0100
parents c18ba4ea1514
children 13bc21684b8a
line diff
     1.1 --- a/interface.c	Thu Mar 04 14:18:19 2010 +0100
     1.2 +++ b/interface.c	Thu Mar 04 14:23:30 2010 +0100
     1.3 @@ -297,8 +297,7 @@
     1.4    gtk_widget_set_name(ratio_optionmenu, "ratio_optionmenu");
     1.5    gtk_widget_show(ratio_optionmenu);
     1.6    gtk_table_attach(GTK_TABLE(table3), ratio_optionmenu, 0, 2, 0, 1,
     1.7 -                   (GtkAttachOptions)(GTK_FILL),
     1.8 -                   (GtkAttachOptions)(0), 0, 0);
     1.9 +                   (GtkAttachOptions)(GTK_FILL), (GtkAttachOptions)(0), 0, 0);
    1.10  
    1.11    menu1 = gtk_menu_new();
    1.12    gtk_widget_set_name(menu1, "menu1");
    1.13 @@ -453,95 +452,71 @@
    1.14  
    1.15  
    1.16    g_signal_connect(G_OBJECT(cropper_window), "show",
    1.17 -                    G_CALLBACK(on_cropper_window_create),
    1.18 -                    NULL);
    1.19 +                    G_CALLBACK(on_cropper_window_create), NULL);
    1.20  /* destroy */
    1.21    g_signal_connect(G_OBJECT(cropper_window), "destroy",
    1.22 -                    G_CALLBACK(on_cropper_window_destroy),
    1.23 -                    NULL);
    1.24 +                    G_CALLBACK(on_cropper_window_destroy), NULL);
    1.25  
    1.26  
    1.27  /* crop */
    1.28    g_signal_connect(G_OBJECT(crop_okbutton), "clicked",
    1.29 -                    G_CALLBACK(on_crop_clicked),
    1.30 -                    NULL);
    1.31 +                    G_CALLBACK(on_crop_clicked), NULL);
    1.32  
    1.33  
    1.34  /* zoom */
    1.35  	g_signal_connect(G_OBJECT(crop_zoom_in_button), "clicked",
    1.36 -										G_CALLBACK(on_zoom_in_button_clicked),
    1.37 -										NULL);
    1.38 +	                 G_CALLBACK(on_zoom_in_button_clicked), NULL);
    1.39  	g_signal_connect(G_OBJECT(crop_zoom_out_button), "clicked",
    1.40 -										G_CALLBACK(on_zoom_out_button_clicked),
    1.41 -										NULL);
    1.42 +	                 G_CALLBACK(on_zoom_out_button_clicked), NULL);
    1.43  	g_signal_connect(G_OBJECT(crop_zoom_100_button), "clicked",
    1.44 -										G_CALLBACK(on_zoom_100_button_clicked),
    1.45 -										NULL);
    1.46 +	                 G_CALLBACK(on_zoom_100_button_clicked), NULL);
    1.47  	g_signal_connect(G_OBJECT(crop_zoom_fit_button), "clicked",
    1.48 -										G_CALLBACK(on_zoom_fit_button_clicked),
    1.49 -										NULL);
    1.50 +	                 G_CALLBACK(on_zoom_fit_button_clicked), NULL);
    1.51  
    1.52  
    1.53  /* aspect ratio */
    1.54  /*
    1.55    g_signal_connect(G_OBJECT(ratio_w_spinbutton), "value_changed",
    1.56 -                    G_CALLBACK(on_ratio_w_spinbutton_value_changed),
    1.57 -                    NULL);
    1.58 +                   G_CALLBACK(on_ratio_w_spinbutton_value_changed), NULL);
    1.59    g_signal_connect(G_OBJECT(ratio_swap_button), "clicked",
    1.60 -                    G_CALLBACK(on_ratio_swap_button_clicked),
    1.61 -                    NULL);
    1.62 +                   G_CALLBACK(on_ratio_swap_button_clicked), NULL);
    1.63    g_signal_connect(G_OBJECT(ratio_h_spinbutton), "value_changed",
    1.64 -                    G_CALLBACK(on_ratio_h_spinbutton_value_changed),
    1.65 -                    NULL);
    1.66 +                   G_CALLBACK(on_ratio_h_spinbutton_value_changed), NULL);
    1.67  
    1.68    g_signal_connect(G_OBJECT(ratio_none), "activate",
    1.69 -                    G_CALLBACK(on_ratio_none_activate),
    1.70 -                    NULL);
    1.71 +                   G_CALLBACK(on_ratio_none_activate), NULL);
    1.72    g_signal_connect(G_OBJECT(ratio_square), "activate",
    1.73 -                    G_CALLBACK(on_ratio_square_activate),
    1.74 -                    NULL);
    1.75 +                   G_CALLBACK(on_ratio_square_activate), NULL);
    1.76    g_signal_connect(G_OBJECT(ratio_4x3), "activate",
    1.77 -                    G_CALLBACK(on_ratio_4x3_activate),
    1.78 -                    NULL);
    1.79 +                   G_CALLBACK(on_ratio_4x3_activate), NULL);
    1.80    g_signal_connect(G_OBJECT(ratio_3x2), "activate",
    1.81 -                    G_CALLBACK(on_ratio_3x2_activate),
    1.82 -                    NULL);
    1.83 +                   G_CALLBACK(on_ratio_3x2_activate), NULL);
    1.84    g_signal_connect(G_OBJECT(ratio_custom), "activate",
    1.85 -                    G_CALLBACK(on_ratio_custom_activate),
    1.86 -                    NULL);
    1.87 +                   G_CALLBACK(on_ratio_custom_activate), NULL);
    1.88  
    1.89  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_optionmenu")), "changed",
    1.90 -	G_CALLBACK(ratio_optionmenu_changed_cb),
    1.91 -	NULL);
    1.92 +                 G_CALLBACK(ratio_optionmenu_changed_cb), NULL);
    1.93  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_w_spinbutton")), "value_changed",
    1.94 -	G_CALLBACK(ratio_value_changed_cb),
    1.95 -	NULL);
    1.96 +                 G_CALLBACK(ratio_value_changed_cb), NULL);
    1.97  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_h_spinbutton")), "value_changed",
    1.98 -	G_CALLBACK(ratio_value_changed_cb),
    1.99 -	NULL);
   1.100 +                 G_CALLBACK(ratio_value_changed_cb), NULL);
   1.101  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_swap_button")), "clicked",
   1.102 -	G_CALLBACK(ratio_swap_button_cb),
   1.103 -	NULL);
   1.104 +                 G_CALLBACK(ratio_swap_button_cb), NULL);
   1.105  */
   1.106  
   1.107  
   1.108  /* selection */
   1.109  /*
   1.110  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_x_spinbutton")), "value_changed",
   1.111 -	G_CALLBACK(selection_x_value_changed_cb),
   1.112 -	data);
   1.113 +                 G_CALLBACK(selection_x_value_changed_cb), data);
   1.114  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_y_spinbutton")), "value_changed",
   1.115 -	G_CALLBACK(selection_y_value_changed_cb),
   1.116 -	data);
   1.117 +                 G_CALLBACK(selection_y_value_changed_cb), data);
   1.118  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_width_spinbutton")), "value_changed",
   1.119 -	G_CALLBACK(selection_width_value_changed_cb),
   1.120 -	data);
   1.121 +                 G_CALLBACK(selection_width_value_changed_cb), data);
   1.122  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_height_spinbutton")), "value_changed",
   1.123 -	G_CALLBACK(selection_height_value_changed_cb),
   1.124 -	data);
   1.125 +                 G_CALLBACK(selection_height_value_changed_cb), data);
   1.126  g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_image")), "selection_changed",
   1.127 -	G_CALLBACK(selection_changed_cb),
   1.128 -	data);
   1.129 +                 G_CALLBACK(selection_changed_cb), data);
   1.130  */
   1.131  
   1.132