summaryrefslogtreecommitdiff
path: root/src/bin/ephoto_color.c
diff options
context:
space:
mode:
authorStephen Houston <smhouston88@gmail.com>2015-10-30 14:50:13 -0500
committerStephen Houston <smhouston88@gmail.com>2015-10-30 14:50:13 -0500
commit485d0342d783566f7bb375dafca73cb818b70749 (patch)
treeaa56c78d360cbeacac3124cc88e342ae7d0a38d7 /src/bin/ephoto_color.c
parentae946f5b742477563daf514f4862cea2e99c4ae0 (diff)
Ephoto: Make sure to reset changes on cancel.
Diffstat (limited to 'src/bin/ephoto_color.c')
-rw-r--r--src/bin/ephoto_color.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/ephoto_color.c b/src/bin/ephoto_color.c
index c8987bd..218c960 100644
--- a/src/bin/ephoto_color.c
+++ b/src/bin/ephoto_color.c
@@ -228,6 +228,7 @@ static void
228_color_reset(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 228_color_reset(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
229{ 229{
230 Ephoto_Color *eco = data; 230 Ephoto_Color *eco = data;
231
231 elm_slider_value_set(eco->rslider, 0); 232 elm_slider_value_set(eco->rslider, 0);
232 elm_slider_value_set(eco->gslider, 0); 233 elm_slider_value_set(eco->gslider, 0);
233 elm_slider_value_set(eco->bslider, 0); 234 elm_slider_value_set(eco->bslider, 0);
@@ -254,6 +255,14 @@ static void
254_color_cancel(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 255_color_cancel(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
255{ 256{
256 Ephoto_Color *eco = data; 257 Ephoto_Color *eco = data;
258
259 elm_slider_value_set(eco->rslider, 0);
260 elm_slider_value_set(eco->gslider, 0);
261 elm_slider_value_set(eco->bslider, 0);
262 eco->red = 0;
263 eco->green = 0;
264 eco->blue = 0;
265 _red_slider_changed(eco, eco->rslider, NULL);
257 ephoto_single_browser_cancel_editing(eco->main, eco->image); 266 ephoto_single_browser_cancel_editing(eco->main, eco->image);
258 evas_object_del(eco->frame); 267 evas_object_del(eco->frame);
259} 268}