summaryrefslogtreecommitdiff
path: root/src/bin/ephoto_color.c
diff options
context:
space:
mode:
authorStephen okra Houston <smhouston88@gmail.com>2016-01-20 09:56:10 -0600
committerStephen okra Houston <smhouston88@gmail.com>2016-01-20 09:56:10 -0600
commitf656110fc1b05d35c99f0a3db0cc152ac45de521 (patch)
treecf9c17d63ed26dc73873b8f17b74c97b0b2a8082 /src/bin/ephoto_color.c
parent95c5f41301df919363bbacc349bb470b656845fe (diff)
Ephoto: Formatting
Diffstat (limited to 'src/bin/ephoto_color.c')
-rw-r--r--src/bin/ephoto_color.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bin/ephoto_color.c b/src/bin/ephoto_color.c
index 94eb8c3..c8a2ab9 100644
--- a/src/bin/ephoto_color.c
+++ b/src/bin/ephoto_color.c
@@ -257,7 +257,8 @@ _color_apply(void *data, Evas_Object *obj EINA_UNUSED,
257 int w, h; 257 int w, h;
258 258
259 image_data = 259 image_data =
260 evas_object_image_data_get(elm_image_object_get(eco->image), EINA_FALSE); 260 evas_object_image_data_get(elm_image_object_get(eco->image),
261 EINA_FALSE);
261 evas_object_image_size_get(elm_image_object_get(eco->image), &w, &h); 262 evas_object_image_size_get(elm_image_object_get(eco->image), &w, &h);
262 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_TRUE, 263 ephoto_single_browser_image_data_update(eco->main, eco->image, EINA_TRUE,
263 image_data, w, h); 264 image_data, w, h);
@@ -310,7 +311,8 @@ ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image)
310 eco->parent = parent; 311 eco->parent = parent;
311 eco->image = image; 312 eco->image = image;
312 im_data = 313 im_data =
313 evas_object_image_data_get(elm_image_object_get(eco->image), EINA_FALSE); 314 evas_object_image_data_get(elm_image_object_get(eco->image),
315 EINA_FALSE);
314 evas_object_image_size_get(elm_image_object_get(eco->image), &eco->w, 316 evas_object_image_size_get(elm_image_object_get(eco->image), &eco->w,
315 &eco->h); 317 &eco->h);
316 eco->original_im_data = malloc(sizeof(unsigned int) * eco->w * eco->h); 318 eco->original_im_data = malloc(sizeof(unsigned int) * eco->w * eco->h);
@@ -370,8 +372,8 @@ ephoto_color_add(Evas_Object *main, Evas_Object *parent, Evas_Object *image)
370 elm_slider_unit_format_set(slider, "%1.0f"); 372 elm_slider_unit_format_set(slider, "%1.0f");
371 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL); 373 evas_object_size_hint_weight_set(slider, EVAS_HINT_EXPAND, EVAS_HINT_FILL);
372 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5); 374 evas_object_size_hint_align_set(slider, EVAS_HINT_FILL, 0.5);
373 evas_object_smart_callback_add(slider, "delay,changed", _blue_slider_changed, 375 evas_object_smart_callback_add(slider, "delay,changed",
374 eco); 376 _blue_slider_changed, eco);
375 elm_box_pack_end(box, slider); 377 elm_box_pack_end(box, slider);
376 evas_object_show(slider); 378 evas_object_show(slider);
377 eco->bslider = slider; 379 eco->bslider = slider;