summaryrefslogtreecommitdiff
path: root/src/bin/ephoto_color.c
diff options
context:
space:
mode:
authorStephen Houston <stephen@lenovo.fedora>2016-04-05 19:30:25 -0500
committerStephen Houston <stephen@lenovo.fedora>2016-04-05 19:30:25 -0500
commit94fddb9f36b0e4a35495476ede54751d2418689a (patch)
tree29c01bae1487b2bd007894e9a03339d9650f4cb4 /src/bin/ephoto_color.c
parent0bf54e689e2e8ecc87a3d9841522c18bdf6a8580 (diff)
Ephoto: Work around some bugs with editing.
Diffstat (limited to 'src/bin/ephoto_color.c')
-rw-r--r--src/bin/ephoto_color.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/bin/ephoto_color.c b/src/bin/ephoto_color.c
index 73ddc70..282365f 100644
--- a/src/bin/ephoto_color.c
+++ b/src/bin/ephoto_color.c
@@ -89,7 +89,7 @@ _ephoto_color_adjust_red(Ephoto_Color *eco, int red, unsigned int *image_data)
89 p1++; 89 p1++;
90 } 90 }
91 } 91 }
92 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE, 92 ephoto_single_browser_image_data_update(eco->main, eco->image,
93 im_data_new, eco->w, eco->h); 93 im_data_new, eco->w, eco->h);
94 free(im_data); 94 free(im_data);
95 return im_data_new; 95 return im_data_new;
@@ -138,7 +138,7 @@ _ephoto_color_adjust_green(Ephoto_Color *eco, int green,
138 p1++; 138 p1++;
139 } 139 }
140 } 140 }
141 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE, 141 ephoto_single_browser_image_data_update(eco->main, eco->image,
142 im_data_new, eco->w, eco->h); 142 im_data_new, eco->w, eco->h);
143 free(im_data); 143 free(im_data);
144 return im_data_new; 144 return im_data_new;
@@ -187,7 +187,7 @@ _ephoto_color_adjust_blue(Ephoto_Color *eco, int blue,
187 p1++; 187 p1++;
188 } 188 }
189 } 189 }
190 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_FALSE, 190 ephoto_single_browser_image_data_update(eco->main, eco->image,
191 im_data_new, eco->w, eco->h); 191 im_data_new, eco->w, eco->h);
192 free(im_data); 192 free(im_data);
193 return im_data_new; 193 return im_data_new;
@@ -263,8 +263,7 @@ _color_apply(void *data, int type EINA_UNUSED,
263 evas_object_image_data_get(elm_image_object_get(eco->image), 263 evas_object_image_data_get(elm_image_object_get(eco->image),
264 EINA_FALSE); 264 EINA_FALSE);
265 evas_object_image_size_get(elm_image_object_get(eco->image), &w, &h); 265 evas_object_image_size_get(elm_image_object_get(eco->image), &w, &h);
266 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_TRUE, 266 ephoto_single_browser_image_data_done(eco->main, image_data, w, h);
267 image_data, w, h);
268 ephoto_editor_del(eco->editor); 267 ephoto_editor_del(eco->editor);
269 268
270 return ECORE_CALLBACK_PASS_ON; 269 return ECORE_CALLBACK_PASS_ON;
@@ -283,7 +282,7 @@ _color_cancel(void *data, int type EINA_UNUSED,
283 eco->green = 0; 282 eco->green = 0;
284 eco->blue = 0; 283 eco->blue = 0;
285 _red_slider_changed(eco, eco->rslider, NULL); 284 _red_slider_changed(eco, eco->rslider, NULL);
286 ephoto_single_browser_cancel_editing(eco->main, eco->image); 285 ephoto_single_browser_cancel_editing(eco->main);
287 ephoto_editor_del(eco->editor); 286 ephoto_editor_del(eco->editor);
288 287
289 return ECORE_CALLBACK_PASS_ON; 288 return ECORE_CALLBACK_PASS_ON;