cropper

diff interface.c @ 0:ca9155129253

initial commit code base: gthumb_crop.glade and generated code from it with glade
author meillo@marmaro.de
date Tue, 04 Dec 2007 16:48:51 +0100
parents
children 80535e4deaa4
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/interface.c	Tue Dec 04 16:48:51 2007 +0100
     1.3 @@ -0,0 +1,524 @@
     1.4 +/*
     1.5 + * DO NOT EDIT THIS FILE - it is generated by Glade.
     1.6 + */
     1.7 +
     1.8 +#ifdef HAVE_CONFIG_H
     1.9 +#  include <config.h>
    1.10 +#endif
    1.11 +
    1.12 +#include <sys/types.h>
    1.13 +#include <sys/stat.h>
    1.14 +#include <unistd.h>
    1.15 +#include <string.h>
    1.16 +#include <stdio.h>
    1.17 +
    1.18 +#include <gdk/gdkkeysyms.h>
    1.19 +#include <gtk/gtk.h>
    1.20 +
    1.21 +#include "callbacks.h"
    1.22 +#include "interface.h"
    1.23 +#include "support.h"
    1.24 +
    1.25 +#define GLADE_HOOKUP_OBJECT(component,widget,name) \
    1.26 +  g_object_set_data_full (G_OBJECT (component), name, \
    1.27 +    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
    1.28 +
    1.29 +#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
    1.30 +  g_object_set_data (G_OBJECT (component), name, widget)
    1.31 +
    1.32 +GtkWidget*
    1.33 +create_cropper_window (void)
    1.34 +{
    1.35 +  GtkWidget *cropper_window;
    1.36 +  GtkWidget *dialog_vbox1;
    1.37 +  GtkWidget *hbox1;
    1.38 +  GtkWidget *vbox1;
    1.39 +  GtkWidget *vbox2;
    1.40 +  GtkWidget *label1;
    1.41 +  GtkWidget *hbox2;
    1.42 +  GtkWidget *label2;
    1.43 +  GtkWidget *table2;
    1.44 +  GtkWidget *label3;
    1.45 +  GtkWidget *label5;
    1.46 +  GtkWidget *label4;
    1.47 +  GtkWidget *label6;
    1.48 +  GtkWidget *hbox5;
    1.49 +  GtkObject *crop_x_spinbutton_adj;
    1.50 +  GtkWidget *crop_x_spinbutton;
    1.51 +  GtkWidget *hbox6;
    1.52 +  GtkObject *crop_y_spinbutton_adj;
    1.53 +  GtkWidget *crop_y_spinbutton;
    1.54 +  GtkWidget *hbox7;
    1.55 +  GtkObject *crop_width_spinbutton_adj;
    1.56 +  GtkWidget *crop_width_spinbutton;
    1.57 +  GtkWidget *hbox8;
    1.58 +  GtkObject *crop_height_spinbutton_adj;
    1.59 +  GtkWidget *crop_height_spinbutton;
    1.60 +  GtkWidget *vbox4;
    1.61 +  GtkWidget *label7;
    1.62 +  GtkWidget *hbox3;
    1.63 +  GtkWidget *label8;
    1.64 +  GtkWidget *table3;
    1.65 +  GtkWidget *hbox10;
    1.66 +  GtkWidget *custom_ratio_box;
    1.67 +  GtkObject *ratio_w_spinbutton_adj;
    1.68 +  GtkWidget *ratio_w_spinbutton;
    1.69 +  GtkWidget *ratio_swap_button;
    1.70 +  GtkWidget *eventbox1;
    1.71 +  GtkWidget *ratio_swap_image;
    1.72 +  GtkObject *ratio_h_spinbutton_adj;
    1.73 +  GtkWidget *ratio_h_spinbutton;
    1.74 +  GtkWidget *ratio_optionmenu;
    1.75 +  GtkWidget *menu1;
    1.76 +  GtkWidget *none1;
    1.77 +  GtkWidget *square1;
    1.78 +  GtkWidget *_4x3__book__dvd_1;
    1.79 +  GtkWidget *_4x6__postcard_1;
    1.80 +  GtkWidget *_5x1;
    1.81 +  GtkWidget *_8x1;
    1.82 +  GtkWidget *custom1;
    1.83 +  GtkWidget *vbox5;
    1.84 +  GtkWidget *frame1;
    1.85 +  GtkWidget *vbox7;
    1.86 +  GtkWidget *nav_container;
    1.87 +  GtkWidget *hbox16;
    1.88 +  GtkWidget *hbox17;
    1.89 +  GtkWidget *crop_zoom_in_button;
    1.90 +  GtkWidget *image2;
    1.91 +  GtkWidget *crop_zoom_out_button;
    1.92 +  GtkWidget *image4;
    1.93 +  GtkWidget *crop_zoom_100_button;
    1.94 +  GtkWidget *image3;
    1.95 +  GtkWidget *crop_zoom_fit_button;
    1.96 +  GtkWidget *image1;
    1.97 +
    1.98 +  cropper_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    1.99 +  gtk_widget_set_name (cropper_window, "cropper_window");
   1.100 +  gtk_container_set_border_width (GTK_CONTAINER (cropper_window), 6);
   1.101 +  gtk_window_set_title (GTK_WINDOW (cropper_window), "Cropper");
   1.102 +
   1.103 +  dialog_vbox1 = gtk_vbox_new (FALSE, 6);
   1.104 +  gtk_widget_set_name (dialog_vbox1, "dialog_vbox1");
   1.105 +  gtk_widget_show (dialog_vbox1);
   1.106 +  gtk_container_add (GTK_CONTAINER (cropper_window), dialog_vbox1);
   1.107 +
   1.108 +  hbox1 = gtk_hbox_new (FALSE, 12);
   1.109 +  gtk_widget_set_name (hbox1, "hbox1");
   1.110 +  gtk_widget_show (hbox1);
   1.111 +  gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox1, TRUE, TRUE, 0);
   1.112 +  gtk_container_set_border_width (GTK_CONTAINER (hbox1), 5);
   1.113 +
   1.114 +  vbox1 = gtk_vbox_new (FALSE, 12);
   1.115 +  gtk_widget_set_name (vbox1, "vbox1");
   1.116 +  gtk_widget_show (vbox1);
   1.117 +  gtk_box_pack_start (GTK_BOX (hbox1), vbox1, FALSE, TRUE, 0);
   1.118 +
   1.119 +  vbox2 = gtk_vbox_new (FALSE, 6);
   1.120 +  gtk_widget_set_name (vbox2, "vbox2");
   1.121 +  gtk_widget_show (vbox2);
   1.122 +  gtk_box_pack_start (GTK_BOX (vbox1), vbox2, FALSE, TRUE, 0);
   1.123 +
   1.124 +  label1 = gtk_label_new ("<b>Selection</b>");
   1.125 +  gtk_widget_set_name (label1, "label1");
   1.126 +  gtk_widget_show (label1);
   1.127 +  gtk_box_pack_start (GTK_BOX (vbox2), label1, FALSE, FALSE, 0);
   1.128 +  gtk_label_set_use_markup (GTK_LABEL (label1), TRUE);
   1.129 +  gtk_misc_set_alignment (GTK_MISC (label1), 0, 0.5);
   1.130 +
   1.131 +  hbox2 = gtk_hbox_new (FALSE, 0);
   1.132 +  gtk_widget_set_name (hbox2, "hbox2");
   1.133 +  gtk_widget_show (hbox2);
   1.134 +  gtk_box_pack_start (GTK_BOX (vbox2), hbox2, FALSE, TRUE, 0);
   1.135 +
   1.136 +  label2 = gtk_label_new ("    ");
   1.137 +  gtk_widget_set_name (label2, "label2");
   1.138 +  gtk_widget_show (label2);
   1.139 +  gtk_box_pack_start (GTK_BOX (hbox2), label2, FALSE, FALSE, 0);
   1.140 +
   1.141 +  table2 = gtk_table_new (4, 2, FALSE);
   1.142 +  gtk_widget_set_name (table2, "table2");
   1.143 +  gtk_widget_show (table2);
   1.144 +  gtk_box_pack_start (GTK_BOX (hbox2), table2, TRUE, TRUE, 0);
   1.145 +  gtk_table_set_row_spacings (GTK_TABLE (table2), 6);
   1.146 +  gtk_table_set_col_spacings (GTK_TABLE (table2), 6);
   1.147 +
   1.148 +  label3 = gtk_label_new_with_mnemonic ("_X:");
   1.149 +  gtk_widget_set_name (label3, "label3");
   1.150 +  gtk_widget_show (label3);
   1.151 +  gtk_table_attach (GTK_TABLE (table2), label3, 0, 1, 0, 1,
   1.152 +                    (GtkAttachOptions) (GTK_FILL),
   1.153 +                    (GtkAttachOptions) (0), 0, 0);
   1.154 +  gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);
   1.155 +
   1.156 +  label5 = gtk_label_new_with_mnemonic ("_Y:");
   1.157 +  gtk_widget_set_name (label5, "label5");
   1.158 +  gtk_widget_show (label5);
   1.159 +  gtk_table_attach (GTK_TABLE (table2), label5, 0, 1, 1, 2,
   1.160 +                    (GtkAttachOptions) (GTK_FILL),
   1.161 +                    (GtkAttachOptions) (0), 0, 0);
   1.162 +  gtk_misc_set_alignment (GTK_MISC (label5), 0, 0.5);
   1.163 +
   1.164 +  label4 = gtk_label_new_with_mnemonic ("_Width:");
   1.165 +  gtk_widget_set_name (label4, "label4");
   1.166 +  gtk_widget_show (label4);
   1.167 +  gtk_table_attach (GTK_TABLE (table2), label4, 0, 1, 2, 3,
   1.168 +                    (GtkAttachOptions) (GTK_FILL),
   1.169 +                    (GtkAttachOptions) (0), 0, 0);
   1.170 +  gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5);
   1.171 +
   1.172 +  label6 = gtk_label_new_with_mnemonic ("_Height:");
   1.173 +  gtk_widget_set_name (label6, "label6");
   1.174 +  gtk_widget_show (label6);
   1.175 +  gtk_table_attach (GTK_TABLE (table2), label6, 0, 1, 3, 4,
   1.176 +                    (GtkAttachOptions) (GTK_FILL),
   1.177 +                    (GtkAttachOptions) (0), 0, 0);
   1.178 +  gtk_misc_set_alignment (GTK_MISC (label6), 0, 0.5);
   1.179 +
   1.180 +  hbox5 = gtk_hbox_new (FALSE, 0);
   1.181 +  gtk_widget_set_name (hbox5, "hbox5");
   1.182 +  gtk_widget_show (hbox5);
   1.183 +  gtk_table_attach (GTK_TABLE (table2), hbox5, 1, 2, 0, 1,
   1.184 +                    (GtkAttachOptions) (GTK_FILL),
   1.185 +                    (GtkAttachOptions) (GTK_FILL), 0, 0);
   1.186 +
   1.187 +  crop_x_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1);
   1.188 +  crop_x_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_x_spinbutton_adj), 1, 0);
   1.189 +  gtk_widget_set_name (crop_x_spinbutton, "crop_x_spinbutton");
   1.190 +  gtk_widget_show (crop_x_spinbutton);
   1.191 +  gtk_box_pack_start (GTK_BOX (hbox5), crop_x_spinbutton, FALSE, TRUE, 0);
   1.192 +
   1.193 +  hbox6 = gtk_hbox_new (FALSE, 0);
   1.194 +  gtk_widget_set_name (hbox6, "hbox6");
   1.195 +  gtk_widget_show (hbox6);
   1.196 +  gtk_table_attach (GTK_TABLE (table2), hbox6, 1, 2, 1, 2,
   1.197 +                    (GtkAttachOptions) (GTK_FILL),
   1.198 +                    (GtkAttachOptions) (GTK_FILL), 0, 0);
   1.199 +
   1.200 +  crop_y_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1);
   1.201 +  crop_y_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_y_spinbutton_adj), 1, 0);
   1.202 +  gtk_widget_set_name (crop_y_spinbutton, "crop_y_spinbutton");
   1.203 +  gtk_widget_show (crop_y_spinbutton);
   1.204 +  gtk_box_pack_start (GTK_BOX (hbox6), crop_y_spinbutton, FALSE, TRUE, 0);
   1.205 +
   1.206 +  hbox7 = gtk_hbox_new (FALSE, 0);
   1.207 +  gtk_widget_set_name (hbox7, "hbox7");
   1.208 +  gtk_widget_show (hbox7);
   1.209 +  gtk_table_attach (GTK_TABLE (table2), hbox7, 1, 2, 2, 3,
   1.210 +                    (GtkAttachOptions) (GTK_FILL),
   1.211 +                    (GtkAttachOptions) (GTK_FILL), 0, 0);
   1.212 +
   1.213 +  crop_width_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1);
   1.214 +  crop_width_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_width_spinbutton_adj), 1, 0);
   1.215 +  gtk_widget_set_name (crop_width_spinbutton, "crop_width_spinbutton");
   1.216 +  gtk_widget_show (crop_width_spinbutton);
   1.217 +  gtk_box_pack_start (GTK_BOX (hbox7), crop_width_spinbutton, FALSE, FALSE, 0);
   1.218 +
   1.219 +  hbox8 = gtk_hbox_new (FALSE, 0);
   1.220 +  gtk_widget_set_name (hbox8, "hbox8");
   1.221 +  gtk_widget_show (hbox8);
   1.222 +  gtk_table_attach (GTK_TABLE (table2), hbox8, 1, 2, 3, 4,
   1.223 +                    (GtkAttachOptions) (GTK_FILL),
   1.224 +                    (GtkAttachOptions) (GTK_FILL), 0, 0);
   1.225 +
   1.226 +  crop_height_spinbutton_adj = gtk_adjustment_new (1, 0, 300, 1, 10, 1);
   1.227 +  crop_height_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (crop_height_spinbutton_adj), 1, 0);
   1.228 +  gtk_widget_set_name (crop_height_spinbutton, "crop_height_spinbutton");
   1.229 +  gtk_widget_show (crop_height_spinbutton);
   1.230 +  gtk_box_pack_start (GTK_BOX (hbox8), crop_height_spinbutton, FALSE, FALSE, 0);
   1.231 +
   1.232 +  vbox4 = gtk_vbox_new (FALSE, 6);
   1.233 +  gtk_widget_set_name (vbox4, "vbox4");
   1.234 +  gtk_widget_show (vbox4);
   1.235 +  gtk_box_pack_start (GTK_BOX (vbox1), vbox4, FALSE, TRUE, 0);
   1.236 +
   1.237 +  label7 = gtk_label_new ("<b>Aspect ratio</b>");
   1.238 +  gtk_widget_set_name (label7, "label7");
   1.239 +  gtk_widget_show (label7);
   1.240 +  gtk_box_pack_start (GTK_BOX (vbox4), label7, FALSE, FALSE, 0);
   1.241 +  gtk_label_set_use_markup (GTK_LABEL (label7), TRUE);
   1.242 +  gtk_misc_set_alignment (GTK_MISC (label7), 0, 0.5);
   1.243 +
   1.244 +  hbox3 = gtk_hbox_new (FALSE, 0);
   1.245 +  gtk_widget_set_name (hbox3, "hbox3");
   1.246 +  gtk_widget_show (hbox3);
   1.247 +  gtk_box_pack_start (GTK_BOX (vbox4), hbox3, FALSE, FALSE, 0);
   1.248 +
   1.249 +  label8 = gtk_label_new ("    ");
   1.250 +  gtk_widget_set_name (label8, "label8");
   1.251 +  gtk_widget_show (label8);
   1.252 +  gtk_box_pack_start (GTK_BOX (hbox3), label8, FALSE, FALSE, 0);
   1.253 +
   1.254 +  table3 = gtk_table_new (2, 2, FALSE);
   1.255 +  gtk_widget_set_name (table3, "table3");
   1.256 +  gtk_widget_show (table3);
   1.257 +  gtk_box_pack_start (GTK_BOX (hbox3), table3, TRUE, TRUE, 0);
   1.258 +  gtk_table_set_row_spacings (GTK_TABLE (table3), 6);
   1.259 +  gtk_table_set_col_spacings (GTK_TABLE (table3), 6);
   1.260 +
   1.261 +  hbox10 = gtk_hbox_new (FALSE, 6);
   1.262 +  gtk_widget_set_name (hbox10, "hbox10");
   1.263 +  gtk_widget_show (hbox10);
   1.264 +  gtk_table_attach (GTK_TABLE (table3), hbox10, 0, 2, 1, 2,
   1.265 +                    (GtkAttachOptions) (GTK_FILL),
   1.266 +                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
   1.267 +
   1.268 +  custom_ratio_box = gtk_hbox_new (FALSE, 6);
   1.269 +  gtk_widget_set_name (custom_ratio_box, "custom_ratio_box");
   1.270 +  gtk_widget_show (custom_ratio_box);
   1.271 +  gtk_box_pack_start (GTK_BOX (hbox10), custom_ratio_box, TRUE, TRUE, 0);
   1.272 +
   1.273 +  ratio_w_spinbutton_adj = gtk_adjustment_new (1, 1, 9999, 1, 10, 10);
   1.274 +  ratio_w_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (ratio_w_spinbutton_adj), 1, 0);
   1.275 +  gtk_widget_set_name (ratio_w_spinbutton, "ratio_w_spinbutton");
   1.276 +  gtk_widget_show (ratio_w_spinbutton);
   1.277 +  gtk_box_pack_start (GTK_BOX (custom_ratio_box), ratio_w_spinbutton, FALSE, TRUE, 0);
   1.278 +
   1.279 +  ratio_swap_button = gtk_button_new ();
   1.280 +  gtk_widget_set_name (ratio_swap_button, "ratio_swap_button");
   1.281 +  gtk_widget_show (ratio_swap_button);
   1.282 +  gtk_box_pack_start (GTK_BOX (custom_ratio_box), ratio_swap_button, FALSE, FALSE, 0);
   1.283 +  gtk_button_set_relief (GTK_BUTTON (ratio_swap_button), GTK_RELIEF_NONE);
   1.284 +
   1.285 +  eventbox1 = gtk_event_box_new ();
   1.286 +  gtk_widget_set_name (eventbox1, "eventbox1");
   1.287 +  gtk_widget_show (eventbox1);
   1.288 +  gtk_container_add (GTK_CONTAINER (ratio_swap_button), eventbox1);
   1.289 +
   1.290 +  ratio_swap_image = gtk_image_new_from_stock ("gtk-refresh", GTK_ICON_SIZE_BUTTON);
   1.291 +  gtk_widget_set_name (ratio_swap_image, "ratio_swap_image");
   1.292 +  gtk_widget_show (ratio_swap_image);
   1.293 +  gtk_container_add (GTK_CONTAINER (eventbox1), ratio_swap_image);
   1.294 +
   1.295 +  ratio_h_spinbutton_adj = gtk_adjustment_new (1, 1, 9999, 1, 10, 10);
   1.296 +  ratio_h_spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (ratio_h_spinbutton_adj), 1, 0);
   1.297 +  gtk_widget_set_name (ratio_h_spinbutton, "ratio_h_spinbutton");
   1.298 +  gtk_widget_show (ratio_h_spinbutton);
   1.299 +  gtk_box_pack_start (GTK_BOX (custom_ratio_box), ratio_h_spinbutton, FALSE, TRUE, 0);
   1.300 +  gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (ratio_h_spinbutton), GTK_UPDATE_IF_VALID);
   1.301 +
   1.302 +  ratio_optionmenu = gtk_option_menu_new ();
   1.303 +  gtk_widget_set_name (ratio_optionmenu, "ratio_optionmenu");
   1.304 +  gtk_widget_show (ratio_optionmenu);
   1.305 +  gtk_table_attach (GTK_TABLE (table3), ratio_optionmenu, 0, 2, 0, 1,
   1.306 +                    (GtkAttachOptions) (GTK_FILL),
   1.307 +                    (GtkAttachOptions) (0), 0, 0);
   1.308 +
   1.309 +  menu1 = gtk_menu_new ();
   1.310 +  gtk_widget_set_name (menu1, "menu1");
   1.311 +
   1.312 +  none1 = gtk_menu_item_new_with_mnemonic ("None");
   1.313 +  gtk_widget_set_name (none1, "none1");
   1.314 +  gtk_widget_show (none1);
   1.315 +  gtk_container_add (GTK_CONTAINER (menu1), none1);
   1.316 +
   1.317 +  square1 = gtk_menu_item_new_with_mnemonic ("Square");
   1.318 +  gtk_widget_set_name (square1, "square1");
   1.319 +  gtk_widget_show (square1);
   1.320 +  gtk_container_add (GTK_CONTAINER (menu1), square1);
   1.321 +
   1.322 +  _4x3__book__dvd_1 = gtk_menu_item_new_with_mnemonic ("4 x 3 (Book, DVD)");
   1.323 +  gtk_widget_set_name (_4x3__book__dvd_1, "_4x3__book__dvd_1");
   1.324 +  gtk_widget_show (_4x3__book__dvd_1);
   1.325 +  gtk_container_add (GTK_CONTAINER (menu1), _4x3__book__dvd_1);
   1.326 +
   1.327 +  _4x6__postcard_1 = gtk_menu_item_new_with_mnemonic ("4 x 6 (Postcard)");
   1.328 +  gtk_widget_set_name (_4x6__postcard_1, "_4x6__postcard_1");
   1.329 +  gtk_widget_show (_4x6__postcard_1);
   1.330 +  gtk_container_add (GTK_CONTAINER (menu1), _4x6__postcard_1);
   1.331 +
   1.332 +  _5x1 = gtk_menu_item_new_with_mnemonic ("5 x 7");
   1.333 +  gtk_widget_set_name (_5x1, "_5x1");
   1.334 +  gtk_widget_show (_5x1);
   1.335 +  gtk_container_add (GTK_CONTAINER (menu1), _5x1);
   1.336 +
   1.337 +  _8x1 = gtk_menu_item_new_with_mnemonic ("8 x 10");
   1.338 +  gtk_widget_set_name (_8x1, "_8x1");
   1.339 +  gtk_widget_show (_8x1);
   1.340 +  gtk_container_add (GTK_CONTAINER (menu1), _8x1);
   1.341 +
   1.342 +  custom1 = gtk_menu_item_new_with_mnemonic ("Custom");
   1.343 +  gtk_widget_set_name (custom1, "custom1");
   1.344 +  gtk_widget_show (custom1);
   1.345 +  gtk_container_add (GTK_CONTAINER (menu1), custom1);
   1.346 +
   1.347 +  gtk_option_menu_set_menu (GTK_OPTION_MENU (ratio_optionmenu), menu1);
   1.348 +
   1.349 +  vbox5 = gtk_vbox_new (FALSE, 0);
   1.350 +  gtk_widget_set_name (vbox5, "vbox5");
   1.351 +  gtk_widget_show (vbox5);
   1.352 +  gtk_box_pack_start (GTK_BOX (hbox1), vbox5, TRUE, TRUE, 0);
   1.353 +
   1.354 +  frame1 = gtk_frame_new (NULL);
   1.355 +  gtk_widget_set_name (frame1, "frame1");
   1.356 +  gtk_widget_show (frame1);
   1.357 +  gtk_box_pack_start (GTK_BOX (vbox5), frame1, TRUE, TRUE, 0);
   1.358 +  gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_NONE);
   1.359 +
   1.360 +  vbox7 = gtk_vbox_new (FALSE, 6);
   1.361 +  gtk_widget_set_name (vbox7, "vbox7");
   1.362 +  gtk_widget_show (vbox7);
   1.363 +  gtk_container_add (GTK_CONTAINER (frame1), vbox7);
   1.364 +
   1.365 +  nav_container = gtk_hbox_new (FALSE, 0);
   1.366 +  gtk_widget_set_name (nav_container, "nav_container");
   1.367 +  gtk_widget_show (nav_container);
   1.368 +  gtk_box_pack_start (GTK_BOX (vbox7), nav_container, TRUE, TRUE, 0);
   1.369 +
   1.370 +  hbox16 = gtk_hbox_new (FALSE, 6);
   1.371 +  gtk_widget_set_name (hbox16, "hbox16");
   1.372 +  gtk_widget_show (hbox16);
   1.373 +  gtk_box_pack_start (GTK_BOX (vbox7), hbox16, FALSE, TRUE, 0);
   1.374 +
   1.375 +  hbox17 = gtk_hbox_new (FALSE, 0);
   1.376 +  gtk_widget_set_name (hbox17, "hbox17");
   1.377 +  gtk_widget_show (hbox17);
   1.378 +  gtk_box_pack_end (GTK_BOX (hbox16), hbox17, FALSE, TRUE, 0);
   1.379 +
   1.380 +  crop_zoom_in_button = gtk_button_new ();
   1.381 +  gtk_widget_set_name (crop_zoom_in_button, "crop_zoom_in_button");
   1.382 +  gtk_widget_show (crop_zoom_in_button);
   1.383 +  gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_in_button, FALSE, FALSE, 0);
   1.384 +  gtk_button_set_relief (GTK_BUTTON (crop_zoom_in_button), GTK_RELIEF_NONE);
   1.385 +
   1.386 +  image2 = gtk_image_new_from_stock ("gtk-zoom-in", GTK_ICON_SIZE_BUTTON);
   1.387 +  gtk_widget_set_name (image2, "image2");
   1.388 +  gtk_widget_show (image2);
   1.389 +  gtk_container_add (GTK_CONTAINER (crop_zoom_in_button), image2);
   1.390 +
   1.391 +  crop_zoom_out_button = gtk_button_new ();
   1.392 +  gtk_widget_set_name (crop_zoom_out_button, "crop_zoom_out_button");
   1.393 +  gtk_widget_show (crop_zoom_out_button);
   1.394 +  gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_out_button, FALSE, FALSE, 0);
   1.395 +  gtk_button_set_relief (GTK_BUTTON (crop_zoom_out_button), GTK_RELIEF_NONE);
   1.396 +
   1.397 +  image4 = gtk_image_new_from_stock ("gtk-zoom-out", GTK_ICON_SIZE_BUTTON);
   1.398 +  gtk_widget_set_name (image4, "image4");
   1.399 +  gtk_widget_show (image4);
   1.400 +  gtk_container_add (GTK_CONTAINER (crop_zoom_out_button), image4);
   1.401 +
   1.402 +  crop_zoom_100_button = gtk_button_new ();
   1.403 +  gtk_widget_set_name (crop_zoom_100_button, "crop_zoom_100_button");
   1.404 +  gtk_widget_show (crop_zoom_100_button);
   1.405 +  gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_100_button, FALSE, FALSE, 0);
   1.406 +  gtk_button_set_relief (GTK_BUTTON (crop_zoom_100_button), GTK_RELIEF_NONE);
   1.407 +
   1.408 +  image3 = gtk_image_new_from_stock ("gtk-zoom-100", GTK_ICON_SIZE_BUTTON);
   1.409 +  gtk_widget_set_name (image3, "image3");
   1.410 +  gtk_widget_show (image3);
   1.411 +  gtk_container_add (GTK_CONTAINER (crop_zoom_100_button), image3);
   1.412 +
   1.413 +  crop_zoom_fit_button = gtk_button_new ();
   1.414 +  gtk_widget_set_name (crop_zoom_fit_button, "crop_zoom_fit_button");
   1.415 +  gtk_widget_show (crop_zoom_fit_button);
   1.416 +  gtk_box_pack_start (GTK_BOX (hbox17), crop_zoom_fit_button, FALSE, FALSE, 0);
   1.417 +  gtk_button_set_relief (GTK_BUTTON (crop_zoom_fit_button), GTK_RELIEF_NONE);
   1.418 +
   1.419 +  image1 = gtk_image_new_from_stock ("gtk-zoom-fit", GTK_ICON_SIZE_BUTTON);
   1.420 +  gtk_widget_set_name (image1, "image1");
   1.421 +  gtk_widget_show (image1);
   1.422 +  gtk_container_add (GTK_CONTAINER (crop_zoom_fit_button), image1);
   1.423 +
   1.424 +  g_signal_connect ((gpointer) cropper_window, "delete_event",
   1.425 +                    G_CALLBACK (on_cropper_window_delete_event),
   1.426 +                    NULL);
   1.427 +  g_signal_connect ((gpointer) cropper_window, "destroy",
   1.428 +                    G_CALLBACK (on_cropper_window_destroy),
   1.429 +                    NULL);
   1.430 +  g_signal_connect ((gpointer) ratio_w_spinbutton, "value_changed",
   1.431 +                    G_CALLBACK (on_ratio_w_spinbutton_value_changed),
   1.432 +                    NULL);
   1.433 +  g_signal_connect ((gpointer) ratio_w_spinbutton, "change_value",
   1.434 +                    G_CALLBACK (on_ratio_w_spinbutton_change_value),
   1.435 +                    NULL);
   1.436 +  g_signal_connect ((gpointer) ratio_swap_button, "clicked",
   1.437 +                    G_CALLBACK (on_ratio_swap_button_clicked),
   1.438 +                    NULL);
   1.439 +  g_signal_connect ((gpointer) ratio_h_spinbutton, "change_value",
   1.440 +                    G_CALLBACK (on_ratio_h_spinbutton_change_value),
   1.441 +                    NULL);
   1.442 +  g_signal_connect ((gpointer) ratio_h_spinbutton, "value_changed",
   1.443 +                    G_CALLBACK (on_ratio_h_spinbutton_value_changed),
   1.444 +                    NULL);
   1.445 +  g_signal_connect ((gpointer) none1, "activate",
   1.446 +                    G_CALLBACK (on_none1_activate),
   1.447 +                    NULL);
   1.448 +  g_signal_connect ((gpointer) square1, "activate",
   1.449 +                    G_CALLBACK (on_square1_activate),
   1.450 +                    NULL);
   1.451 +  g_signal_connect ((gpointer) _4x3__book__dvd_1, "activate",
   1.452 +                    G_CALLBACK (on_4x3__book__dvd_1_activate),
   1.453 +                    NULL);
   1.454 +  g_signal_connect ((gpointer) _4x6__postcard_1, "activate",
   1.455 +                    G_CALLBACK (on_4x6__postcard_1_activate),
   1.456 +                    NULL);
   1.457 +  g_signal_connect ((gpointer) _5x1, "activate",
   1.458 +                    G_CALLBACK (on_5x1_activate),
   1.459 +                    NULL);
   1.460 +  g_signal_connect ((gpointer) _8x1, "activate",
   1.461 +                    G_CALLBACK (on_8x1_activate),
   1.462 +                    NULL);
   1.463 +  g_signal_connect ((gpointer) custom1, "activate",
   1.464 +                    G_CALLBACK (on_custom1_activate),
   1.465 +                    NULL);
   1.466 +
   1.467 +  /* Store pointers to all widgets, for use by lookup_widget(). */
   1.468 +  GLADE_HOOKUP_OBJECT_NO_REF (cropper_window, cropper_window, "cropper_window");
   1.469 +  GLADE_HOOKUP_OBJECT (cropper_window, dialog_vbox1, "dialog_vbox1");
   1.470 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox1, "hbox1");
   1.471 +  GLADE_HOOKUP_OBJECT (cropper_window, vbox1, "vbox1");
   1.472 +  GLADE_HOOKUP_OBJECT (cropper_window, vbox2, "vbox2");
   1.473 +  GLADE_HOOKUP_OBJECT (cropper_window, label1, "label1");
   1.474 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox2, "hbox2");
   1.475 +  GLADE_HOOKUP_OBJECT (cropper_window, label2, "label2");
   1.476 +  GLADE_HOOKUP_OBJECT (cropper_window, table2, "table2");
   1.477 +  GLADE_HOOKUP_OBJECT (cropper_window, label3, "label3");
   1.478 +  GLADE_HOOKUP_OBJECT (cropper_window, label5, "label5");
   1.479 +  GLADE_HOOKUP_OBJECT (cropper_window, label4, "label4");
   1.480 +  GLADE_HOOKUP_OBJECT (cropper_window, label6, "label6");
   1.481 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox5, "hbox5");
   1.482 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_x_spinbutton, "crop_x_spinbutton");
   1.483 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox6, "hbox6");
   1.484 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_y_spinbutton, "crop_y_spinbutton");
   1.485 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox7, "hbox7");
   1.486 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_width_spinbutton, "crop_width_spinbutton");
   1.487 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox8, "hbox8");
   1.488 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_height_spinbutton, "crop_height_spinbutton");
   1.489 +  GLADE_HOOKUP_OBJECT (cropper_window, vbox4, "vbox4");
   1.490 +  GLADE_HOOKUP_OBJECT (cropper_window, label7, "label7");
   1.491 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox3, "hbox3");
   1.492 +  GLADE_HOOKUP_OBJECT (cropper_window, label8, "label8");
   1.493 +  GLADE_HOOKUP_OBJECT (cropper_window, table3, "table3");
   1.494 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox10, "hbox10");
   1.495 +  GLADE_HOOKUP_OBJECT (cropper_window, custom_ratio_box, "custom_ratio_box");
   1.496 +  GLADE_HOOKUP_OBJECT (cropper_window, ratio_w_spinbutton, "ratio_w_spinbutton");
   1.497 +  GLADE_HOOKUP_OBJECT (cropper_window, ratio_swap_button, "ratio_swap_button");
   1.498 +  GLADE_HOOKUP_OBJECT (cropper_window, eventbox1, "eventbox1");
   1.499 +  GLADE_HOOKUP_OBJECT (cropper_window, ratio_swap_image, "ratio_swap_image");
   1.500 +  GLADE_HOOKUP_OBJECT (cropper_window, ratio_h_spinbutton, "ratio_h_spinbutton");
   1.501 +  GLADE_HOOKUP_OBJECT (cropper_window, ratio_optionmenu, "ratio_optionmenu");
   1.502 +  GLADE_HOOKUP_OBJECT (cropper_window, menu1, "menu1");
   1.503 +  GLADE_HOOKUP_OBJECT (cropper_window, none1, "none1");
   1.504 +  GLADE_HOOKUP_OBJECT (cropper_window, square1, "square1");
   1.505 +  GLADE_HOOKUP_OBJECT (cropper_window, _4x3__book__dvd_1, "_4x3__book__dvd_1");
   1.506 +  GLADE_HOOKUP_OBJECT (cropper_window, _4x6__postcard_1, "_4x6__postcard_1");
   1.507 +  GLADE_HOOKUP_OBJECT (cropper_window, _5x1, "_5x1");
   1.508 +  GLADE_HOOKUP_OBJECT (cropper_window, _8x1, "_8x1");
   1.509 +  GLADE_HOOKUP_OBJECT (cropper_window, custom1, "custom1");
   1.510 +  GLADE_HOOKUP_OBJECT (cropper_window, vbox5, "vbox5");
   1.511 +  GLADE_HOOKUP_OBJECT (cropper_window, frame1, "frame1");
   1.512 +  GLADE_HOOKUP_OBJECT (cropper_window, vbox7, "vbox7");
   1.513 +  GLADE_HOOKUP_OBJECT (cropper_window, nav_container, "nav_container");
   1.514 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox16, "hbox16");
   1.515 +  GLADE_HOOKUP_OBJECT (cropper_window, hbox17, "hbox17");
   1.516 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_in_button, "crop_zoom_in_button");
   1.517 +  GLADE_HOOKUP_OBJECT (cropper_window, image2, "image2");
   1.518 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_out_button, "crop_zoom_out_button");
   1.519 +  GLADE_HOOKUP_OBJECT (cropper_window, image4, "image4");
   1.520 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_100_button, "crop_zoom_100_button");
   1.521 +  GLADE_HOOKUP_OBJECT (cropper_window, image3, "image3");
   1.522 +  GLADE_HOOKUP_OBJECT (cropper_window, crop_zoom_fit_button, "crop_zoom_fit_button");
   1.523 +  GLADE_HOOKUP_OBJECT (cropper_window, image1, "image1");
   1.524 +
   1.525 +  return cropper_window;
   1.526 +}
   1.527 +