cropper
diff callbacks.c @ 1:80535e4deaa4
nicer code formating
author | meillo@marmaro.de |
---|---|
date | Tue, 04 Dec 2007 20:23:25 +0100 |
parents | ca9155129253 |
children | e359bea4c8ac |
line diff
1.1 --- a/callbacks.c Tue Dec 04 16:48:51 2007 +0100 1.2 +++ b/callbacks.c Tue Dec 04 20:23:25 2007 +0100 1.3 @@ -1,7 +1,3 @@ 1.4 -#ifdef HAVE_CONFIG_H 1.5 -# include <config.h> 1.6 -#endif 1.7 - 1.8 #include <gtk/gtk.h> 1.9 1.10 #include "callbacks.h" 1.11 @@ -9,119 +5,73 @@ 1.12 #include "support.h" 1.13 1.14 1.15 -void 1.16 -on_none1_activate (GtkMenuItem *menuitem, 1.17 - gpointer user_data) 1.18 -{ 1.19 +void on_none1_activate (GtkMenuItem* menuitem, gpointer user_data) { 1.20 1.21 } 1.22 1.23 1.24 -void 1.25 -on_square1_activate (GtkMenuItem *menuitem, 1.26 - gpointer user_data) 1.27 -{ 1.28 +void on_square1_activate (GtkMenuItem* menuitem, gpointer user_data) { 1.29 1.30 } 1.31 1.32 1.33 -void 1.34 -on_4x3__book__dvd_1_activate (GtkMenuItem *menuitem, 1.35 - gpointer user_data) 1.36 -{ 1.37 +void on_4x3__book__dvd_1_activate (GtkMenuItem* menuitem, gpointer user_data) { 1.38 1.39 } 1.40 1.41 1.42 -void 1.43 -on_4x6__postcard_1_activate (GtkMenuItem *menuitem, 1.44 - gpointer user_data) 1.45 -{ 1.46 +void on_4x6__postcard_1_activate (GtkMenuItem* menuitem, gpointer user_data) { 1.47 1.48 } 1.49 1.50 1.51 -void 1.52 -on_5x1_activate (GtkMenuItem *menuitem, 1.53 - gpointer user_data) 1.54 -{ 1.55 +void on_5x1_activate (GtkMenuItem* menuitem, gpointer user_data) { 1.56 1.57 } 1.58 1.59 1.60 -void 1.61 -on_8x1_activate (GtkMenuItem *menuitem, 1.62 - gpointer user_data) 1.63 -{ 1.64 +void on_8x1_activate (GtkMenuItem* menuitem, gpointer user_data) { 1.65 1.66 } 1.67 1.68 1.69 -void 1.70 -on_custom1_activate (GtkMenuItem *menuitem, 1.71 - gpointer user_data) 1.72 -{ 1.73 +void on_custom1_activate (GtkMenuItem* menuitem, gpointer user_data) { 1.74 1.75 } 1.76 1.77 1.78 -void 1.79 -on_ratio_w_spinbutton_value_changed (GtkSpinButton *spinbutton, 1.80 - gpointer user_data) 1.81 -{ 1.82 +void on_ratio_w_spinbutton_value_changed (GtkSpinButton* spinbutton, gpointer user_data) { 1.83 1.84 } 1.85 1.86 1.87 -void 1.88 -on_ratio_w_spinbutton_change_value (GtkSpinButton *spinbutton, 1.89 - GtkScrollType scroll, 1.90 - gpointer user_data) 1.91 -{ 1.92 +void on_ratio_w_spinbutton_change_value (GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data) { 1.93 1.94 } 1.95 1.96 1.97 -void 1.98 -on_ratio_swap_button_clicked (GtkButton *button, 1.99 - gpointer user_data) 1.100 -{ 1.101 +void on_ratio_swap_button_clicked (GtkButton* button, gpointer user_data) { 1.102 1.103 } 1.104 1.105 1.106 -void 1.107 -on_ratio_h_spinbutton_change_value (GtkSpinButton *spinbutton, 1.108 - GtkScrollType scroll, 1.109 - gpointer user_data) 1.110 -{ 1.111 +void on_ratio_h_spinbutton_change_value (GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data) { 1.112 1.113 } 1.114 1.115 1.116 -void 1.117 -on_ratio_h_spinbutton_value_changed (GtkSpinButton *spinbutton, 1.118 - gpointer user_data) 1.119 -{ 1.120 +void on_ratio_h_spinbutton_value_changed (GtkSpinButton* spinbutton, gpointer user_data) { 1.121 1.122 } 1.123 1.124 1.125 -gboolean 1.126 -on_cropper_window_delete_event (GtkWidget *widget, 1.127 - GdkEvent *event, 1.128 - gpointer user_data) 1.129 -{ 1.130 - 1.131 - g_print ("delete event occurred\n"); 1.132 - return FALSE; 1.133 +gboolean on_cropper_window_delete_event (GtkWidget* widget, GdkEvent *event, gpointer user_data) { 1.134 + g_print("thanks for using the program - visit http://prog.marmaro.de\n"); 1.135 + return FALSE; 1.136 } 1.137 1.138 1.139 -void 1.140 -on_cropper_window_destroy (GtkObject *object, 1.141 - gpointer user_data) 1.142 -{ 1.143 +void on_cropper_window_destroy (GtkObject* object, gpointer user_data) { 1.144 gtk_main_quit(); 1.145 } 1.146