summaryrefslogtreecommitdiff
path: root/src/bin/ephoto_color.c
diff options
context:
space:
mode:
authorStephen Houston <smhouston88@gmail.com>2015-11-24 16:21:21 -0600
committerStephen Houston <smhouston88@gmail.com>2015-11-24 16:21:21 -0600
commitcf25f7c5610cbb151c987003949964b0e6be58c5 (patch)
tree1d9653bf0ccf1c0d5b0f019981f3d3d126abd745 /src/bin/ephoto_color.c
parent0b62428e24d75d749f20204a5fc51f37490f5d35 (diff)
Ephoto: Add file operations, context menus, sorting, and more.
Diffstat (limited to 'src/bin/ephoto_color.c')
-rw-r--r--src/bin/ephoto_color.c250
1 files changed, 137 insertions, 113 deletions
diff --git a/src/bin/ephoto_color.c b/src/bin/ephoto_color.c
index 218c960..94eb8c3 100644
--- a/src/bin/ephoto_color.c
+++ b/src/bin/ephoto_color.c
@@ -21,165 +21,173 @@ static int
21_normalize_color(int color) 21_normalize_color(int color)
22{ 22{
23 if (color < 0) 23 if (color < 0)
24 return 0; 24 return 0;
25 else if (color > 255) 25 else if (color > 255)
26 return 255; 26 return 255;
27 else 27 else
28 return color; 28 return color;
29} 29}
30 30
31static int 31static int
32_mul_color_alpha(int color, int alpha) 32_mul_color_alpha(int color, int alpha)
33{ 33{
34 if (alpha > 0 && alpha < 255) 34 if (alpha > 0 && alpha < 255)
35 return (color * (255 / alpha)); 35 return color * (255 / alpha);
36 else 36 else
37 return color; 37 return color;
38} 38}
39 39
40static int 40static int
41_demul_color_alpha(int color, int alpha) 41_demul_color_alpha(int color, int alpha)
42{ 42{
43 if (alpha > 0 && alpha < 255) 43 if (alpha > 0 && alpha < 255)
44 return ((color * alpha) / 255); 44 return (color * alpha) / 255;
45 else 45 else
46 return color; 46 return color;
47} 47}
48 48
49unsigned int * 49unsigned int *
50_ephoto_color_adjust_red(Ephoto_Color *eco, int red, unsigned int *image_data) 50_ephoto_color_adjust_red(Ephoto_Color *eco, int red, unsigned int *image_data)
51{ 51{
52 unsigned int *im_data, *im_data_new, *p1, *p2; 52 unsigned int *im_data, *im_data_new, *p1, *p2;
53 int x, y, w, h; 53 int x, y;
54 int a, r, g, b, rr; 54 int a, r, g, b, rr;
55 55
56 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 56 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
57 if (image_data) 57 if (image_data)
58 memcpy(im_data, image_data, sizeof(unsigned int) * eco->w * eco->h); 58 memcpy(im_data, image_data, sizeof(unsigned int) * eco->w * eco->h);
59 else 59 else
60 memcpy(im_data, eco->original_im_data, sizeof(unsigned int) * eco->w * eco->h); 60 memcpy(im_data, eco->original_im_data,
61 sizeof(unsigned int) * eco->w * eco->h);
61 62
62 eco->red = red; 63 eco->red = red;
63 im_data_new = malloc(sizeof(unsigned int) * eco->w * eco->h); 64 im_data_new = malloc(sizeof(unsigned int) * eco->w * eco->h);
64 65
65 for (y = 0; y < eco->h; y++) 66 for (y = 0; y < eco->h; y++)
66 { 67 {
67 p1 = im_data + (y * eco->w); 68 p1 = im_data + (y * eco->w);
68 p2 = im_data_new + (y * eco->w); 69 p2 = im_data_new + (y * eco->w);
69 for (x = 0; x < eco->w; x++) 70 for (x = 0; x < eco->w; x++)
70 { 71 {
71 b = (int)((*p1) & 0xff); 72 b = (int) ((*p1) & 0xff);
72 g = (int)((*p1 >> 8) & 0xff); 73 g = (int) ((*p1 >> 8) & 0xff);
73 r = (int)((*p1 >> 16) & 0xff); 74 r = (int) ((*p1 >> 16) & 0xff);
74 a = (int)((*p1 >> 24) & 0xff); 75 a = (int) ((*p1 >> 24) & 0xff);
75 b = _mul_color_alpha(b, a); 76 b = _mul_color_alpha(b, a);
76 g = _mul_color_alpha(g, a); 77 g = _mul_color_alpha(g, a);
77 r = _mul_color_alpha(r, a); 78 r = _mul_color_alpha(r, a);
78 rr = (int)r+eco->red; 79 rr = (int) r + eco->red;
79 b = _normalize_color(b); 80 b = _normalize_color(b);
80 g = _normalize_color(g); 81 g = _normalize_color(g);
81 rr = _normalize_color(rr); 82 rr = _normalize_color(rr);
82 b = _demul_color_alpha(b, a); 83 b = _demul_color_alpha(b, a);
83 g = _demul_color_alpha(g, a); 84 g = _demul_color_alpha(g, a);
84 rr = _demul_color_alpha(rr, a); 85 rr = _demul_color_alpha(rr, a);
85 *p2 = (a << 24) | (rr << 16) | (g << 8) | b; 86 *p2 = (a << 24) | (rr << 16) | (g << 8) | b;
86 p2++; 87 p2++;
87 p1++; 88 p1++;
88 } 89 }
89 } 90 }
90 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE, im_data_new, eco->w, eco->h); 91 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE,
92 im_data_new, eco->w, eco->h);
91 free(im_data); 93 free(im_data);
92 return im_data_new; 94 return im_data_new;
93} 95}
94 96
95unsigned int * 97unsigned int *
96_ephoto_color_adjust_green(Ephoto_Color *eco, int green, unsigned int *image_data) 98_ephoto_color_adjust_green(Ephoto_Color *eco, int green,
99 unsigned int *image_data)
97{ 100{
98 unsigned int *im_data, *im_data_new, *p1, *p2; 101 unsigned int *im_data, *im_data_new, *p1, *p2;
99 int x, y, w, h; 102 int x, y;
100 int a, r, g, b, gg; 103 int a, r, g, b, gg;
101 104
102 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 105 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
103 if (image_data) 106 if (image_data)
104 memcpy(im_data, image_data, sizeof(unsigned int) * eco->w * eco->h); 107 memcpy(im_data, image_data, sizeof(unsigned int) * eco->w * eco->h);
105 else 108 else
106 memcpy(im_data, eco->original_im_data, sizeof(unsigned int) * eco->w * eco->h); 109 memcpy(im_data, eco->original_im_data,
110 sizeof(unsigned int) * eco->w * eco->h);
107 111
108 eco->green = green; 112 eco->green = green;
109 im_data_new = malloc(sizeof(unsigned int) * eco->w * eco->h); 113 im_data_new = malloc(sizeof(unsigned int) * eco->w * eco->h);
110 114
111 for (y = 0; y < eco->h; y++) 115 for (y = 0; y < eco->h; y++)
112 { 116 {
113 p1 = im_data + (y * eco->w); 117 p1 = im_data + (y * eco->w);
114 p2 = im_data_new + (y * eco->w); 118 p2 = im_data_new + (y * eco->w);
115 for (x = 0; x < eco->w; x++) 119 for (x = 0; x < eco->w; x++)
116 { 120 {
117 b = (int)((*p1) & 0xff); 121 b = (int) ((*p1) & 0xff);
118 g = (int)((*p1 >> 8) & 0xff); 122 g = (int) ((*p1 >> 8) & 0xff);
119 r = (int)((*p1 >> 16) & 0xff); 123 r = (int) ((*p1 >> 16) & 0xff);
120 a = (int)((*p1 >> 24) & 0xff); 124 a = (int) ((*p1 >> 24) & 0xff);
121 b = _mul_color_alpha(b, a); 125 b = _mul_color_alpha(b, a);
122 g = _mul_color_alpha(g, a); 126 g = _mul_color_alpha(g, a);
123 r = _mul_color_alpha(r, a); 127 r = _mul_color_alpha(r, a);
124 gg = (int)g+eco->green; 128 gg = (int) g + eco->green;
125 b = _normalize_color(b); 129 b = _normalize_color(b);
126 gg = _normalize_color(gg); 130 gg = _normalize_color(gg);
127 r = _normalize_color(r); 131 r = _normalize_color(r);
128 b = _demul_color_alpha(b, a); 132 b = _demul_color_alpha(b, a);
129 gg = _demul_color_alpha(gg, a); 133 gg = _demul_color_alpha(gg, a);
130 r = _demul_color_alpha(r, a); 134 r = _demul_color_alpha(r, a);
131 *p2 = (a << 24) | (r << 16) | (gg << 8) | b; 135 *p2 = (a << 24) | (r << 16) | (gg << 8) | b;
132 p2++; 136 p2++;
133 p1++; 137 p1++;
134 } 138 }
135 } 139 }
136 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE, im_data_new, eco->w, eco->h); 140 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE,
141 im_data_new, eco->w, eco->h);
137 free(im_data); 142 free(im_data);
138 return im_data_new; 143 return im_data_new;
139} 144}
140 145
141unsigned int * 146unsigned int *
142_ephoto_color_adjust_blue(Ephoto_Color *eco, int blue, unsigned int *image_data) 147_ephoto_color_adjust_blue(Ephoto_Color *eco, int blue,
148 unsigned int *image_data)
143{ 149{
144 unsigned int *im_data, *im_data_new, *p1, *p2; 150 unsigned int *im_data, *im_data_new, *p1, *p2;
145 int x, y, w, h; 151 int x, y;
146 int a, r, g, b, bb; 152 int a, r, g, b, bb;
147 153
148 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 154 im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
149 if (image_data) 155 if (image_data)
150 memcpy(im_data, image_data, sizeof(unsigned int) * eco->w * eco->h); 156 memcpy(im_data, image_data, sizeof(unsigned int) * eco->w * eco->h);
151 else 157 else
152 memcpy(im_data, eco->original_im_data, sizeof(unsigned int) * eco->w * eco->h); 158 memcpy(im_data, eco->original_im_data,
159 sizeof(unsigned int) * eco->w * eco->h);
153 160
154 eco->blue = blue; 161 eco->blue = blue;
155 im_data_new = malloc(sizeof(unsigned int) * eco->w * eco->h); 162 im_data_new = malloc(sizeof(unsigned int) * eco->w * eco->h);
156 163
157 for (y = 0; y < eco->h; y++) 164 for (y = 0; y < eco->h; y++)
158 { 165 {
159 p1 = im_data + (y * eco->w); 166 p1 = im_data + (y * eco->w);
160 p2 = im_data_new + (y * eco->w); 167 p2 = im_data_new + (y * eco->w);
161 for (x = 0; x < eco->w; x++) 168 for (x = 0; x < eco->w; x++)
162 { 169 {
163 b = (int)((*p1) & 0xff); 170 b = (int) ((*p1) & 0xff);
164 g = (int)((*p1 >> 8) & 0xff); 171 g = (int) ((*p1 >> 8) & 0xff);
165 r = (int)((*p1 >> 16) & 0xff); 172 r = (int) ((*p1 >> 16) & 0xff);
166 a = (int)((*p1 >> 24) & 0xff); 173 a = (int) ((*p1 >> 24) & 0xff);
167 b = _mul_color_alpha(b, a); 174 b = _mul_color_alpha(b, a);
168 g = _mul_color_alpha(g, a); 175 g = _mul_color_alpha(g, a);
169 r = _mul_color_alpha(r, a); 176 r = _mul_color_alpha(r, a);
170 bb = (int)b+eco->blue; 177 bb = (int) b + eco->blue;
171 bb = _normalize_color(bb); 178 bb = _normalize_color(bb);
172 g = _normalize_color(g); 179 g = _normalize_color(g);
173 r = _normalize_color(r); 180 r = _normalize_color(r);
174 bb = _demul_color_alpha(bb, a); 181 bb = _demul_color_alpha(bb, a);
175 g = _demul_color_alpha(g, a); 182 g = _demul_color_alpha(g, a);
176 r = _demul_color_alpha(r, a); 183 r = _demul_color_alpha(r, a);
177 *p2 = (a << 24) | (r << 16) | (g << 8) | bb; 184 *p2 = (a << 24) | (r << 16) | (g << 8) | bb;
178 p2++; 185 p2++;
179 p1++; 186 p1++;
180 } 187 }
181 } 188 }
182 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE, im_data_new, eco->w, eco->h); 189 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE,
190 im_data_new, eco->w, eco->h);
183 free(im_data); 191 free(im_data);
184 return im_data_new; 192 return im_data_new;
185} 193}
@@ -189,43 +197,45 @@ _red_slider_changed(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
189{ 197{
190 Ephoto_Color *eco = data; 198 Ephoto_Color *eco = data;
191 int red; 199 int red;
192 unsigned int *image_data, *image_data_two, *image_data_three; 200 unsigned int *image_data, *image_data_two;
193 201
194 red = elm_slider_value_get(obj); 202 red = elm_slider_value_get(obj);
195 image_data = _ephoto_color_adjust_red(eco, red, NULL); 203 image_data = _ephoto_color_adjust_red(eco, red, NULL);
196 image_data_two = _ephoto_color_adjust_green(eco, eco->green, image_data); 204 image_data_two = _ephoto_color_adjust_green(eco, eco->green, image_data);
197 image_data_three = _ephoto_color_adjust_blue(eco, eco->blue, image_data_two); 205 _ephoto_color_adjust_blue(eco, eco->blue, image_data_two);
198} 206}
199 207
200
201static void 208static void
202_green_slider_changed(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) 209_green_slider_changed(void *data, Evas_Object *obj,
210 void *event_info EINA_UNUSED)
203{ 211{
204 Ephoto_Color *eco = data; 212 Ephoto_Color *eco = data;
205 int green; 213 int green;
206 unsigned int *image_data, *image_data_two, *image_data_three; 214 unsigned int *image_data, *image_data_two;
207 215
208 green = elm_slider_value_get(obj); 216 green = elm_slider_value_get(obj);
209 image_data = _ephoto_color_adjust_green(eco, green, NULL); 217 image_data = _ephoto_color_adjust_green(eco, green, NULL);
210 image_data_two = _ephoto_color_adjust_red(eco, eco->red, image_data); 218 image_data_two = _ephoto_color_adjust_red(eco, eco->red, image_data);
211 image_data_three = _ephoto_color_adjust_blue(eco, eco->blue, image_data_two); 219 _ephoto_color_adjust_blue(eco, eco->blue, image_data_two);
212} 220}
213 221
214static void 222static void
215_blue_slider_changed(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) 223_blue_slider_changed(void *data, Evas_Object *obj,
224 void *event_info EINA_UNUSED)
216{ 225{
217 Ephoto_Color *eco = data; 226 Ephoto_Color *eco = data;
218 int blue; 227 int blue;
219 unsigned int *image_data, *image_data_two, *image_data_three; 228 unsigned int *image_data, *image_data_two;
220 229
221 blue = elm_slider_value_get(obj); 230 blue = elm_slider_value_get(obj);
222 image_data = _ephoto_color_adjust_blue(eco, blue, NULL); 231 image_data = _ephoto_color_adjust_blue(eco, blue, NULL);
223 image_data_two = _ephoto_color_adjust_red(eco, eco->red, image_data); 232 image_data_two = _ephoto_color_adjust_red(eco, eco->red, image_data);
224 image_data_three = _ephoto_color_adjust_green(eco, eco->green, image_data_two); 233 _ephoto_color_adjust_green(eco, eco->green, image_data_two);
225} 234}
226 235
227static void 236static void
228_color_reset(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 237_color_reset(void *data, Evas_Object *obj EINA_UNUSED,
238 void *event_info EINA_UNUSED)
229{ 239{
230 Ephoto_Color *eco = data; 240 Ephoto_Color *eco = data;
231 241
@@ -239,20 +249,24 @@ _color_reset(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNU
239} 249}
240 250
241static void 251static void
242_color_apply(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 252_color_apply(void *data, Evas_Object *obj EINA_UNUSED,
253 void *event_info EINA_UNUSED)
243{ 254{
244 Ephoto_Color *eco = data; 255 Ephoto_Color *eco = data;
245 unsigned int *image_data; 256 unsigned int *image_data;
246 int w, h; 257 int w, h;
247 258
248 image_data = evas_object_image_data_get(elm_image_object_get(eco->image), EINA_FALSE); 259 image_data =
260 evas_object_image_data_get(elm_image_object_get(eco->image), EINA_FALSE);
249 evas_object_image_size_get(elm_image_object_get(eco->image), &w, &h); 261 evas_object_image_size_get(elm_image_object_get(eco->image), &w, &h);
250 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_TRUE, image_data, w, h); 262 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_TRUE,
263 image_data, w, h);
251 evas_object_del(eco->frame); 264 evas_object_del(eco->frame);
252} 265}
253 266
254static void 267static void
255_color_cancel(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 268_color_cancel(void *data, Evas_Object *obj EINA_UNUSED,
269 void *event_info EINA_UNUSED)
256{ 270{
257 Ephoto_Color *eco = data; 271 Ephoto_Color *eco = data;
258 272
@@ -268,16 +282,19 @@ _color_cancel(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UN
268} 282}
269 283
270static void 284static void
271_frame_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 285_frame_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
286 void *event_info EINA_UNUSED)
272{ 287{
273 Ephoto_Color *eco = data; 288 Ephoto_Color *eco = data;
289
274 free(eco->original_im_data); 290 free(eco->original_im_data);
275 free(eco); 291 free(eco);
276} 292}
277 293
278void ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image) 294void
295ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image)
279{ 296{
280 Evas_Object *win, *box, *slider, *ic, *button; 297 Evas_Object *box, *slider, *ic, *button;
281 Ephoto_Color *eco; 298 Ephoto_Color *eco;
282 unsigned int *im_data; 299 unsigned int *im_data;
283 300
@@ -292,10 +309,13 @@ void ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image
292 eco->main = main; 309 eco->main = main;
293 eco->parent = parent; 310 eco->parent = parent;
294 eco->image = image; 311 eco->image = image;
295 im_data = evas_object_image_data_get(elm_image_object_get(eco->image), EINA_FALSE); 312 im_data =
296 evas_object_image_size_get(elm_image_object_get(eco->image), &eco->w, &eco->h); 313 evas_object_image_data_get(elm_image_object_get(eco->image), EINA_FALSE);
314 evas_object_image_size_get(elm_image_object_get(eco->image), &eco->w,
315 &eco->h);
297 eco->original_im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 316 eco->original_im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
298 memcpy(eco->original_im_data, im_data, sizeof(unsigned int) * eco->w * eco->h); 317 memcpy(eco->original_im_data, im_data,
318 sizeof(unsigned int) * eco->w * eco->h);
299 319
300 eco->frame = elm_frame_add(parent); 320 eco->frame = elm_frame_add(parent);
301 elm_object_text_set(eco->frame, _("Adjust Color Levels")); 321 elm_object_text_set(eco->frame, _("Adjust Color Levels"));
@@ -303,7 +323,8 @@ void ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image
303 evas_object_size_hint_align_set(eco->frame, EVAS_HINT_FILL, EVAS_HINT_FILL); 323 evas_object_size_hint_align_set(eco->frame, EVAS_HINT_FILL, EVAS_HINT_FILL);
304 elm_box_pack_end(parent, eco->frame); 324 elm_box_pack_end(parent, eco->frame);
305 evas_object_data_set(eco->frame, "eco", eco); 325 evas_object_data_set(eco->frame, "eco", eco);
306 evas_object_event_callback_add(eco->frame, EVAS_CALLBACK_DEL, _frame_del, eco); 326 evas_object_event_callback_add(eco->frame, EVAS_CALLBACK_DEL, _frame_del,
327 eco);
307 evas_object_show(eco->frame); 328 evas_object_show(eco->frame);
308 329
309 box = elm_box_add(eco->frame); 330 box = elm_box_add(eco->frame);
@@ -321,7 +342,8 @@ void ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image
321 elm_slider_unit_format_set(slider, "%1.0f"); 342 elm_slider_unit_format_set(slider, "%1.0f");
322 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL); 343 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
323 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5); 344 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
324 evas_object_smart_callback_add(slider, "delay,changed", _red_slider_changed, eco); 345 evas_object_smart_callback_add(slider, "delay,changed", _red_slider_changed,
346 eco);
325 elm_box_pack_end(box, slider); 347 elm_box_pack_end(box, slider);
326 evas_object_show(slider); 348 evas_object_show(slider);
327 eco->rslider = slider; 349 eco->rslider = slider;
@@ -334,7 +356,8 @@ void ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image
334 elm_slider_unit_format_set(slider, "%1.0f"); 356 elm_slider_unit_format_set(slider, "%1.0f");
335 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL); 357 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
336 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5); 358 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
337 evas_object_smart_callback_add(slider, "delay,changed", _green_slider_changed, eco); 359 evas_object_smart_callback_add(slider, "delay,changed",
360 _green_slider_changed, eco);
338 elm_box_pack_end(box, slider); 361 elm_box_pack_end(box, slider);
339 evas_object_show(slider); 362 evas_object_show(slider);
340 eco->gslider = slider; 363 eco->gslider = slider;
@@ -347,7 +370,8 @@ void ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image
347 elm_slider_unit_format_set(slider, "%1.0f"); 370 elm_slider_unit_format_set(slider, "%1.0f");
348 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL); 371 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
349 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5); 372 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
350 evas_object_smart_callback_add(slider, "delay,changed", _blue_slider_changed, eco); 373 evas_object_smart_callback_add(slider, "delay,changed", _blue_slider_changed,
374 eco);
351 elm_box_pack_end(box, slider); 375 elm_box_pack_end(box, slider);
352 evas_object_show(slider); 376 evas_object_show(slider);
353 eco->bslider = slider; 377 eco->bslider = slider;
@@ -396,6 +420,6 @@ void ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image
396 420
397 return; 421 return;
398 422
399 error: 423 error:
400 return; 424 return;
401} 425}