annotate interface.c @ 15:7dbf3879939a

removed support.*
author meillo@marmaro.de
date Thu, 04 Mar 2010 19:16:10 +0100
parents da18f2d4f92f
children 88b8856fccf5
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
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
14 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
15 g_object_set_data_full(G_OBJECT(component), name, \
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
16 gtk_widget_ref(widget),(GDestroyNotify) gtk_widget_unref)
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
17
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
18 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
19 g_object_set_data(G_OBJECT(component), name, widget)
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
20
15
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
21
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
22 /*
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
23 * This function returns a widget in a component created by Glade.
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
24 * Call it with the toplevel widget in the component (i.e. a window/dialog),
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
25 * or alternatively any widget in the component, and the name of the widget
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
26 * you want returned.
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
27 */
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
28 GtkWidget*
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
29 lookup_widget(GtkWidget* widget, const gchar* widget_name)
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
30 {
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
31 GtkWidget* parent;
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
32 GtkWidget* found_widget;
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
33
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
34 for (;;) {
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
35 if (GTK_IS_MENU(widget)) {
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
36 parent = gtk_menu_get_attach_widget(GTK_MENU(widget));
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
37 } else {
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
38 parent = widget->parent;
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
39 }
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
40 if (!parent) {
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
41 parent = (GtkWidget*) g_object_get_data(G_OBJECT(widget), "GladeParentKey");
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
42 }
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
43 if (parent == NULL) {
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
44 break;
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
45 }
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
46 widget = parent;
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
47 }
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
48
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
49 found_widget = (GtkWidget*) g_object_get_data(G_OBJECT(widget), widget_name);
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
50 if (!found_widget) {
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
51 g_warning("Widget not found: %s", widget_name);
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
52 }
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
53 return found_widget;
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
54 }
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
55
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
56
7dbf3879939a removed support.*
meillo@marmaro.de
parents: 14
diff changeset
57
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
58 GtkWidget*
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
59 create_cropper_window(void)
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
60 {
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
61 GtkWidget *cropper_window;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
62 GtkWidget *dialog_vbox1;
14
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
63 GtkWidget *status;
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
64 GtkWidget *label1;
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
65 GtkWidget *label2;
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
66
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
67
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
68 cropper_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
69 gtk_widget_set_name(cropper_window, "cropper_window");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
70 gtk_container_set_border_width(GTK_CONTAINER(cropper_window), 6);
14
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
71 gtk_window_set_title(GTK_WINDOW(cropper_window), "cropper-0.2");
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
72
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
73 dialog_vbox1 = gtk_vbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
74 gtk_widget_set_name(dialog_vbox1, "dialog_vbox1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
75 gtk_widget_show(dialog_vbox1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
76 gtk_container_add(GTK_CONTAINER(cropper_window), dialog_vbox1);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
77
14
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
78
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
79 status = gtk_hbox_new(FALSE, 0);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
80 gtk_widget_set_name(status, "status");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
81 gtk_widget_show(status);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
82 gtk_box_pack_end(GTK_BOX(dialog_vbox1), status, FALSE, FALSE, 0);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
83
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
84 label1 = gtk_label_new("zoom:");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
85 gtk_widget_set_name(label1, "label1");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
86 gtk_widget_show(label1);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
87 gtk_box_pack_start(GTK_BOX(status), label1, FALSE, FALSE, 0);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
88
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
89 label2 = gtk_label_new("1.0");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
90 gtk_widget_set_name(label2, "label2");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
91 gtk_widget_show(label2);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
92 gtk_box_pack_start(GTK_BOX(status), label2, FALSE, FALSE, 0);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
93
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
94 /* image_area */
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
95 image_buffer = gdk_pixbuf_new_from_file(image_filename, NULL);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
96 image_area = gtk_image_new_from_pixbuf(image_buffer);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
97
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
98 gtk_widget_set_name(image_area, "image_area");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
99 gtk_widget_show(image_area);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
100 gtk_box_pack_start(GTK_BOX(dialog_vbox1), image_area, TRUE, TRUE, 0);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
101
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
102
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
103
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
104
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
105
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
106 g_signal_connect(G_OBJECT(cropper_window), "show",
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
107 G_CALLBACK(on_cropper_window_create), NULL);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
108
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
109 g_signal_connect(G_OBJECT(cropper_window), "destroy",
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
110 G_CALLBACK(on_cropper_window_destroy), NULL);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
111
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
112 g_signal_connect(cropper_window, "key-press-event",
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
113 G_CALLBACK(on_key_press), NULL);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
114
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
115
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
116 /* Store pointers to all widgets, for use by lookup_widget(). */
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
117
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
118 GLADE_HOOKUP_OBJECT_NO_REF(cropper_window, cropper_window, "cropper_window");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
119 GLADE_HOOKUP_OBJECT(cropper_window, dialog_vbox1, "dialog_vbox1");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
120
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
121 GLADE_HOOKUP_OBJECT(cropper_window, label1, "label1");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
122 GLADE_HOOKUP_OBJECT(cropper_window, label2, "label2");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
123 GLADE_HOOKUP_OBJECT(cropper_window, status, "status");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
124 GLADE_HOOKUP_OBJECT(cropper_window, image_area, "image_area");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
125 GLADE_HOOKUP_OBJECT(cropper_window,(GtkWidget*) image_buffer, "image_buffer");
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
126
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
127
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
128 return cropper_window;
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
129 }
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
130
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
131
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
132
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
133
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
134
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
135
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
136
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
137
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
138
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
139 /*
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
140 gtk_container_set_border_width(GTK_CONTAINER(hbox1), 5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
141
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
142 label1 = gtk_label_new("<b>Selection</b>");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
143 gtk_label_set_use_markup(GTK_LABEL(label1), TRUE);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
144 gtk_misc_set_alignment(GTK_MISC(label1), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
145
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
146 gtk_table_set_row_spacings(GTK_TABLE(table2), 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
147 gtk_table_set_col_spacings(GTK_TABLE(table2), 6);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
148
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
149 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
150 (GtkAttachOptions)(0), 0, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
151 gtk_misc_set_alignment(GTK_MISC(label3), 0, 0.5);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
152
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
153 frame1 = gtk_frame_new(NULL);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
154 gtk_widget_set_name(frame1, "frame1");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
155 gtk_widget_show(frame1);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
156 gtk_box_pack_start(GTK_BOX(vbox5), frame1, TRUE, TRUE, 0);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
157 gtk_frame_set_shadow_type(GTK_FRAME(frame1), GTK_SHADOW_NONE);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
158
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
159 vbox7 = gtk_vbox_new(FALSE, 6);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
160 gtk_widget_set_name(vbox7, "vbox7");
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
161 gtk_widget_show(vbox7);
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
162 gtk_container_add(GTK_CONTAINER(frame1), vbox7);
0
ca9155129253 initial commit
meillo@marmaro.de
parents:
diff changeset
163
14
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
164 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_x_spinbutton")), "value_changed",
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
165 G_CALLBACK(selection_x_value_changed_cb), data);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
166 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "crop_image")), "selection_changed",
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
167 G_CALLBACK(selection_changed_cb), data);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
168 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_swap_button")), "clicked",
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
169 G_CALLBACK(ratio_swap_button_cb), NULL);
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
170 g_signal_connect(G_OBJECT(lookup_widget(cropper_window, "ratio_optionmenu")), "changed",
da18f2d4f92f removed all buttons and stuff from the window; cleaned up
meillo@marmaro.de
parents: 13
diff changeset
171 G_CALLBACK(ratio_optionmenu_changed_cb), NULL);
11
c18ba4ea1514 just cosmetic changes
meillo@marmaro.de
parents: 10
diff changeset
172 g_signal_connect(G_OBJECT(ratio_none), "activate",
12
75a30c850ea0 more cosmetic changes
meillo@marmaro.de
parents: 11
diff changeset
173 G_CALLBACK(on_ratio_none_activate), 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
174 */