forked from enlightenment/ephoto
Ephoto: Cancel cropping if back button is pressed.
This commit is contained in:
parent
6cce9a1e9e
commit
58a3f75615
|
@ -1251,6 +1251,8 @@ static void
|
||||||
_back(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
_back(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||||
{
|
{
|
||||||
Ephoto_Single_Browser *sb = data;
|
Ephoto_Single_Browser *sb = data;
|
||||||
|
if (sb->cropping)
|
||||||
|
_cancel_crop(sb, NULL, NULL);
|
||||||
evas_object_smart_callback_call(sb->main, "back", sb->entry);
|
evas_object_smart_callback_call(sb->main, "back", sb->entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue