cropper
diff interface.c @ 11:c18ba4ea1514
just cosmetic changes
author | meillo@marmaro.de |
---|---|
date | Thu, 04 Mar 2010 14:18:19 +0100 |
parents | 5e282003f0c1 |
children | 75a30c850ea0 |
line diff
1.1 --- a/interface.c Thu Mar 04 13:54:17 2010 +0100 1.2 +++ b/interface.c Thu Mar 04 14:18:19 2010 +0100 1.3 @@ -13,14 +13,14 @@ 1.4 #include "support.h" 1.5 1.6 #define GLADE_HOOKUP_OBJECT(component,widget,name) \ 1.7 - g_object_set_data_full (G_OBJECT (component), name, \ 1.8 - gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) 1.9 + g_object_set_data_full(G_OBJECT(component), name, \ 1.10 + gtk_widget_ref(widget),(GDestroyNotify) gtk_widget_unref) 1.11 1.12 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ 1.13 - g_object_set_data (G_OBJECT (component), name, widget) 1.14 + g_object_set_data(G_OBJECT(component), name, widget) 1.15 1.16 GtkWidget* 1.17 -create_cropper_window (void) 1.18 +create_cropper_window(void) 1.19 { 1.20 GtkWidget *cropper_window; 1.21 GtkWidget *dialog_vbox1; 1.22 @@ -90,267 +90,266 @@ 1.23 GtkWidget *label12; 1.24 1.25 1.26 - cropper_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); 1.27 - gtk_widget_set_name (cropper_window, "cropper_window"); 1.28 - gtk_container_set_border_width (GTK_CONTAINER (cropper_window), 6); 1.29 - gtk_window_set_title (GTK_WINDOW (cropper_window), "Cropper"); 1.30 + cropper_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 1.31 + gtk_widget_set_name(cropper_window, "cropper_window"); 1.32 + gtk_container_set_border_width(GTK_CONTAINER(cropper_window), 6); 1.33 + gtk_window_set_title(GTK_WINDOW(cropper_window), "Cropper"); 1.34 1.35 - dialog_vbox1 = gtk_vbox_new (FALSE, 6); 1.36 - gtk_widget_set_name (dialog_vbox1, "dialog_vbox1"); 1.37 - gtk_widget_show (dialog_vbox1); 1.38 - gtk_container_add (GTK_CONTAINER (cropper_window), dialog_vbox1); 1.39 + dialog_vbox1 = gtk_vbox_new(FALSE, 6); 1.40 + gtk_widget_set_name(dialog_vbox1, "dialog_vbox1"); 1.41 + gtk_widget_show(dialog_vbox1); 1.42 + gtk_container_add(GTK_CONTAINER(cropper_window), dialog_vbox1); 1.43 1.44 - hbox1 = gtk_hbox_new (FALSE, 12); 1.45 - gtk_widget_set_name (hbox1, "hbox1"); 1.46 - gtk_widget_show (hbox1); 1.47 - gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox1, TRUE, TRUE, 0); 1.48 - gtk_container_set_border_width (GTK_CONTAINER (hbox1), 5); 1.49 + hbox1 = gtk_hbox_new(FALSE, 12); 1.50 + gtk_widget_set_name(hbox1, "hbox1"); 1.51 + gtk_widget_show(hbox1); 1.52 + gtk_box_pack_start(GTK_BOX(dialog_vbox1), hbox1, TRUE, TRUE, 0); 1.53 + gtk_container_set_border_width(GTK_CONTAINER(hbox1), 5); 1.54 1.55 - vbox1 = gtk_vbox_new (FALSE, 12); 1.56 - gtk_widget_set_name (vbox1, "vbox1"); 1.57 - gtk_widget_show (vbox1); 1.58 - gtk_box_pack_start (GTK_BOX (hbox1), vbox1, FALSE, TRUE, 0); 1.59 + vbox1 = gtk_vbox_new(FALSE, 12); 1.60 + gtk_widget_set_name(vbox1, "vbox1"); 1.61 + gtk_widget_show(vbox1); 1.62 + gtk_box_pack_start(GTK_BOX(hbox1), vbox1, FALSE, TRUE, 0); 1.63 1.64 - vbox2 = gtk_vbox_new (FALSE, 6); 1.65 - gtk_widget_set_name (vbox2, "vbox2"); 1.66 - gtk_widget_show (vbox2); 1.67 - gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, TRUE, 0); 1.68 + vbox2 = gtk_vbox_new(FALSE, 6); 1.69 + gtk_widget_set_name(vbox2, "vbox2"); 1.70 + gtk_widget_show(vbox2); 1.71 + gtk_box_pack_start(GTK_BOX(vbox1), vbox2, FALSE, TRUE, 0); 1.72 1.73 - label1 = gtk_label_new ("<b>Selection</b>"); 1.74 - gtk_widget_set_name (label1, "label1"); 1.75 - gtk_widget_show (label1); 1.76 - gtk_box_pack_start (GTK_BOX (vbox2), label1, FALSE, FALSE, 0); 1.77 - gtk_label_set_use_markup (GTK_LABEL (label1), TRUE); 1.78 - gtk_misc_set_alignment (GTK_MISC (label1), 0, 0.5); 1.79 + label1 = gtk_label_new("<b>Selection</b>"); 1.80 + gtk_widget_set_name(label1, "label1"); 1.81 + gtk_widget_show(label1); 1.82 + gtk_box_pack_start(GTK_BOX(vbox2), label1, FALSE, FALSE, 0); 1.83 + gtk_label_set_use_markup(GTK_LABEL(label1), TRUE); 1.84 + gtk_misc_set_alignment(GTK_MISC(label1), 0, 0.5); 1.85 1.86 - hbox2 = gtk_hbox_new (FALSE, 0); 1.87 - gtk_widget_set_name (hbox2, "hbox2"); 1.88 - gtk_widget_show (hbox2); 1.89 - gtk_box_pack_start (GTK_BOX (vbox2), hbox2, FALSE, TRUE, 0); 1.90 + hbox2 = gtk_hbox_new(FALSE, 0); 1.91 + gtk_widget_set_name(hbox2, "hbox2"); 1.92 + gtk_widget_show(hbox2); 1.93 + gtk_box_pack_start(GTK_BOX(vbox2), hbox2, FALSE, TRUE, 0); 1.94 1.95 - label2 = gtk_label_new (" "); 1.96 - gtk_widget_set_name (label2, "label2"); 1.97 - gtk_widget_show (label2); 1.98 - gtk_box_pack_start (GTK_BOX (hbox2), label2, FALSE, FALSE, 0); 1.99 + label2 = gtk_label_new(" "); 1.100 + gtk_widget_set_name(label2, "label2"); 1.101 + gtk_widget_show(label2); 1.102 + gtk_box_pack_start(GTK_BOX(hbox2), label2, FALSE, FALSE, 0); 1.103 1.104 - table2 = gtk_table_new (4, 2, FALSE); 1.105 - gtk_widget_set_name (table2, "table2"); 1.106 - gtk_widget_show (table2); 1.107 - gtk_box_pack_start (GTK_BOX (hbox2), table2, TRUE, TRUE, 0); 1.108 - gtk_table_set_row_spacings (GTK_TABLE (table2), 6); 1.109 - gtk_table_set_col_spacings (GTK_TABLE (table2), 6); 1.110 + table2 = gtk_table_new(4, 2, FALSE); 1.111 + gtk_widget_set_name(table2, "table2"); 1.112 + gtk_widget_show(table2); 1.113 + gtk_box_pack_start(GTK_BOX(hbox2), table2, TRUE, TRUE, 0); 1.114 + gtk_table_set_row_spacings(GTK_TABLE(table2), 6); 1.115 + gtk_table_set_col_spacings(GTK_TABLE(table2), 6); 1.116 1.117 - label3 = gtk_label_new_with_mnemonic ("_X:"); 1.118 - gtk_widget_set_name (label3, "label3"); 1.119 - gtk_widget_show (label3); 1.120 - gtk_table_attach (GTK_TABLE (table2), label3, 0, 1, 0, 1, 1.121 - (GtkAttachOptions) (GTK_FILL), 1.122 - (GtkAttachOptions) (0), 0, 0); 1.123 - gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5); 1.124 + label3 = gtk_label_new_with_mnemonic("_X:"); 1.125 + gtk_widget_set_name(label3, "label3"); 1.126 + gtk_widget_show(label3); 1.127 + gtk_table_attach(GTK_TABLE(table2), label3, 0, 1, 0, 1,(GtkAttachOptions)(GTK_FILL), 1.128 + (GtkAttachOptions)(0), 0, 0); 1.129 + gtk_misc_set_alignment(GTK_MISC(label3), 0, 0.5); 1.130 1.131 - label5 = gtk_label_new_with_mnemonic ("_Y:"); 1.132 - gtk_widget_set_name (label5, "label5"); 1.133 - gtk_widget_show (label5); 1.134 - gtk_table_attach (GTK_TABLE (table2), label5, 0, 1, 1, 2, 1.135 - (GtkAttachOptions) (GTK_FILL), 1.136 - (GtkAttachOptions) (0), 0, 0); 1.137 - gtk_misc_set_alignment (GTK_MISC (label5), 0, 0.5); 1.138 + label5 = gtk_label_new_with_mnemonic("_Y:"); 1.139 + gtk_widget_set_name(label5, "label5"); 1.140 + gtk_widget_show(label5); 1.141 + gtk_table_attach(GTK_TABLE(table2), label5, 0, 1, 1, 2, 1.142 + (GtkAttachOptions)(GTK_FILL), 1.143 + (GtkAttachOptions)(0), 0, 0); 1.144 + gtk_misc_set_alignment(GTK_MISC(label5), 0, 0.5); 1.145 1.146 - label4 = gtk_label_new_with_mnemonic ("_Width:"); 1.147 - gtk_widget_set_name (label4, "label4"); 1.148 - gtk_widget_show (label4); 1.149 - gtk_table_attach (GTK_TABLE (table2), label4, 0, 1, 2, 3, 1.150 - (GtkAttachOptions) (GTK_FILL), 1.151 - (GtkAttachOptions) (0), 0, 0); 1.152 - gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5); 1.153 + label4 = gtk_label_new_with_mnemonic("_Width:"); 1.154 + gtk_widget_set_name(label4, "label4"); 1.155 + gtk_widget_show(label4); 1.156 + gtk_table_attach(GTK_TABLE(table2), label4, 0, 1, 2, 3, 1.157 + (GtkAttachOptions)(GTK_FILL), 1.158 + (GtkAttachOptions)(0), 0, 0); 1.159 + gtk_misc_set_alignment(GTK_MISC(label4), 0, 0.5); 1.160 1.161 - label6 = gtk_label_new_with_mnemonic ("_Height:"); 1.162 - gtk_widget_set_name (label6, "label6"); 1.163 - gtk_widget_show (label6); 1.164 - gtk_table_attach (GTK_TABLE (table2), label6, 0, 1, 3, 4, 1.165 - (GtkAttachOptions) (GTK_FILL), 1.166 - (GtkAttachOptions) (0), 0, 0); 1.167 - gtk_misc_set_alignment (GTK_MISC (label6), 0, 0.5); 1.168 + label6 = gtk_label_new_with_mnemonic("_Height:"); 1.169 + gtk_widget_set_name(label6, "label6"); 1.170 + gtk_widget_show(label6); 1.171 + gtk_table_attach(GTK_TABLE(table2), label6, 0, 1, 3, 4, 1.172 + (GtkAttachOptions)(GTK_FILL), 1.173 + (GtkAttachOptions)(0), 0, 0); 1.174 + gtk_misc_set_alignment(GTK_MISC(label6), 0, 0.5); 1.175 1.176 - hbox5 = gtk_hbox_new (FALSE, 0); 1.177 - gtk_widget_set_name (hbox5, "hbox5"); 1.178 - gtk_widget_show (hbox5); 1.179 - gtk_table_attach (GTK_TABLE (table2), hbox5, 1, 2, 0, 1, 1.180 - (GtkAttachOptions) (GTK_FILL), 1.181 - (GtkAttachOptions) (GTK_FILL), 0, 0); 1.182 + hbox5 = gtk_hbox_new(FALSE, 0); 1.183 + gtk_widget_set_name(hbox5, "hbox5"); 1.184 + gtk_widget_show(hbox5); 1.185 + gtk_table_attach(GTK_TABLE(table2), hbox5, 1, 2, 0, 1, 1.186 + (GtkAttachOptions)(GTK_FILL), 1.187 + (GtkAttachOptions)(GTK_FILL), 0, 0); 1.188 1.189 - crop_x_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1); 1.190 - crop_x_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_x_spinbutton_adj), 1, 0); 1.191 - gtk_widget_set_name (crop_x_spinbutton, "crop_x_spinbutton"); 1.192 - gtk_widget_show (crop_x_spinbutton); 1.193 - gtk_box_pack_start (GTK_BOX (hbox5), crop_x_spinbutton, FALSE, TRUE, 0); 1.194 + crop_x_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1); 1.195 + crop_x_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_x_spinbutton_adj), 1, 0); 1.196 + gtk_widget_set_name(crop_x_spinbutton, "crop_x_spinbutton"); 1.197 + gtk_widget_show(crop_x_spinbutton); 1.198 + gtk_box_pack_start(GTK_BOX(hbox5), crop_x_spinbutton, FALSE, TRUE, 0); 1.199 1.200 - hbox6 = gtk_hbox_new (FALSE, 0); 1.201 - gtk_widget_set_name (hbox6, "hbox6"); 1.202 - gtk_widget_show (hbox6); 1.203 - gtk_table_attach (GTK_TABLE (table2), hbox6, 1, 2, 1, 2, 1.204 - (GtkAttachOptions) (GTK_FILL), 1.205 - (GtkAttachOptions) (GTK_FILL), 0, 0); 1.206 + hbox6 = gtk_hbox_new(FALSE, 0); 1.207 + gtk_widget_set_name(hbox6, "hbox6"); 1.208 + gtk_widget_show(hbox6); 1.209 + gtk_table_attach(GTK_TABLE(table2), hbox6, 1, 2, 1, 2, 1.210 + (GtkAttachOptions)(GTK_FILL), 1.211 + (GtkAttachOptions)(GTK_FILL), 0, 0); 1.212 1.213 - crop_y_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1); 1.214 - crop_y_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_y_spinbutton_adj), 1, 0); 1.215 - gtk_widget_set_name (crop_y_spinbutton, "crop_y_spinbutton"); 1.216 - gtk_widget_show (crop_y_spinbutton); 1.217 - gtk_box_pack_start (GTK_BOX (hbox6), crop_y_spinbutton, FALSE, TRUE, 0); 1.218 + crop_y_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1); 1.219 + crop_y_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_y_spinbutton_adj), 1, 0); 1.220 + gtk_widget_set_name(crop_y_spinbutton, "crop_y_spinbutton"); 1.221 + gtk_widget_show(crop_y_spinbutton); 1.222 + gtk_box_pack_start(GTK_BOX(hbox6), crop_y_spinbutton, FALSE, TRUE, 0); 1.223 1.224 - hbox7 = gtk_hbox_new (FALSE, 0); 1.225 - gtk_widget_set_name (hbox7, "hbox7"); 1.226 - gtk_widget_show (hbox7); 1.227 - gtk_table_attach (GTK_TABLE (table2), hbox7, 1, 2, 2, 3, 1.228 - (GtkAttachOptions) (GTK_FILL), 1.229 - (GtkAttachOptions) (GTK_FILL), 0, 0); 1.230 + hbox7 = gtk_hbox_new(FALSE, 0); 1.231 + gtk_widget_set_name(hbox7, "hbox7"); 1.232 + gtk_widget_show(hbox7); 1.233 + gtk_table_attach(GTK_TABLE(table2), hbox7, 1, 2, 2, 3, 1.234 + (GtkAttachOptions)(GTK_FILL), 1.235 + (GtkAttachOptions)(GTK_FILL), 0, 0); 1.236 1.237 - crop_width_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1); 1.238 - crop_width_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_width_spinbutton_adj), 1, 0); 1.239 - gtk_widget_set_name (crop_width_spinbutton, "crop_width_spinbutton"); 1.240 - gtk_widget_show (crop_width_spinbutton); 1.241 - gtk_box_pack_start (GTK_BOX (hbox7), crop_width_spinbutton, FALSE, FALSE, 0); 1.242 + crop_width_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1); 1.243 + crop_width_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_width_spinbutton_adj), 1, 0); 1.244 + gtk_widget_set_name(crop_width_spinbutton, "crop_width_spinbutton"); 1.245 + gtk_widget_show(crop_width_spinbutton); 1.246 + gtk_box_pack_start(GTK_BOX(hbox7), crop_width_spinbutton, FALSE, FALSE, 0); 1.247 1.248 - hbox8 = gtk_hbox_new (FALSE, 0); 1.249 - gtk_widget_set_name (hbox8, "hbox8"); 1.250 - gtk_widget_show (hbox8); 1.251 - gtk_table_attach (GTK_TABLE (table2), hbox8, 1, 2, 3, 4, 1.252 - (GtkAttachOptions) (GTK_FILL), 1.253 - (GtkAttachOptions) (GTK_FILL), 0, 0); 1.254 + hbox8 = gtk_hbox_new(FALSE, 0); 1.255 + gtk_widget_set_name(hbox8, "hbox8"); 1.256 + gtk_widget_show(hbox8); 1.257 + gtk_table_attach(GTK_TABLE(table2), hbox8, 1, 2, 3, 4, 1.258 + (GtkAttachOptions)(GTK_FILL), 1.259 + (GtkAttachOptions)(GTK_FILL), 0, 0); 1.260 1.261 - crop_height_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1); 1.262 - crop_height_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_height_spinbutton_adj), 1, 0); 1.263 - gtk_widget_set_name (crop_height_spinbutton, "crop_height_spinbutton"); 1.264 - gtk_widget_show (crop_height_spinbutton); 1.265 - gtk_box_pack_start (GTK_BOX (hbox8), crop_height_spinbutton, FALSE, FALSE, 0); 1.266 + crop_height_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1); 1.267 + crop_height_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_height_spinbutton_adj), 1, 0); 1.268 + gtk_widget_set_name(crop_height_spinbutton, "crop_height_spinbutton"); 1.269 + gtk_widget_show(crop_height_spinbutton); 1.270 + gtk_box_pack_start(GTK_BOX(hbox8), crop_height_spinbutton, FALSE, FALSE, 0); 1.271 1.272 - vbox4 = gtk_vbox_new (FALSE, 6); 1.273 - gtk_widget_set_name (vbox4, "vbox4"); 1.274 - gtk_widget_show (vbox4); 1.275 - gtk_box_pack_start (GTK_BOX (vbox1), vbox4, FALSE, TRUE, 0); 1.276 + vbox4 = gtk_vbox_new(FALSE, 6); 1.277 + gtk_widget_set_name(vbox4, "vbox4"); 1.278 + gtk_widget_show(vbox4); 1.279 + gtk_box_pack_start(GTK_BOX(vbox1), vbox4, FALSE, TRUE, 0); 1.280 1.281 - label7 = gtk_label_new ("<b>Aspect ratio</b>"); 1.282 - gtk_widget_set_name (label7, "label7"); 1.283 - gtk_widget_show (label7); 1.284 - gtk_box_pack_start (GTK_BOX (vbox4), label7, FALSE, FALSE, 0); 1.285 - gtk_label_set_use_markup (GTK_LABEL (label7), TRUE); 1.286 - gtk_misc_set_alignment (GTK_MISC (label7), 0, 0.5); 1.287 + label7 = gtk_label_new("<b>Aspect ratio</b>"); 1.288 + gtk_widget_set_name(label7, "label7"); 1.289 + gtk_widget_show(label7); 1.290 + gtk_box_pack_start(GTK_BOX(vbox4), label7, FALSE, FALSE, 0); 1.291 + gtk_label_set_use_markup(GTK_LABEL(label7), TRUE); 1.292 + gtk_misc_set_alignment(GTK_MISC(label7), 0, 0.5); 1.293 1.294 - hbox3 = gtk_hbox_new (FALSE, 0); 1.295 - gtk_widget_set_name (hbox3, "hbox3"); 1.296 - gtk_widget_show (hbox3); 1.297 - gtk_box_pack_start (GTK_BOX (vbox4), hbox3, FALSE, FALSE, 0); 1.298 + hbox3 = gtk_hbox_new(FALSE, 0); 1.299 + gtk_widget_set_name(hbox3, "hbox3"); 1.300 + gtk_widget_show(hbox3); 1.301 + gtk_box_pack_start(GTK_BOX(vbox4), hbox3, FALSE, FALSE, 0); 1.302 1.303 - label8 = gtk_label_new (" "); 1.304 - gtk_widget_set_name (label8, "label8"); 1.305 - gtk_widget_show (label8); 1.306 - gtk_box_pack_start (GTK_BOX (hbox3), label8, FALSE, FALSE, 0); 1.307 + label8 = gtk_label_new(" "); 1.308 + gtk_widget_set_name(label8, "label8"); 1.309 + gtk_widget_show(label8); 1.310 + gtk_box_pack_start(GTK_BOX(hbox3), label8, FALSE, FALSE, 0); 1.311 1.312 - table3 = gtk_table_new (2, 2, FALSE); 1.313 - gtk_widget_set_name (table3, "table3"); 1.314 - gtk_widget_show (table3); 1.315 - gtk_box_pack_start (GTK_BOX (hbox3), table3, TRUE, TRUE, 0); 1.316 - gtk_table_set_row_spacings (GTK_TABLE (table3), 6); 1.317 - gtk_table_set_col_spacings (GTK_TABLE (table3), 6); 1.318 + table3 = gtk_table_new(2, 2, FALSE); 1.319 + gtk_widget_set_name(table3, "table3"); 1.320 + gtk_widget_show(table3); 1.321 + gtk_box_pack_start(GTK_BOX(hbox3), table3, TRUE, TRUE, 0); 1.322 + gtk_table_set_row_spacings(GTK_TABLE(table3), 6); 1.323 + gtk_table_set_col_spacings(GTK_TABLE(table3), 6); 1.324 1.325 - hbox10 = gtk_hbox_new (FALSE, 6); 1.326 - gtk_widget_set_name (hbox10, "hbox10"); 1.327 - gtk_widget_show (hbox10); 1.328 - gtk_table_attach (GTK_TABLE (table3), hbox10, 0, 2, 1, 2, 1.329 - (GtkAttachOptions) (GTK_FILL), 1.330 - (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); 1.331 + hbox10 = gtk_hbox_new(FALSE, 6); 1.332 + gtk_widget_set_name(hbox10, "hbox10"); 1.333 + gtk_widget_show(hbox10); 1.334 + gtk_table_attach(GTK_TABLE(table3), hbox10, 0, 2, 1, 2, 1.335 + (GtkAttachOptions)(GTK_FILL), 1.336 + (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), 0, 0); 1.337 1.338 - custom_ratio_box = gtk_hbox_new (FALSE, 6); 1.339 - gtk_widget_set_name (custom_ratio_box, "custom_ratio_box"); 1.340 - gtk_widget_show (custom_ratio_box); 1.341 - gtk_box_pack_start (GTK_BOX (hbox10), custom_ratio_box, TRUE, TRUE, 0); 1.342 + custom_ratio_box = gtk_hbox_new(FALSE, 6); 1.343 + gtk_widget_set_name(custom_ratio_box, "custom_ratio_box"); 1.344 + gtk_widget_show(custom_ratio_box); 1.345 + gtk_box_pack_start(GTK_BOX(hbox10), custom_ratio_box, TRUE, TRUE, 0); 1.346 1.347 - ratio_w_spinbutton_adj = gtk_adjustment_new (1, 1, 9999, 1, 10, 10); 1.348 - ratio_w_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (ratio_w_spinbutton_adj), 1, 0); 1.349 - gtk_widget_set_name (ratio_w_spinbutton, "ratio_w_spinbutton"); 1.350 - gtk_widget_show (ratio_w_spinbutton); 1.351 - gtk_box_pack_start (GTK_BOX (custom_ratio_box), ratio_w_spinbutton, FALSE, TRUE, 0); 1.352 + ratio_w_spinbutton_adj = gtk_adjustment_new(1, 1, 9999, 1, 10, 10); 1.353 + ratio_w_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(ratio_w_spinbutton_adj), 1, 0); 1.354 + gtk_widget_set_name(ratio_w_spinbutton, "ratio_w_spinbutton"); 1.355 + gtk_widget_show(ratio_w_spinbutton); 1.356 + gtk_box_pack_start(GTK_BOX(custom_ratio_box), ratio_w_spinbutton, FALSE, TRUE, 0); 1.357 1.358 - ratio_swap_button = gtk_button_new (); 1.359 - gtk_widget_set_name (ratio_swap_button, "ratio_swap_button"); 1.360 - gtk_widget_show (ratio_swap_button); 1.361 - gtk_box_pack_start (GTK_BOX (custom_ratio_box), ratio_swap_button, FALSE, FALSE, 0); 1.362 - gtk_button_set_relief (GTK_BUTTON (ratio_swap_button), GTK_RELIEF_NONE); 1.363 + ratio_swap_button = gtk_button_new(); 1.364 + gtk_widget_set_name(ratio_swap_button, "ratio_swap_button"); 1.365 + gtk_widget_show(ratio_swap_button); 1.366 + gtk_box_pack_start(GTK_BOX(custom_ratio_box), ratio_swap_button, FALSE, FALSE, 0); 1.367 + gtk_button_set_relief(GTK_BUTTON(ratio_swap_button), GTK_RELIEF_NONE); 1.368 1.369 - eventbox1 = gtk_event_box_new (); 1.370 - gtk_widget_set_name (eventbox1, "eventbox1"); 1.371 - gtk_widget_show (eventbox1); 1.372 - gtk_container_add (GTK_CONTAINER (ratio_swap_button), eventbox1); 1.373 + eventbox1 = gtk_event_box_new(); 1.374 + gtk_widget_set_name(eventbox1, "eventbox1"); 1.375 + gtk_widget_show(eventbox1); 1.376 + gtk_container_add(GTK_CONTAINER(ratio_swap_button), eventbox1); 1.377 1.378 - ratio_swap_image = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_BUTTON); 1.379 - gtk_widget_set_name (ratio_swap_image, "ratio_swap_image"); 1.380 - gtk_widget_show (ratio_swap_image); 1.381 - gtk_container_add (GTK_CONTAINER (eventbox1), ratio_swap_image); 1.382 + ratio_swap_image = gtk_image_new_from_stock("gtk-refresh", GTK_ICON_SIZE_BUTTON); 1.383 + gtk_widget_set_name(ratio_swap_image, "ratio_swap_image"); 1.384 + gtk_widget_show(ratio_swap_image); 1.385 + gtk_container_add(GTK_CONTAINER(eventbox1), ratio_swap_image); 1.386 1.387 - ratio_h_spinbutton_adj = gtk_adjustment_new (1, 1, 9999, 1, 10, 10); 1.388 - ratio_h_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (ratio_h_spinbutton_adj), 1, 0); 1.389 - gtk_widget_set_name (ratio_h_spinbutton, "ratio_h_spinbutton"); 1.390 - gtk_widget_show (ratio_h_spinbutton); 1.391 - gtk_box_pack_start (GTK_BOX (custom_ratio_box), ratio_h_spinbutton, FALSE, TRUE, 0); 1.392 - gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (ratio_h_spinbutton), GTK_UPDATE_IF_VALID); 1.393 + ratio_h_spinbutton_adj = gtk_adjustment_new(1, 1, 9999, 1, 10, 10); 1.394 + ratio_h_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(ratio_h_spinbutton_adj), 1, 0); 1.395 + gtk_widget_set_name(ratio_h_spinbutton, "ratio_h_spinbutton"); 1.396 + gtk_widget_show(ratio_h_spinbutton); 1.397 + gtk_box_pack_start(GTK_BOX(custom_ratio_box), ratio_h_spinbutton, FALSE, TRUE, 0); 1.398 + gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(ratio_h_spinbutton), GTK_UPDATE_IF_VALID); 1.399 1.400 - ratio_optionmenu = gtk_option_menu_new (); 1.401 - gtk_widget_set_name (ratio_optionmenu, "ratio_optionmenu"); 1.402 - gtk_widget_show (ratio_optionmenu); 1.403 - gtk_table_attach (GTK_TABLE (table3), ratio_optionmenu, 0, 2, 0, 1, 1.404 - (GtkAttachOptions) (GTK_FILL), 1.405 - (GtkAttachOptions) (0), 0, 0); 1.406 + ratio_optionmenu = gtk_option_menu_new(); 1.407 + gtk_widget_set_name(ratio_optionmenu, "ratio_optionmenu"); 1.408 + gtk_widget_show(ratio_optionmenu); 1.409 + gtk_table_attach(GTK_TABLE(table3), ratio_optionmenu, 0, 2, 0, 1, 1.410 + (GtkAttachOptions)(GTK_FILL), 1.411 + (GtkAttachOptions)(0), 0, 0); 1.412 1.413 - menu1 = gtk_menu_new (); 1.414 - gtk_widget_set_name (menu1, "menu1"); 1.415 + menu1 = gtk_menu_new(); 1.416 + gtk_widget_set_name(menu1, "menu1"); 1.417 1.418 - ratio_none = gtk_menu_item_new_with_mnemonic ("None"); 1.419 - gtk_widget_set_name (ratio_none, "ratio_none"); 1.420 - gtk_widget_show (ratio_none); 1.421 - gtk_container_add (GTK_CONTAINER (menu1), ratio_none); 1.422 + ratio_none = gtk_menu_item_new_with_mnemonic("None"); 1.423 + gtk_widget_set_name(ratio_none, "ratio_none"); 1.424 + gtk_widget_show(ratio_none); 1.425 + gtk_container_add(GTK_CONTAINER(menu1), ratio_none); 1.426 1.427 - ratio_square = gtk_menu_item_new_with_mnemonic ("Square"); 1.428 - gtk_widget_set_name (ratio_square, "ratio_square"); 1.429 - gtk_widget_show (ratio_square); 1.430 - gtk_container_add (GTK_CONTAINER (menu1), ratio_square); 1.431 + ratio_square = gtk_menu_item_new_with_mnemonic("Square"); 1.432 + gtk_widget_set_name(ratio_square, "ratio_square"); 1.433 + gtk_widget_show(ratio_square); 1.434 + gtk_container_add(GTK_CONTAINER(menu1), ratio_square); 1.435 1.436 - ratio_4x3 = gtk_menu_item_new_with_mnemonic ("4 x 3 (Book, DVD)"); 1.437 - gtk_widget_set_name (ratio_4x3, "ratio_4x3"); 1.438 - gtk_widget_show (ratio_4x3); 1.439 - gtk_container_add (GTK_CONTAINER (menu1), ratio_4x3); 1.440 + ratio_4x3 = gtk_menu_item_new_with_mnemonic("4 x 3(Book, DVD)"); 1.441 + gtk_widget_set_name(ratio_4x3, "ratio_4x3"); 1.442 + gtk_widget_show(ratio_4x3); 1.443 + gtk_container_add(GTK_CONTAINER(menu1), ratio_4x3); 1.444 1.445 - ratio_3x2 = gtk_menu_item_new_with_mnemonic ("4 x 6 (Postcard)"); 1.446 - gtk_widget_set_name (ratio_3x2, "ratio_3x2"); 1.447 - gtk_widget_show (ratio_3x2); 1.448 - gtk_container_add (GTK_CONTAINER (menu1), ratio_3x2); 1.449 + ratio_3x2 = gtk_menu_item_new_with_mnemonic("4 x 6(Postcard)"); 1.450 + gtk_widget_set_name(ratio_3x2, "ratio_3x2"); 1.451 + gtk_widget_show(ratio_3x2); 1.452 + gtk_container_add(GTK_CONTAINER(menu1), ratio_3x2); 1.453 1.454 - ratio_custom = gtk_menu_item_new_with_mnemonic ("Custom"); 1.455 - gtk_widget_set_name (ratio_custom, "ratio_custom"); 1.456 - gtk_widget_show (ratio_custom); 1.457 - gtk_container_add (GTK_CONTAINER (menu1), ratio_custom); 1.458 + ratio_custom = gtk_menu_item_new_with_mnemonic("Custom"); 1.459 + gtk_widget_set_name(ratio_custom, "ratio_custom"); 1.460 + gtk_widget_show(ratio_custom); 1.461 + gtk_container_add(GTK_CONTAINER(menu1), ratio_custom); 1.462 1.463 - gtk_option_menu_set_menu (GTK_OPTION_MENU (ratio_optionmenu), menu1); 1.464 + gtk_option_menu_set_menu(GTK_OPTION_MENU(ratio_optionmenu), menu1); 1.465 1.466 - vbox5 = gtk_vbox_new (FALSE, 0); 1.467 - gtk_widget_set_name (vbox5, "vbox5"); 1.468 - gtk_widget_show (vbox5); 1.469 - gtk_box_pack_start (GTK_BOX (hbox1), vbox5, TRUE, TRUE, 0); 1.470 + vbox5 = gtk_vbox_new(FALSE, 0); 1.471 + gtk_widget_set_name(vbox5, "vbox5"); 1.472 + gtk_widget_show(vbox5); 1.473 + gtk_box_pack_start(GTK_BOX(hbox1), vbox5, TRUE, TRUE, 0); 1.474 1.475 - frame1 = gtk_frame_new (NULL); 1.476 - gtk_widget_set_name (frame1, "frame1"); 1.477 - gtk_widget_show (frame1); 1.478 - gtk_box_pack_start (GTK_BOX (vbox5), frame1, TRUE, TRUE, 0); 1.479 - gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_NONE); 1.480 + frame1 = gtk_frame_new(NULL); 1.481 + gtk_widget_set_name(frame1, "frame1"); 1.482 + gtk_widget_show(frame1); 1.483 + gtk_box_pack_start(GTK_BOX(vbox5), frame1, TRUE, TRUE, 0); 1.484 + gtk_frame_set_shadow_type(GTK_FRAME(frame1), GTK_SHADOW_NONE); 1.485 1.486 - vbox7 = gtk_vbox_new (FALSE, 6); 1.487 - gtk_widget_set_name (vbox7, "vbox7"); 1.488 - gtk_widget_show (vbox7); 1.489 - gtk_container_add (GTK_CONTAINER (frame1), vbox7); 1.490 + vbox7 = gtk_vbox_new(FALSE, 6); 1.491 + gtk_widget_set_name(vbox7, "vbox7"); 1.492 + gtk_widget_show(vbox7); 1.493 + gtk_container_add(GTK_CONTAINER(frame1), vbox7); 1.494 1.495 - nav_container = gtk_hbox_new (FALSE, 0); 1.496 - gtk_widget_set_name (nav_container, "nav_container"); 1.497 - gtk_widget_show (nav_container); 1.498 - gtk_box_pack_start (GTK_BOX (vbox7), nav_container, TRUE, TRUE, 0); 1.499 + nav_container = gtk_hbox_new(FALSE, 0); 1.500 + gtk_widget_set_name(nav_container, "nav_container"); 1.501 + gtk_widget_show(nav_container); 1.502 + gtk_box_pack_start(GTK_BOX(vbox7), nav_container, TRUE, TRUE, 0); 1.503 1.504 /* image_area */ 1.505 image_buffer = gdk_pixbuf_new_from_file(image_filename, NULL); 1.506 @@ -360,188 +359,188 @@ 1.507 gtk_widget_show(image_area); 1.508 gtk_box_pack_start(GTK_BOX(nav_container), image_area, TRUE, TRUE, 0); 1.509 1.510 - hbox16 = gtk_hbox_new (FALSE, 6); 1.511 - gtk_widget_set_name (hbox16, "hbox16"); 1.512 - gtk_widget_show (hbox16); 1.513 - gtk_box_pack_start (GTK_BOX (vbox7), hbox16, FALSE, TRUE, 0); 1.514 + hbox16 = gtk_hbox_new(FALSE, 6); 1.515 + gtk_widget_set_name(hbox16, "hbox16"); 1.516 + gtk_widget_show(hbox16); 1.517 + gtk_box_pack_start(GTK_BOX(vbox7), hbox16, FALSE, TRUE, 0); 1.518 1.519 - hbox17 = gtk_hbox_new (FALSE, 0); 1.520 - gtk_widget_set_name (hbox17, "hbox17"); 1.521 - gtk_widget_show (hbox17); 1.522 - gtk_box_pack_end (GTK_BOX (hbox16), hbox17, FALSE, TRUE, 0); 1.523 + hbox17 = gtk_hbox_new(FALSE, 0); 1.524 + gtk_widget_set_name(hbox17, "hbox17"); 1.525 + gtk_widget_show(hbox17); 1.526 + gtk_box_pack_end(GTK_BOX(hbox16), hbox17, FALSE, TRUE, 0); 1.527 1.528 - crop_zoom_in_button = gtk_button_new (); 1.529 - gtk_widget_set_name (crop_zoom_in_button, "crop_zoom_in_button"); 1.530 - gtk_widget_show (crop_zoom_in_button); 1.531 - gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_in_button, FALSE, FALSE, 0); 1.532 - gtk_button_set_relief (GTK_BUTTON (crop_zoom_in_button), GTK_RELIEF_NONE); 1.533 + crop_zoom_in_button = gtk_button_new(); 1.534 + gtk_widget_set_name(crop_zoom_in_button, "crop_zoom_in_button"); 1.535 + gtk_widget_show(crop_zoom_in_button); 1.536 + gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_in_button, FALSE, FALSE, 0); 1.537 + gtk_button_set_relief(GTK_BUTTON(crop_zoom_in_button), GTK_RELIEF_NONE); 1.538 1.539 - image2 = gtk_image_new_from_stock ("gtk-zoom-in", GTK_ICON_SIZE_BUTTON); 1.540 - gtk_widget_set_name (image2, "image2"); 1.541 - gtk_widget_show (image2); 1.542 - gtk_container_add (GTK_CONTAINER (crop_zoom_in_button), image2); 1.543 + image2 = gtk_image_new_from_stock("gtk-zoom-in", GTK_ICON_SIZE_BUTTON); 1.544 + gtk_widget_set_name(image2, "image2"); 1.545 + gtk_widget_show(image2); 1.546 + gtk_container_add(GTK_CONTAINER(crop_zoom_in_button), image2); 1.547 1.548 - crop_zoom_out_button = gtk_button_new (); 1.549 - gtk_widget_set_name (crop_zoom_out_button, "crop_zoom_out_button"); 1.550 - gtk_widget_show (crop_zoom_out_button); 1.551 - gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_out_button, FALSE, FALSE, 0); 1.552 - gtk_button_set_relief (GTK_BUTTON (crop_zoom_out_button), GTK_RELIEF_NONE); 1.553 + crop_zoom_out_button = gtk_button_new(); 1.554 + gtk_widget_set_name(crop_zoom_out_button, "crop_zoom_out_button"); 1.555 + gtk_widget_show(crop_zoom_out_button); 1.556 + gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_out_button, FALSE, FALSE, 0); 1.557 + gtk_button_set_relief(GTK_BUTTON(crop_zoom_out_button), GTK_RELIEF_NONE); 1.558 1.559 - image4 = gtk_image_new_from_stock ("gtk-zoom-out", GTK_ICON_SIZE_BUTTON); 1.560 - gtk_widget_set_name (image4, "image4"); 1.561 - gtk_widget_show (image4); 1.562 - gtk_container_add (GTK_CONTAINER (crop_zoom_out_button), image4); 1.563 + image4 = gtk_image_new_from_stock("gtk-zoom-out", GTK_ICON_SIZE_BUTTON); 1.564 + gtk_widget_set_name(image4, "image4"); 1.565 + gtk_widget_show(image4); 1.566 + gtk_container_add(GTK_CONTAINER(crop_zoom_out_button), image4); 1.567 1.568 - crop_zoom_100_button = gtk_button_new (); 1.569 - gtk_widget_set_name (crop_zoom_100_button, "crop_zoom_100_button"); 1.570 - gtk_widget_show (crop_zoom_100_button); 1.571 - gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_100_button, FALSE, FALSE, 0); 1.572 - gtk_button_set_relief (GTK_BUTTON (crop_zoom_100_button), GTK_RELIEF_NONE); 1.573 + crop_zoom_100_button = gtk_button_new(); 1.574 + gtk_widget_set_name(crop_zoom_100_button, "crop_zoom_100_button"); 1.575 + gtk_widget_show(crop_zoom_100_button); 1.576 + gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_100_button, FALSE, FALSE, 0); 1.577 + gtk_button_set_relief(GTK_BUTTON(crop_zoom_100_button), GTK_RELIEF_NONE); 1.578 1.579 - image3 = gtk_image_new_from_stock ("gtk-zoom-100", GTK_ICON_SIZE_BUTTON); 1.580 - gtk_widget_set_name (image3, "image3"); 1.581 - gtk_widget_show (image3); 1.582 - gtk_container_add (GTK_CONTAINER (crop_zoom_100_button), image3); 1.583 + image3 = gtk_image_new_from_stock("gtk-zoom-100", GTK_ICON_SIZE_BUTTON); 1.584 + gtk_widget_set_name(image3, "image3"); 1.585 + gtk_widget_show(image3); 1.586 + gtk_container_add(GTK_CONTAINER(crop_zoom_100_button), image3); 1.587 1.588 - crop_zoom_fit_button = gtk_button_new (); 1.589 - gtk_widget_set_name (crop_zoom_fit_button, "crop_zoom_fit_button"); 1.590 - gtk_widget_show (crop_zoom_fit_button); 1.591 - gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_fit_button, FALSE, FALSE, 0); 1.592 - gtk_button_set_relief (GTK_BUTTON (crop_zoom_fit_button), GTK_RELIEF_NONE); 1.593 + crop_zoom_fit_button = gtk_button_new(); 1.594 + gtk_widget_set_name(crop_zoom_fit_button, "crop_zoom_fit_button"); 1.595 + gtk_widget_show(crop_zoom_fit_button); 1.596 + gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_fit_button, FALSE, FALSE, 0); 1.597 + gtk_button_set_relief(GTK_BUTTON(crop_zoom_fit_button), GTK_RELIEF_NONE); 1.598 1.599 - image1 = gtk_image_new_from_stock ("gtk-zoom-fit", GTK_ICON_SIZE_BUTTON); 1.600 - gtk_widget_set_name (image1, "image1"); 1.601 - gtk_widget_show (image1); 1.602 - gtk_container_add (GTK_CONTAINER (crop_zoom_fit_button), image1); 1.603 + image1 = gtk_image_new_from_stock("gtk-zoom-fit", GTK_ICON_SIZE_BUTTON); 1.604 + gtk_widget_set_name(image1, "image1"); 1.605 + gtk_widget_show(image1); 1.606 + gtk_container_add(GTK_CONTAINER(crop_zoom_fit_button), image1); 1.607 1.608 1.609 1.610 /* 1.611 - okay_box = gtk_hbox_new (FALSE, 0); 1.612 - gtk_widget_set_name (okay_box, "okay_box"); 1.613 - gtk_widget_show (okay_box); 1.614 - gtk_box_pack_end (GTK_BOX (hbox16), okay_box, FALSE, TRUE, 0); 1.615 + okay_box = gtk_hbox_new(FALSE, 0); 1.616 + gtk_widget_set_name(okay_box, "okay_box"); 1.617 + gtk_widget_show(okay_box); 1.618 + gtk_box_pack_end(GTK_BOX(hbox16), okay_box, FALSE, TRUE, 0); 1.619 */ 1.620 1.621 - crop_okbutton = gtk_button_new (); 1.622 - gtk_widget_set_name (crop_okbutton, "crop_okbutton"); 1.623 - gtk_widget_show (crop_okbutton); 1.624 - gtk_box_pack_end (GTK_BOX (dialog_vbox1), crop_okbutton, FALSE, FALSE, 0); 1.625 - GTK_WIDGET_SET_FLAGS (crop_okbutton, GTK_CAN_DEFAULT); 1.626 + crop_okbutton = gtk_button_new(); 1.627 + gtk_widget_set_name(crop_okbutton, "crop_okbutton"); 1.628 + gtk_widget_show(crop_okbutton); 1.629 + gtk_box_pack_end(GTK_BOX(dialog_vbox1), crop_okbutton, FALSE, FALSE, 0); 1.630 + GTK_WIDGET_SET_FLAGS(crop_okbutton, GTK_CAN_DEFAULT); 1.631 1.632 - alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0); 1.633 - gtk_widget_set_name (alignment1, "alignment1"); 1.634 - gtk_widget_show (alignment1); 1.635 - gtk_container_add (GTK_CONTAINER (crop_okbutton), alignment1); 1.636 + alignment1 = gtk_alignment_new(0.5, 0.5, 0, 0); 1.637 + gtk_widget_set_name(alignment1, "alignment1"); 1.638 + gtk_widget_show(alignment1); 1.639 + gtk_container_add(GTK_CONTAINER(crop_okbutton), alignment1); 1.640 1.641 - hbox11 = gtk_hbox_new (FALSE, 2); 1.642 - gtk_widget_set_name (hbox11, "hbox11"); 1.643 - gtk_widget_show (hbox11); 1.644 - gtk_container_add (GTK_CONTAINER (alignment1), hbox11); 1.645 + hbox11 = gtk_hbox_new(FALSE, 2); 1.646 + gtk_widget_set_name(hbox11, "hbox11"); 1.647 + gtk_widget_show(hbox11); 1.648 + gtk_container_add(GTK_CONTAINER(alignment1), hbox11); 1.649 1.650 - crop_image = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON); 1.651 - gtk_widget_set_name (crop_image, "crop_image"); 1.652 - gtk_widget_show (crop_image); 1.653 - gtk_box_pack_start (GTK_BOX (hbox11), crop_image, FALSE, FALSE, 0); 1.654 + crop_image = gtk_image_new_from_stock("gtk-ok", GTK_ICON_SIZE_BUTTON); 1.655 + gtk_widget_set_name(crop_image, "crop_image"); 1.656 + gtk_widget_show(crop_image); 1.657 + gtk_box_pack_start(GTK_BOX(hbox11), crop_image, FALSE, FALSE, 0); 1.658 1.659 - label12 = gtk_label_new_with_mnemonic ("_Crop"); 1.660 - gtk_widget_set_name (label12, "label12"); 1.661 - gtk_widget_show (label12); 1.662 - gtk_box_pack_start (GTK_BOX (hbox11), label12, FALSE, FALSE, 0); 1.663 + label12 = gtk_label_new_with_mnemonic("_Crop"); 1.664 + gtk_widget_set_name(label12, "label12"); 1.665 + gtk_widget_show(label12); 1.666 + gtk_box_pack_start(GTK_BOX(hbox11), label12, FALSE, FALSE, 0); 1.667 1.668 1.669 1.670 1.671 1.672 - g_signal_connect (G_OBJECT (cropper_window), "show", 1.673 - G_CALLBACK (on_cropper_window_create), 1.674 + g_signal_connect(G_OBJECT(cropper_window), "show", 1.675 + G_CALLBACK(on_cropper_window_create), 1.676 NULL); 1.677 /* destroy */ 1.678 - g_signal_connect (G_OBJECT (cropper_window), "destroy", 1.679 - G_CALLBACK (on_cropper_window_destroy), 1.680 + g_signal_connect(G_OBJECT(cropper_window), "destroy", 1.681 + G_CALLBACK(on_cropper_window_destroy), 1.682 NULL); 1.683 1.684 1.685 /* crop */ 1.686 - g_signal_connect (G_OBJECT (crop_okbutton), "clicked", 1.687 - G_CALLBACK (on_crop_clicked), 1.688 + g_signal_connect(G_OBJECT(crop_okbutton), "clicked", 1.689 + G_CALLBACK(on_crop_clicked), 1.690 NULL); 1.691 1.692 1.693 /* zoom */ 1.694 - g_signal_connect (G_OBJECT (crop_zoom_in_button), "clicked", 1.695 - G_CALLBACK (on_zoom_in_button_clicked), 1.696 + g_signal_connect(G_OBJECT(crop_zoom_in_button), "clicked", 1.697 + G_CALLBACK(on_zoom_in_button_clicked), 1.698 NULL); 1.699 - g_signal_connect (G_OBJECT (crop_zoom_out_button), "clicked", 1.700 - G_CALLBACK (on_zoom_out_button_clicked), 1.701 + g_signal_connect(G_OBJECT(crop_zoom_out_button), "clicked", 1.702 + G_CALLBACK(on_zoom_out_button_clicked), 1.703 NULL); 1.704 - g_signal_connect (G_OBJECT (crop_zoom_100_button), "clicked", 1.705 - G_CALLBACK (on_zoom_100_button_clicked), 1.706 + g_signal_connect(G_OBJECT(crop_zoom_100_button), "clicked", 1.707 + G_CALLBACK(on_zoom_100_button_clicked), 1.708 NULL); 1.709 - g_signal_connect (G_OBJECT (crop_zoom_fit_button), "clicked", 1.710 - G_CALLBACK (on_zoom_fit_button_clicked), 1.711 + g_signal_connect(G_OBJECT(crop_zoom_fit_button), "clicked", 1.712 + G_CALLBACK(on_zoom_fit_button_clicked), 1.713 NULL); 1.714 1.715 1.716 /* aspect ratio */ 1.717 /* 1.718 - g_signal_connect (G_OBJECT (ratio_w_spinbutton), "value_changed", 1.719 - G_CALLBACK (on_ratio_w_spinbutton_value_changed), 1.720 + g_signal_connect(G_OBJECT(ratio_w_spinbutton), "value_changed", 1.721 + G_CALLBACK(on_ratio_w_spinbutton_value_changed), 1.722 NULL); 1.723 - g_signal_connect (G_OBJECT (ratio_swap_button), "clicked", 1.724 - G_CALLBACK (on_ratio_swap_button_clicked), 1.725 + g_signal_connect(G_OBJECT(ratio_swap_button), "clicked", 1.726 + G_CALLBACK(on_ratio_swap_button_clicked), 1.727 NULL); 1.728 - g_signal_connect (G_OBJECT (ratio_h_spinbutton), "value_changed", 1.729 - G_CALLBACK (on_ratio_h_spinbutton_value_changed), 1.730 + g_signal_connect(G_OBJECT(ratio_h_spinbutton), "value_changed", 1.731 + G_CALLBACK(on_ratio_h_spinbutton_value_changed), 1.732 NULL); 1.733 1.734 - g_signal_connect (G_OBJECT (ratio_none), "activate", 1.735 - G_CALLBACK (on_ratio_none_activate), 1.736 + g_signal_connect(G_OBJECT(ratio_none), "activate", 1.737 + G_CALLBACK(on_ratio_none_activate), 1.738 NULL); 1.739 - g_signal_connect (G_OBJECT (ratio_square), "activate", 1.740 - G_CALLBACK (on_ratio_square_activate), 1.741 + g_signal_connect(G_OBJECT(ratio_square), "activate", 1.742 + G_CALLBACK(on_ratio_square_activate), 1.743 NULL); 1.744 - g_signal_connect (G_OBJECT (ratio_4x3), "activate", 1.745 - G_CALLBACK (on_ratio_4x3_activate), 1.746 + g_signal_connect(G_OBJECT(ratio_4x3), "activate", 1.747 + G_CALLBACK(on_ratio_4x3_activate), 1.748 NULL); 1.749 - g_signal_connect (G_OBJECT (ratio_3x2), "activate", 1.750 - G_CALLBACK (on_ratio_3x2_activate), 1.751 + g_signal_connect(G_OBJECT(ratio_3x2), "activate", 1.752 + G_CALLBACK(on_ratio_3x2_activate), 1.753 NULL); 1.754 - g_signal_connect (G_OBJECT (ratio_custom), "activate", 1.755 - G_CALLBACK (on_ratio_custom_activate), 1.756 + g_signal_connect(G_OBJECT(ratio_custom), "activate", 1.757 + G_CALLBACK(on_ratio_custom_activate), 1.758 NULL); 1.759 1.760 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "ratio_optionmenu")), "changed", 1.761 - G_CALLBACK (ratio_optionmenu_changed_cb), 1.762 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_optionmenu")), "changed", 1.763 + G_CALLBACK(ratio_optionmenu_changed_cb), 1.764 NULL); 1.765 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "ratio_w_spinbutton")), "value_changed", 1.766 - G_CALLBACK (ratio_value_changed_cb), 1.767 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_w_spinbutton")), "value_changed", 1.768 + G_CALLBACK(ratio_value_changed_cb), 1.769 NULL); 1.770 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "ratio_h_spinbutton")), "value_changed", 1.771 - G_CALLBACK (ratio_value_changed_cb), 1.772 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_h_spinbutton")), "value_changed", 1.773 + G_CALLBACK(ratio_value_changed_cb), 1.774 NULL); 1.775 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "ratio_swap_button")), "clicked", 1.776 - G_CALLBACK (ratio_swap_button_cb), 1.777 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_swap_button")), "clicked", 1.778 + G_CALLBACK(ratio_swap_button_cb), 1.779 NULL); 1.780 */ 1.781 1.782 1.783 /* selection */ 1.784 /* 1.785 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "crop_x_spinbutton")), "value_changed", 1.786 - G_CALLBACK (selection_x_value_changed_cb), 1.787 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_x_spinbutton")), "value_changed", 1.788 + G_CALLBACK(selection_x_value_changed_cb), 1.789 data); 1.790 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "crop_y_spinbutton")), "value_changed", 1.791 - G_CALLBACK (selection_y_value_changed_cb), 1.792 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_y_spinbutton")), "value_changed", 1.793 + G_CALLBACK(selection_y_value_changed_cb), 1.794 data); 1.795 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "crop_width_spinbutton")), "value_changed", 1.796 - G_CALLBACK (selection_width_value_changed_cb), 1.797 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_width_spinbutton")), "value_changed", 1.798 + G_CALLBACK(selection_width_value_changed_cb), 1.799 data); 1.800 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "crop_height_spinbutton")), "value_changed", 1.801 - G_CALLBACK (selection_height_value_changed_cb), 1.802 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_height_spinbutton")), "value_changed", 1.803 + G_CALLBACK(selection_height_value_changed_cb), 1.804 data); 1.805 -g_signal_connect (G_OBJECT (lookup_widget(cropper_window, "crop_image")), "selection_changed", 1.806 - G_CALLBACK (selection_changed_cb), 1.807 +g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_image")), "selection_changed", 1.808 + G_CALLBACK(selection_changed_cb), 1.809 data); 1.810 */ 1.811 1.812 @@ -561,68 +560,68 @@ 1.813 1.814 1.815 /* Store pointers to all widgets, for use by lookup_widget(). */ 1.816 - GLADE_HOOKUP_OBJECT_NO_REF (cropper_window, cropper_window, "cropper_window"); 1.817 - GLADE_HOOKUP_OBJECT (cropper_window, dialog_vbox1, "dialog_vbox1"); 1.818 - GLADE_HOOKUP_OBJECT (cropper_window, hbox1, "hbox1"); 1.819 - GLADE_HOOKUP_OBJECT (cropper_window, vbox1, "vbox1"); 1.820 - GLADE_HOOKUP_OBJECT (cropper_window, vbox2, "vbox2"); 1.821 - GLADE_HOOKUP_OBJECT (cropper_window, label1, "label1"); 1.822 - GLADE_HOOKUP_OBJECT (cropper_window, hbox2, "hbox2"); 1.823 - GLADE_HOOKUP_OBJECT (cropper_window, label2, "label2"); 1.824 - GLADE_HOOKUP_OBJECT (cropper_window, table2, "table2"); 1.825 - GLADE_HOOKUP_OBJECT (cropper_window, label3, "label3"); 1.826 - GLADE_HOOKUP_OBJECT (cropper_window, label5, "label5"); 1.827 - GLADE_HOOKUP_OBJECT (cropper_window, label4, "label4"); 1.828 - GLADE_HOOKUP_OBJECT (cropper_window, label6, "label6"); 1.829 - GLADE_HOOKUP_OBJECT (cropper_window, hbox5, "hbox5"); 1.830 - GLADE_HOOKUP_OBJECT (cropper_window, crop_x_spinbutton, "crop_x_spinbutton"); 1.831 - GLADE_HOOKUP_OBJECT (cropper_window, hbox6, "hbox6"); 1.832 - GLADE_HOOKUP_OBJECT (cropper_window, crop_y_spinbutton, "crop_y_spinbutton"); 1.833 - GLADE_HOOKUP_OBJECT (cropper_window, hbox7, "hbox7"); 1.834 - GLADE_HOOKUP_OBJECT (cropper_window, crop_width_spinbutton, "crop_width_spinbutton"); 1.835 - GLADE_HOOKUP_OBJECT (cropper_window, hbox8, "hbox8"); 1.836 - GLADE_HOOKUP_OBJECT (cropper_window, crop_height_spinbutton, "crop_height_spinbutton"); 1.837 - GLADE_HOOKUP_OBJECT (cropper_window, vbox4, "vbox4"); 1.838 - GLADE_HOOKUP_OBJECT (cropper_window, label7, "label7"); 1.839 - GLADE_HOOKUP_OBJECT (cropper_window, hbox3, "hbox3"); 1.840 - GLADE_HOOKUP_OBJECT (cropper_window, label8, "label8"); 1.841 - GLADE_HOOKUP_OBJECT (cropper_window, table3, "table3"); 1.842 - GLADE_HOOKUP_OBJECT (cropper_window, hbox10, "hbox10"); 1.843 - GLADE_HOOKUP_OBJECT (cropper_window, custom_ratio_box, "custom_ratio_box"); 1.844 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_w_spinbutton, "ratio_w_spinbutton"); 1.845 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_swap_button, "ratio_swap_button"); 1.846 - GLADE_HOOKUP_OBJECT (cropper_window, eventbox1, "eventbox1"); 1.847 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_swap_image, "ratio_swap_image"); 1.848 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_h_spinbutton, "ratio_h_spinbutton"); 1.849 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_optionmenu, "ratio_optionmenu"); 1.850 - GLADE_HOOKUP_OBJECT (cropper_window, menu1, "menu1"); 1.851 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_none, "ratio_none"); 1.852 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_square, "ratio_square"); 1.853 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_4x3, "ratio_4x3"); 1.854 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_3x2, "ratio_3x2"); 1.855 - GLADE_HOOKUP_OBJECT (cropper_window, ratio_custom, "ratio_custom"); 1.856 - GLADE_HOOKUP_OBJECT (cropper_window, vbox5, "vbox5"); 1.857 - GLADE_HOOKUP_OBJECT (cropper_window, frame1, "frame1"); 1.858 - GLADE_HOOKUP_OBJECT (cropper_window, vbox7, "vbox7"); 1.859 - GLADE_HOOKUP_OBJECT (cropper_window, nav_container, "nav_container"); 1.860 - GLADE_HOOKUP_OBJECT (cropper_window, image_area, "image_area"); 1.861 - GLADE_HOOKUP_OBJECT (cropper_window, (GtkWidget*) image_buffer, "image_buffer"); 1.862 - GLADE_HOOKUP_OBJECT (cropper_window, hbox16, "hbox16"); 1.863 - GLADE_HOOKUP_OBJECT (cropper_window, hbox17, "hbox17"); 1.864 - GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_in_button, "crop_zoom_in_button"); 1.865 - GLADE_HOOKUP_OBJECT (cropper_window, image2, "image2"); 1.866 - GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_out_button, "crop_zoom_out_button"); 1.867 - GLADE_HOOKUP_OBJECT (cropper_window, image4, "image4"); 1.868 - GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_100_button, "crop_zoom_100_button"); 1.869 - GLADE_HOOKUP_OBJECT (cropper_window, image3, "image3"); 1.870 - GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_fit_button, "crop_zoom_fit_button"); 1.871 - GLADE_HOOKUP_OBJECT (cropper_window, image1, "image1"); 1.872 - /*GLADE_HOOKUP_OBJECT_NO_REF (cropper_window, dialog_action_area1, "dialog_action_area1"); */ 1.873 - GLADE_HOOKUP_OBJECT (cropper_window, crop_okbutton, "crop_okbutton"); 1.874 - GLADE_HOOKUP_OBJECT (cropper_window, alignment1, "alignment1"); 1.875 - GLADE_HOOKUP_OBJECT (cropper_window, hbox11, "hbox11"); 1.876 - GLADE_HOOKUP_OBJECT (cropper_window, crop_image, "crop_image"); 1.877 - GLADE_HOOKUP_OBJECT (cropper_window, label12, "label12"); 1.878 + GLADE_HOOKUP_OBJECT_NO_REF(cropper_window, cropper_window, "cropper_window"); 1.879 + GLADE_HOOKUP_OBJECT(cropper_window, dialog_vbox1, "dialog_vbox1"); 1.880 + GLADE_HOOKUP_OBJECT(cropper_window, hbox1, "hbox1"); 1.881 + GLADE_HOOKUP_OBJECT(cropper_window, vbox1, "vbox1"); 1.882 + GLADE_HOOKUP_OBJECT(cropper_window, vbox2, "vbox2"); 1.883 + GLADE_HOOKUP_OBJECT(cropper_window, label1, "label1"); 1.884 + GLADE_HOOKUP_OBJECT(cropper_window, hbox2, "hbox2"); 1.885 + GLADE_HOOKUP_OBJECT(cropper_window, label2, "label2"); 1.886 + GLADE_HOOKUP_OBJECT(cropper_window, table2, "table2"); 1.887 + GLADE_HOOKUP_OBJECT(cropper_window, label3, "label3"); 1.888 + GLADE_HOOKUP_OBJECT(cropper_window, label5, "label5"); 1.889 + GLADE_HOOKUP_OBJECT(cropper_window, label4, "label4"); 1.890 + GLADE_HOOKUP_OBJECT(cropper_window, label6, "label6"); 1.891 + GLADE_HOOKUP_OBJECT(cropper_window, hbox5, "hbox5"); 1.892 + GLADE_HOOKUP_OBJECT(cropper_window, crop_x_spinbutton, "crop_x_spinbutton"); 1.893 + GLADE_HOOKUP_OBJECT(cropper_window, hbox6, "hbox6"); 1.894 + GLADE_HOOKUP_OBJECT(cropper_window, crop_y_spinbutton, "crop_y_spinbutton"); 1.895 + GLADE_HOOKUP_OBJECT(cropper_window, hbox7, "hbox7"); 1.896 + GLADE_HOOKUP_OBJECT(cropper_window, crop_width_spinbutton, "crop_width_spinbutton"); 1.897 + GLADE_HOOKUP_OBJECT(cropper_window, hbox8, "hbox8"); 1.898 + GLADE_HOOKUP_OBJECT(cropper_window, crop_height_spinbutton, "crop_height_spinbutton"); 1.899 + GLADE_HOOKUP_OBJECT(cropper_window, vbox4, "vbox4"); 1.900 + GLADE_HOOKUP_OBJECT(cropper_window, label7, "label7"); 1.901 + GLADE_HOOKUP_OBJECT(cropper_window, hbox3, "hbox3"); 1.902 + GLADE_HOOKUP_OBJECT(cropper_window, label8, "label8"); 1.903 + GLADE_HOOKUP_OBJECT(cropper_window, table3, "table3"); 1.904 + GLADE_HOOKUP_OBJECT(cropper_window, hbox10, "hbox10"); 1.905 + GLADE_HOOKUP_OBJECT(cropper_window, custom_ratio_box, "custom_ratio_box"); 1.906 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_w_spinbutton, "ratio_w_spinbutton"); 1.907 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_swap_button, "ratio_swap_button"); 1.908 + GLADE_HOOKUP_OBJECT(cropper_window, eventbox1, "eventbox1"); 1.909 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_swap_image, "ratio_swap_image"); 1.910 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_h_spinbutton, "ratio_h_spinbutton"); 1.911 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_optionmenu, "ratio_optionmenu"); 1.912 + GLADE_HOOKUP_OBJECT(cropper_window, menu1, "menu1"); 1.913 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_none, "ratio_none"); 1.914 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_square, "ratio_square"); 1.915 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_4x3, "ratio_4x3"); 1.916 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_3x2, "ratio_3x2"); 1.917 + GLADE_HOOKUP_OBJECT(cropper_window, ratio_custom, "ratio_custom"); 1.918 + GLADE_HOOKUP_OBJECT(cropper_window, vbox5, "vbox5"); 1.919 + GLADE_HOOKUP_OBJECT(cropper_window, frame1, "frame1"); 1.920 + GLADE_HOOKUP_OBJECT(cropper_window, vbox7, "vbox7"); 1.921 + GLADE_HOOKUP_OBJECT(cropper_window, nav_container, "nav_container"); 1.922 + GLADE_HOOKUP_OBJECT(cropper_window, image_area, "image_area"); 1.923 + GLADE_HOOKUP_OBJECT(cropper_window,(GtkWidget*) image_buffer, "image_buffer"); 1.924 + GLADE_HOOKUP_OBJECT(cropper_window, hbox16, "hbox16"); 1.925 + GLADE_HOOKUP_OBJECT(cropper_window, hbox17, "hbox17"); 1.926 + GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_in_button, "crop_zoom_in_button"); 1.927 + GLADE_HOOKUP_OBJECT(cropper_window, image2, "image2"); 1.928 + GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_out_button, "crop_zoom_out_button"); 1.929 + GLADE_HOOKUP_OBJECT(cropper_window, image4, "image4"); 1.930 + GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_100_button, "crop_zoom_100_button"); 1.931 + GLADE_HOOKUP_OBJECT(cropper_window, image3, "image3"); 1.932 + GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_fit_button, "crop_zoom_fit_button"); 1.933 + GLADE_HOOKUP_OBJECT(cropper_window, image1, "image1"); 1.934 + /*GLADE_HOOKUP_OBJECT_NO_REF(cropper_window, dialog_action_area1, "dialog_action_area1"); */ 1.935 + GLADE_HOOKUP_OBJECT(cropper_window, crop_okbutton, "crop_okbutton"); 1.936 + GLADE_HOOKUP_OBJECT(cropper_window, alignment1, "alignment1"); 1.937 + GLADE_HOOKUP_OBJECT(cropper_window, hbox11, "hbox11"); 1.938 + GLADE_HOOKUP_OBJECT(cropper_window, crop_image, "crop_image"); 1.939 + GLADE_HOOKUP_OBJECT(cropper_window, label12, "label12"); 1.940 1.941 1.942 return cropper_window;