annotate interface.c @ 11:c18ba4ea1514

just cosmetic changes
author meillo@marmaro.de
date Thu, 04 Mar 2010 14:18:19 +0100
parents 5e282003f0c1
children 75a30c850ea0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
1 #include <sys/types.h>
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
2 #include <sys/stat.h>
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
3 #include <unistd.h>
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
4 #include <string.h>
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
5 #include <stdio.h>
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
6
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
7 #include <gdk/gdkkeysyms.h>
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
8 #include <gtk/gtk.h>
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
9 #include <gdk-pixbuf/gdk-pixbuf.h>
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
10
5
61e5a1727231 added image widget, that displays the image
meillo@marmaro.de
parents: 4
diff changeset
11 #include "main.h"
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
12 #include "callbacks.h"
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
13 #include "support.h"
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
14
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
15 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
16 g_object_set_data_full(G_OBJECT(component), name, \
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
17 gtk_widget_ref(widget),(GDestroyNotify) gtk_widget_unref)
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
18
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
19 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
20 g_object_set_data(G_OBJECT(component), name, widget)
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
21
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
22 GtkWidget*
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
23 create_cropper_window(void)
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
24 {
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
25 GtkWidget *cropper_window;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
26 GtkWidget *dialog_vbox1;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
27 GtkWidget *hbox1;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
28 GtkWidget *vbox1;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
29 GtkWidget *vbox2;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
30 GtkWidget *label1;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
31 GtkWidget *hbox2;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
32 GtkWidget *label2;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
33 GtkWidget *table2;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
34 GtkWidget *label3;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
35 GtkWidget *label5;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
36 GtkWidget *label4;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
37 GtkWidget *label6;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
38 GtkWidget *hbox5;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
39 GtkObject *crop_x_spinbutton_adj;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
40 GtkWidget *crop_x_spinbutton;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
41 GtkWidget *hbox6;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
42 GtkObject *crop_y_spinbutton_adj;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
43 GtkWidget *crop_y_spinbutton;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
44 GtkWidget *hbox7;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
45 GtkObject *crop_width_spinbutton_adj;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
46 GtkWidget *crop_width_spinbutton;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
47 GtkWidget *hbox8;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
48 GtkObject *crop_height_spinbutton_adj;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
49 GtkWidget *crop_height_spinbutton;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
50 GtkWidget *vbox4;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
51 GtkWidget *label7;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
52 GtkWidget *hbox3;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
53 GtkWidget *label8;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
54 GtkWidget *table3;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
55 GtkWidget *hbox10;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
56 GtkWidget *custom_ratio_box;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
57 GtkObject *ratio_w_spinbutton_adj;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
58 GtkWidget *ratio_w_spinbutton;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
59 GtkWidget *ratio_swap_button;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
60 GtkWidget *eventbox1;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
61 GtkWidget *ratio_swap_image;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
62 GtkObject *ratio_h_spinbutton_adj;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
63 GtkWidget *ratio_h_spinbutton;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
64 GtkWidget *ratio_optionmenu;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
65 GtkWidget *menu1;
2
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
66 GtkWidget *ratio_none;
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
67 GtkWidget *ratio_square;
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
68 GtkWidget *ratio_4x3;
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
69 GtkWidget *ratio_3x2;
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
70 GtkWidget *ratio_custom;
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
71 GtkWidget *vbox5;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
72 GtkWidget *frame1;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
73 GtkWidget *vbox7;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
74 GtkWidget *nav_container;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
75 GtkWidget *hbox16;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
76 GtkWidget *hbox17;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
77 GtkWidget *crop_zoom_in_button;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
78 GtkWidget *image2;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
79 GtkWidget *crop_zoom_out_button;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
80 GtkWidget *image4;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
81 GtkWidget *crop_zoom_100_button;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
82 GtkWidget *image3;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
83 GtkWidget *crop_zoom_fit_button;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
84 GtkWidget *image1;
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
85 GtkWidget *dialog_action_area1;
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
86 GtkWidget *crop_okbutton;
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
87 GtkWidget *alignment1;
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
88 GtkWidget *hbox11;
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
89 GtkWidget *crop_image;
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
90 GtkWidget *label12;
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
91
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
92
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
93 cropper_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
94 gtk_widget_set_name(cropper_window, "cropper_window");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
95 gtk_container_set_border_width(GTK_CONTAINER(cropper_window), 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
96 gtk_window_set_title(GTK_WINDOW(cropper_window), "Cropper");
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
97
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
98 dialog_vbox1 = gtk_vbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
99 gtk_widget_set_name(dialog_vbox1, "dialog_vbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
100 gtk_widget_show(dialog_vbox1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
101 gtk_container_add(GTK_CONTAINER(cropper_window), dialog_vbox1);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
102
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
103 hbox1 = gtk_hbox_new(FALSE, 12);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
104 gtk_widget_set_name(hbox1, "hbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
105 gtk_widget_show(hbox1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
106 gtk_box_pack_start(GTK_BOX(dialog_vbox1), hbox1, TRUE, TRUE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
107 gtk_container_set_border_width(GTK_CONTAINER(hbox1), 5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
108
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
109 vbox1 = gtk_vbox_new(FALSE, 12);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
110 gtk_widget_set_name(vbox1, "vbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
111 gtk_widget_show(vbox1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
112 gtk_box_pack_start(GTK_BOX(hbox1), vbox1, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
113
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
114 vbox2 = gtk_vbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
115 gtk_widget_set_name(vbox2, "vbox2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
116 gtk_widget_show(vbox2);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
117 gtk_box_pack_start(GTK_BOX(vbox1), vbox2, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
118
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
119 label1 = gtk_label_new("<b>Selection</b>");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
120 gtk_widget_set_name(label1, "label1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
121 gtk_widget_show(label1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
122 gtk_box_pack_start(GTK_BOX(vbox2), label1, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
123 gtk_label_set_use_markup(GTK_LABEL(label1), TRUE);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
124 gtk_misc_set_alignment(GTK_MISC(label1), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
125
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
126 hbox2 = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
127 gtk_widget_set_name(hbox2, "hbox2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
128 gtk_widget_show(hbox2);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
129 gtk_box_pack_start(GTK_BOX(vbox2), hbox2, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
130
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
131 label2 = gtk_label_new(" ");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
132 gtk_widget_set_name(label2, "label2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
133 gtk_widget_show(label2);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
134 gtk_box_pack_start(GTK_BOX(hbox2), label2, FALSE, FALSE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
135
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
136 table2 = gtk_table_new(4, 2, FALSE);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
137 gtk_widget_set_name(table2, "table2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
138 gtk_widget_show(table2);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
139 gtk_box_pack_start(GTK_BOX(hbox2), table2, TRUE, TRUE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
140 gtk_table_set_row_spacings(GTK_TABLE(table2), 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
141 gtk_table_set_col_spacings(GTK_TABLE(table2), 6);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
142
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
143 label3 = gtk_label_new_with_mnemonic("_X:");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
144 gtk_widget_set_name(label3, "label3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
145 gtk_widget_show(label3);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
146 gtk_table_attach(GTK_TABLE(table2), label3, 0, 1, 0, 1,(GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
147 (GtkAttachOptions)(0), 0, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
148 gtk_misc_set_alignment(GTK_MISC(label3), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
149
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
150 label5 = gtk_label_new_with_mnemonic("_Y:");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
151 gtk_widget_set_name(label5, "label5");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
152 gtk_widget_show(label5);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
153 gtk_table_attach(GTK_TABLE(table2), label5, 0, 1, 1, 2,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
154 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
155 (GtkAttachOptions)(0), 0, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
156 gtk_misc_set_alignment(GTK_MISC(label5), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
157
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
158 label4 = gtk_label_new_with_mnemonic("_Width:");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
159 gtk_widget_set_name(label4, "label4");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
160 gtk_widget_show(label4);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
161 gtk_table_attach(GTK_TABLE(table2), label4, 0, 1, 2, 3,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
162 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
163 (GtkAttachOptions)(0), 0, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
164 gtk_misc_set_alignment(GTK_MISC(label4), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
165
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
166 label6 = gtk_label_new_with_mnemonic("_Height:");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
167 gtk_widget_set_name(label6, "label6");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
168 gtk_widget_show(label6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
169 gtk_table_attach(GTK_TABLE(table2), label6, 0, 1, 3, 4,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
170 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
171 (GtkAttachOptions)(0), 0, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
172 gtk_misc_set_alignment(GTK_MISC(label6), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
173
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
174 hbox5 = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
175 gtk_widget_set_name(hbox5, "hbox5");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
176 gtk_widget_show(hbox5);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
177 gtk_table_attach(GTK_TABLE(table2), hbox5, 1, 2, 0, 1,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
178 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
179 (GtkAttachOptions)(GTK_FILL), 0, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
180
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
181 crop_x_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
182 crop_x_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_x_spinbutton_adj), 1, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
183 gtk_widget_set_name(crop_x_spinbutton, "crop_x_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
184 gtk_widget_show(crop_x_spinbutton);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
185 gtk_box_pack_start(GTK_BOX(hbox5), crop_x_spinbutton, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
186
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
187 hbox6 = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
188 gtk_widget_set_name(hbox6, "hbox6");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
189 gtk_widget_show(hbox6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
190 gtk_table_attach(GTK_TABLE(table2), hbox6, 1, 2, 1, 2,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
191 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
192 (GtkAttachOptions)(GTK_FILL), 0, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
193
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
194 crop_y_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
195 crop_y_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_y_spinbutton_adj), 1, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
196 gtk_widget_set_name(crop_y_spinbutton, "crop_y_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
197 gtk_widget_show(crop_y_spinbutton);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
198 gtk_box_pack_start(GTK_BOX(hbox6), crop_y_spinbutton, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
199
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
200 hbox7 = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
201 gtk_widget_set_name(hbox7, "hbox7");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
202 gtk_widget_show(hbox7);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
203 gtk_table_attach(GTK_TABLE(table2), hbox7, 1, 2, 2, 3,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
204 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
205 (GtkAttachOptions)(GTK_FILL), 0, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
206
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
207 crop_width_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
208 crop_width_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_width_spinbutton_adj), 1, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
209 gtk_widget_set_name(crop_width_spinbutton, "crop_width_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
210 gtk_widget_show(crop_width_spinbutton);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
211 gtk_box_pack_start(GTK_BOX(hbox7), crop_width_spinbutton, FALSE, FALSE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
212
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
213 hbox8 = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
214 gtk_widget_set_name(hbox8, "hbox8");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
215 gtk_widget_show(hbox8);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
216 gtk_table_attach(GTK_TABLE(table2), hbox8, 1, 2, 3, 4,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
217 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
218 (GtkAttachOptions)(GTK_FILL), 0, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
219
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
220 crop_height_spinbutton_adj = gtk_adjustment_new(1, 0, 300, 1, 10, 1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
221 crop_height_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(crop_height_spinbutton_adj), 1, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
222 gtk_widget_set_name(crop_height_spinbutton, "crop_height_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
223 gtk_widget_show(crop_height_spinbutton);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
224 gtk_box_pack_start(GTK_BOX(hbox8), crop_height_spinbutton, FALSE, FALSE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
225
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
226 vbox4 = gtk_vbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
227 gtk_widget_set_name(vbox4, "vbox4");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
228 gtk_widget_show(vbox4);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
229 gtk_box_pack_start(GTK_BOX(vbox1), vbox4, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
230
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
231 label7 = gtk_label_new("<b>Aspect ratio</b>");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
232 gtk_widget_set_name(label7, "label7");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
233 gtk_widget_show(label7);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
234 gtk_box_pack_start(GTK_BOX(vbox4), label7, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
235 gtk_label_set_use_markup(GTK_LABEL(label7), TRUE);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
236 gtk_misc_set_alignment(GTK_MISC(label7), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
237
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
238 hbox3 = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
239 gtk_widget_set_name(hbox3, "hbox3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
240 gtk_widget_show(hbox3);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
241 gtk_box_pack_start(GTK_BOX(vbox4), hbox3, FALSE, FALSE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
242
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
243 label8 = gtk_label_new(" ");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
244 gtk_widget_set_name(label8, "label8");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
245 gtk_widget_show(label8);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
246 gtk_box_pack_start(GTK_BOX(hbox3), label8, FALSE, FALSE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
247
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
248 table3 = gtk_table_new(2, 2, FALSE);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
249 gtk_widget_set_name(table3, "table3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
250 gtk_widget_show(table3);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
251 gtk_box_pack_start(GTK_BOX(hbox3), table3, TRUE, TRUE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
252 gtk_table_set_row_spacings(GTK_TABLE(table3), 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
253 gtk_table_set_col_spacings(GTK_TABLE(table3), 6);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
254
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
255 hbox10 = gtk_hbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
256 gtk_widget_set_name(hbox10, "hbox10");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
257 gtk_widget_show(hbox10);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
258 gtk_table_attach(GTK_TABLE(table3), hbox10, 0, 2, 1, 2,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
259 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
260 (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), 0, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
261
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
262 custom_ratio_box = gtk_hbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
263 gtk_widget_set_name(custom_ratio_box, "custom_ratio_box");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
264 gtk_widget_show(custom_ratio_box);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
265 gtk_box_pack_start(GTK_BOX(hbox10), custom_ratio_box, TRUE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
266
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
267 ratio_w_spinbutton_adj = gtk_adjustment_new(1, 1, 9999, 1, 10, 10);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
268 ratio_w_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(ratio_w_spinbutton_adj), 1, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
269 gtk_widget_set_name(ratio_w_spinbutton, "ratio_w_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
270 gtk_widget_show(ratio_w_spinbutton);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
271 gtk_box_pack_start(GTK_BOX(custom_ratio_box), ratio_w_spinbutton, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
272
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
273 ratio_swap_button = gtk_button_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
274 gtk_widget_set_name(ratio_swap_button, "ratio_swap_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
275 gtk_widget_show(ratio_swap_button);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
276 gtk_box_pack_start(GTK_BOX(custom_ratio_box), ratio_swap_button, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
277 gtk_button_set_relief(GTK_BUTTON(ratio_swap_button), GTK_RELIEF_NONE);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
278
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
279 eventbox1 = gtk_event_box_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
280 gtk_widget_set_name(eventbox1, "eventbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
281 gtk_widget_show(eventbox1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
282 gtk_container_add(GTK_CONTAINER(ratio_swap_button), eventbox1);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
283
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
284 ratio_swap_image = gtk_image_new_from_stock("gtk-refresh", GTK_ICON_SIZE_BUTTON);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
285 gtk_widget_set_name(ratio_swap_image, "ratio_swap_image");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
286 gtk_widget_show(ratio_swap_image);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
287 gtk_container_add(GTK_CONTAINER(eventbox1), ratio_swap_image);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
288
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
289 ratio_h_spinbutton_adj = gtk_adjustment_new(1, 1, 9999, 1, 10, 10);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
290 ratio_h_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(ratio_h_spinbutton_adj), 1, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
291 gtk_widget_set_name(ratio_h_spinbutton, "ratio_h_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
292 gtk_widget_show(ratio_h_spinbutton);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
293 gtk_box_pack_start(GTK_BOX(custom_ratio_box), ratio_h_spinbutton, FALSE, TRUE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
294 gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(ratio_h_spinbutton), GTK_UPDATE_IF_VALID);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
295
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
296 ratio_optionmenu = gtk_option_menu_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
297 gtk_widget_set_name(ratio_optionmenu, "ratio_optionmenu");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
298 gtk_widget_show(ratio_optionmenu);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
299 gtk_table_attach(GTK_TABLE(table3), ratio_optionmenu, 0, 2, 0, 1,
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
300 (GtkAttachOptions)(GTK_FILL),
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
301 (GtkAttachOptions)(0), 0, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
302
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
303 menu1 = gtk_menu_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
304 gtk_widget_set_name(menu1, "menu1");
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
305
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
306 ratio_none = gtk_menu_item_new_with_mnemonic("None");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
307 gtk_widget_set_name(ratio_none, "ratio_none");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
308 gtk_widget_show(ratio_none);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
309 gtk_container_add(GTK_CONTAINER(menu1), ratio_none);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
310
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
311 ratio_square = gtk_menu_item_new_with_mnemonic("Square");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
312 gtk_widget_set_name(ratio_square, "ratio_square");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
313 gtk_widget_show(ratio_square);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
314 gtk_container_add(GTK_CONTAINER(menu1), ratio_square);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
315
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
316 ratio_4x3 = gtk_menu_item_new_with_mnemonic("4 x 3(Book, DVD)");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
317 gtk_widget_set_name(ratio_4x3, "ratio_4x3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
318 gtk_widget_show(ratio_4x3);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
319 gtk_container_add(GTK_CONTAINER(menu1), ratio_4x3);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
320
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
321 ratio_3x2 = gtk_menu_item_new_with_mnemonic("4 x 6(Postcard)");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
322 gtk_widget_set_name(ratio_3x2, "ratio_3x2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
323 gtk_widget_show(ratio_3x2);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
324 gtk_container_add(GTK_CONTAINER(menu1), ratio_3x2);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
325
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
326 ratio_custom = gtk_menu_item_new_with_mnemonic("Custom");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
327 gtk_widget_set_name(ratio_custom, "ratio_custom");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
328 gtk_widget_show(ratio_custom);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
329 gtk_container_add(GTK_CONTAINER(menu1), ratio_custom);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
330
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
331 gtk_option_menu_set_menu(GTK_OPTION_MENU(ratio_optionmenu), menu1);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
332
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
333 vbox5 = gtk_vbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
334 gtk_widget_set_name(vbox5, "vbox5");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
335 gtk_widget_show(vbox5);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
336 gtk_box_pack_start(GTK_BOX(hbox1), vbox5, TRUE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
337
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
338 frame1 = gtk_frame_new(NULL);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
339 gtk_widget_set_name(frame1, "frame1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
340 gtk_widget_show(frame1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
341 gtk_box_pack_start(GTK_BOX(vbox5), frame1, TRUE, TRUE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
342 gtk_frame_set_shadow_type(GTK_FRAME(frame1), GTK_SHADOW_NONE);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
343
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
344 vbox7 = gtk_vbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
345 gtk_widget_set_name(vbox7, "vbox7");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
346 gtk_widget_show(vbox7);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
347 gtk_container_add(GTK_CONTAINER(frame1), vbox7);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
348
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
349 nav_container = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
350 gtk_widget_set_name(nav_container, "nav_container");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
351 gtk_widget_show(nav_container);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
352 gtk_box_pack_start(GTK_BOX(vbox7), nav_container, TRUE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
353
5
61e5a1727231 added image widget, that displays the image
meillo@marmaro.de
parents: 4
diff changeset
354 /* image_area */
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
355 image_buffer = gdk_pixbuf_new_from_file(image_filename, NULL);
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
356 image_area = gtk_image_new_from_pixbuf(image_buffer);
10
5e282003f0c1 minor changes; besser indenting
meillo@marmaro.de
parents: 9
diff changeset
357
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
358 gtk_widget_set_name(image_area, "image_area");
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
359 gtk_widget_show(image_area);
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
360 gtk_box_pack_start(GTK_BOX(nav_container), image_area, TRUE, TRUE, 0);
5
61e5a1727231 added image widget, that displays the image
meillo@marmaro.de
parents: 4
diff changeset
361
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
362 hbox16 = gtk_hbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
363 gtk_widget_set_name(hbox16, "hbox16");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
364 gtk_widget_show(hbox16);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
365 gtk_box_pack_start(GTK_BOX(vbox7), hbox16, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
366
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
367 hbox17 = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
368 gtk_widget_set_name(hbox17, "hbox17");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
369 gtk_widget_show(hbox17);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
370 gtk_box_pack_end(GTK_BOX(hbox16), hbox17, FALSE, TRUE, 0);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
371
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
372 crop_zoom_in_button = gtk_button_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
373 gtk_widget_set_name(crop_zoom_in_button, "crop_zoom_in_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
374 gtk_widget_show(crop_zoom_in_button);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
375 gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_in_button, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
376 gtk_button_set_relief(GTK_BUTTON(crop_zoom_in_button), GTK_RELIEF_NONE);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
377
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
378 image2 = gtk_image_new_from_stock("gtk-zoom-in", GTK_ICON_SIZE_BUTTON);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
379 gtk_widget_set_name(image2, "image2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
380 gtk_widget_show(image2);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
381 gtk_container_add(GTK_CONTAINER(crop_zoom_in_button), image2);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
382
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
383 crop_zoom_out_button = gtk_button_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
384 gtk_widget_set_name(crop_zoom_out_button, "crop_zoom_out_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
385 gtk_widget_show(crop_zoom_out_button);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
386 gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_out_button, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
387 gtk_button_set_relief(GTK_BUTTON(crop_zoom_out_button), GTK_RELIEF_NONE);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
388
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
389 image4 = gtk_image_new_from_stock("gtk-zoom-out", GTK_ICON_SIZE_BUTTON);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
390 gtk_widget_set_name(image4, "image4");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
391 gtk_widget_show(image4);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
392 gtk_container_add(GTK_CONTAINER(crop_zoom_out_button), image4);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
393
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
394 crop_zoom_100_button = gtk_button_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
395 gtk_widget_set_name(crop_zoom_100_button, "crop_zoom_100_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
396 gtk_widget_show(crop_zoom_100_button);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
397 gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_100_button, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
398 gtk_button_set_relief(GTK_BUTTON(crop_zoom_100_button), GTK_RELIEF_NONE);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
399
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
400 image3 = gtk_image_new_from_stock("gtk-zoom-100", GTK_ICON_SIZE_BUTTON);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
401 gtk_widget_set_name(image3, "image3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
402 gtk_widget_show(image3);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
403 gtk_container_add(GTK_CONTAINER(crop_zoom_100_button), image3);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
404
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
405 crop_zoom_fit_button = gtk_button_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
406 gtk_widget_set_name(crop_zoom_fit_button, "crop_zoom_fit_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
407 gtk_widget_show(crop_zoom_fit_button);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
408 gtk_box_pack_start(GTK_BOX(hbox17), crop_zoom_fit_button, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
409 gtk_button_set_relief(GTK_BUTTON(crop_zoom_fit_button), GTK_RELIEF_NONE);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
410
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
411 image1 = gtk_image_new_from_stock("gtk-zoom-fit", GTK_ICON_SIZE_BUTTON);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
412 gtk_widget_set_name(image1, "image1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
413 gtk_widget_show(image1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
414 gtk_container_add(GTK_CONTAINER(crop_zoom_fit_button), image1);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
415
1
80535e4deaa4 nicer code formating
meillo@marmaro.de
parents: 0
diff changeset
416
2
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
417
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
418 /*
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
419 okay_box = gtk_hbox_new(FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
420 gtk_widget_set_name(okay_box, "okay_box");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
421 gtk_widget_show(okay_box);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
422 gtk_box_pack_end(GTK_BOX(hbox16), okay_box, FALSE, TRUE, 0);
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
423 */
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
424
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
425 crop_okbutton = gtk_button_new();
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
426 gtk_widget_set_name(crop_okbutton, "crop_okbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
427 gtk_widget_show(crop_okbutton);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
428 gtk_box_pack_end(GTK_BOX(dialog_vbox1), crop_okbutton, FALSE, FALSE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
429 GTK_WIDGET_SET_FLAGS(crop_okbutton, GTK_CAN_DEFAULT);
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
430
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
431 alignment1 = gtk_alignment_new(0.5, 0.5, 0, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
432 gtk_widget_set_name(alignment1, "alignment1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
433 gtk_widget_show(alignment1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
434 gtk_container_add(GTK_CONTAINER(crop_okbutton), alignment1);
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
435
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
436 hbox11 = gtk_hbox_new(FALSE, 2);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
437 gtk_widget_set_name(hbox11, "hbox11");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
438 gtk_widget_show(hbox11);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
439 gtk_container_add(GTK_CONTAINER(alignment1), hbox11);
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
440
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
441 crop_image = gtk_image_new_from_stock("gtk-ok", GTK_ICON_SIZE_BUTTON);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
442 gtk_widget_set_name(crop_image, "crop_image");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
443 gtk_widget_show(crop_image);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
444 gtk_box_pack_start(GTK_BOX(hbox11), crop_image, FALSE, FALSE, 0);
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
445
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
446 label12 = gtk_label_new_with_mnemonic("_Crop");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
447 gtk_widget_set_name(label12, "label12");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
448 gtk_widget_show(label12);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
449 gtk_box_pack_start(GTK_BOX(hbox11), label12, FALSE, FALSE, 0);
2
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
450
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
451
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
452
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
453
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
454
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
455 g_signal_connect(G_OBJECT(cropper_window), "show",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
456 G_CALLBACK(on_cropper_window_create),
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
457 NULL);
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
458 /* destroy */
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
459 g_signal_connect(G_OBJECT(cropper_window), "destroy",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
460 G_CALLBACK(on_cropper_window_destroy),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
461 NULL);
2
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
462
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
463
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
464 /* crop */
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
465 g_signal_connect(G_OBJECT(crop_okbutton), "clicked",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
466 G_CALLBACK(on_crop_clicked),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
467 NULL);
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
468
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
469
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
470 /* zoom */
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
471 g_signal_connect(G_OBJECT(crop_zoom_in_button), "clicked",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
472 G_CALLBACK(on_zoom_in_button_clicked),
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
473 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
474 g_signal_connect(G_OBJECT(crop_zoom_out_button), "clicked",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
475 G_CALLBACK(on_zoom_out_button_clicked),
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
476 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
477 g_signal_connect(G_OBJECT(crop_zoom_100_button), "clicked",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
478 G_CALLBACK(on_zoom_100_button_clicked),
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
479 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
480 g_signal_connect(G_OBJECT(crop_zoom_fit_button), "clicked",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
481 G_CALLBACK(on_zoom_fit_button_clicked),
7
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
482 NULL);
ec2d11d96fb0 image is now gdk-pixbuff; zoom implemented in a basic way
meillo@marmaro.de
parents: 5
diff changeset
483
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
484
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
485 /* aspect ratio */
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
486 /*
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
487 g_signal_connect(G_OBJECT(ratio_w_spinbutton), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
488 G_CALLBACK(on_ratio_w_spinbutton_value_changed),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
489 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
490 g_signal_connect(G_OBJECT(ratio_swap_button), "clicked",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
491 G_CALLBACK(on_ratio_swap_button_clicked),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
492 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
493 g_signal_connect(G_OBJECT(ratio_h_spinbutton), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
494 G_CALLBACK(on_ratio_h_spinbutton_value_changed),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
495 NULL);
2
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
496
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
497 g_signal_connect(G_OBJECT(ratio_none), "activate",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
498 G_CALLBACK(on_ratio_none_activate),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
499 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
500 g_signal_connect(G_OBJECT(ratio_square), "activate",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
501 G_CALLBACK(on_ratio_square_activate),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
502 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
503 g_signal_connect(G_OBJECT(ratio_4x3), "activate",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
504 G_CALLBACK(on_ratio_4x3_activate),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
505 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
506 g_signal_connect(G_OBJECT(ratio_3x2), "activate",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
507 G_CALLBACK(on_ratio_3x2_activate),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
508 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
509 g_signal_connect(G_OBJECT(ratio_custom), "activate",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
510 G_CALLBACK(on_ratio_custom_activate),
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
511 NULL);
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
512
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
513 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_optionmenu")), "changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
514 G_CALLBACK(ratio_optionmenu_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
515 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
516 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_w_spinbutton")), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
517 G_CALLBACK(ratio_value_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
518 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
519 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_h_spinbutton")), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
520 G_CALLBACK(ratio_value_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
521 NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
522 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_swap_button")), "clicked",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
523 G_CALLBACK(ratio_swap_button_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
524 NULL);
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
525 */
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
526
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
527
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
528 /* selection */
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
529 /*
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
530 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_x_spinbutton")), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
531 G_CALLBACK(selection_x_value_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
532 data);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
533 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_y_spinbutton")), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
534 G_CALLBACK(selection_y_value_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
535 data);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
536 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_width_spinbutton")), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
537 G_CALLBACK(selection_width_value_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
538 data);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
539 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_height_spinbutton")), "value_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
540 G_CALLBACK(selection_height_value_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
541 data);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
542 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_image")), "selection_changed",
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
543 G_CALLBACK(selection_changed_cb),
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
544 data);
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
545 */
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
546
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
547
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
548
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
549
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
550
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
551
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
552
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
553
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
554
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
555
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
556
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
557
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
558
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
559
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
560
2
e359bea4c8ac added code for ratio swap; new names for ratio operations; added main.h; some more
meillo@marmaro.de
parents: 1
diff changeset
561
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
562 /* Store pointers to all widgets, for use by lookup_widget(). */
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
563 GLADE_HOOKUP_OBJECT_NO_REF(cropper_window, cropper_window, "cropper_window");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
564 GLADE_HOOKUP_OBJECT(cropper_window, dialog_vbox1, "dialog_vbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
565 GLADE_HOOKUP_OBJECT(cropper_window, hbox1, "hbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
566 GLADE_HOOKUP_OBJECT(cropper_window, vbox1, "vbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
567 GLADE_HOOKUP_OBJECT(cropper_window, vbox2, "vbox2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
568 GLADE_HOOKUP_OBJECT(cropper_window, label1, "label1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
569 GLADE_HOOKUP_OBJECT(cropper_window, hbox2, "hbox2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
570 GLADE_HOOKUP_OBJECT(cropper_window, label2, "label2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
571 GLADE_HOOKUP_OBJECT(cropper_window, table2, "table2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
572 GLADE_HOOKUP_OBJECT(cropper_window, label3, "label3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
573 GLADE_HOOKUP_OBJECT(cropper_window, label5, "label5");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
574 GLADE_HOOKUP_OBJECT(cropper_window, label4, "label4");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
575 GLADE_HOOKUP_OBJECT(cropper_window, label6, "label6");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
576 GLADE_HOOKUP_OBJECT(cropper_window, hbox5, "hbox5");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
577 GLADE_HOOKUP_OBJECT(cropper_window, crop_x_spinbutton, "crop_x_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
578 GLADE_HOOKUP_OBJECT(cropper_window, hbox6, "hbox6");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
579 GLADE_HOOKUP_OBJECT(cropper_window, crop_y_spinbutton, "crop_y_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
580 GLADE_HOOKUP_OBJECT(cropper_window, hbox7, "hbox7");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
581 GLADE_HOOKUP_OBJECT(cropper_window, crop_width_spinbutton, "crop_width_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
582 GLADE_HOOKUP_OBJECT(cropper_window, hbox8, "hbox8");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
583 GLADE_HOOKUP_OBJECT(cropper_window, crop_height_spinbutton, "crop_height_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
584 GLADE_HOOKUP_OBJECT(cropper_window, vbox4, "vbox4");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
585 GLADE_HOOKUP_OBJECT(cropper_window, label7, "label7");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
586 GLADE_HOOKUP_OBJECT(cropper_window, hbox3, "hbox3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
587 GLADE_HOOKUP_OBJECT(cropper_window, label8, "label8");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
588 GLADE_HOOKUP_OBJECT(cropper_window, table3, "table3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
589 GLADE_HOOKUP_OBJECT(cropper_window, hbox10, "hbox10");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
590 GLADE_HOOKUP_OBJECT(cropper_window, custom_ratio_box, "custom_ratio_box");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
591 GLADE_HOOKUP_OBJECT(cropper_window, ratio_w_spinbutton, "ratio_w_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
592 GLADE_HOOKUP_OBJECT(cropper_window, ratio_swap_button, "ratio_swap_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
593 GLADE_HOOKUP_OBJECT(cropper_window, eventbox1, "eventbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
594 GLADE_HOOKUP_OBJECT(cropper_window, ratio_swap_image, "ratio_swap_image");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
595 GLADE_HOOKUP_OBJECT(cropper_window, ratio_h_spinbutton, "ratio_h_spinbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
596 GLADE_HOOKUP_OBJECT(cropper_window, ratio_optionmenu, "ratio_optionmenu");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
597 GLADE_HOOKUP_OBJECT(cropper_window, menu1, "menu1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
598 GLADE_HOOKUP_OBJECT(cropper_window, ratio_none, "ratio_none");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
599 GLADE_HOOKUP_OBJECT(cropper_window, ratio_square, "ratio_square");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
600 GLADE_HOOKUP_OBJECT(cropper_window, ratio_4x3, "ratio_4x3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
601 GLADE_HOOKUP_OBJECT(cropper_window, ratio_3x2, "ratio_3x2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
602 GLADE_HOOKUP_OBJECT(cropper_window, ratio_custom, "ratio_custom");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
603 GLADE_HOOKUP_OBJECT(cropper_window, vbox5, "vbox5");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
604 GLADE_HOOKUP_OBJECT(cropper_window, frame1, "frame1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
605 GLADE_HOOKUP_OBJECT(cropper_window, vbox7, "vbox7");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
606 GLADE_HOOKUP_OBJECT(cropper_window, nav_container, "nav_container");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
607 GLADE_HOOKUP_OBJECT(cropper_window, image_area, "image_area");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
608 GLADE_HOOKUP_OBJECT(cropper_window,(GtkWidget*) image_buffer, "image_buffer");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
609 GLADE_HOOKUP_OBJECT(cropper_window, hbox16, "hbox16");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
610 GLADE_HOOKUP_OBJECT(cropper_window, hbox17, "hbox17");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
611 GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_in_button, "crop_zoom_in_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
612 GLADE_HOOKUP_OBJECT(cropper_window, image2, "image2");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
613 GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_out_button, "crop_zoom_out_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
614 GLADE_HOOKUP_OBJECT(cropper_window, image4, "image4");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
615 GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_100_button, "crop_zoom_100_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
616 GLADE_HOOKUP_OBJECT(cropper_window, image3, "image3");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
617 GLADE_HOOKUP_OBJECT(cropper_window, crop_zoom_fit_button, "crop_zoom_fit_button");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
618 GLADE_HOOKUP_OBJECT(cropper_window, image1, "image1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
619 /*GLADE_HOOKUP_OBJECT_NO_REF(cropper_window, dialog_action_area1, "dialog_action_area1"); */
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
620 GLADE_HOOKUP_OBJECT(cropper_window, crop_okbutton, "crop_okbutton");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
621 GLADE_HOOKUP_OBJECT(cropper_window, alignment1, "alignment1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
622 GLADE_HOOKUP_OBJECT(cropper_window, hbox11, "hbox11");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
623 GLADE_HOOKUP_OBJECT(cropper_window, crop_image, "crop_image");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
624 GLADE_HOOKUP_OBJECT(cropper_window, label12, "label12");
4
2f11ab3e6047 added option handling; added output for convert; commented all ratio code cause it is not really important now
meillo@marmaro.de
parents: 2
diff changeset
625
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
626
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
627 return cropper_window;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
628 }
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
629