From 7b97d550048b469473e1641b6c1c8b893099cc41 Mon Sep 17 00:00:00 2001 From: Woochan Lee Date: Wed, 30 Nov 2016 13:24:37 +0900 Subject: elm_calendar: Use the flag already declared. Summary: Oops, i missed use it in previous commit(6c04755a922d396356a561b85e010105e6ff61ae) Reviewers: cedric, jpeg, woohyun, Hermet Reviewed By: Hermet Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4437 --- src/lib/elementary/elm_calendar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_calendar.c b/src/lib/elementary/elm_calendar.c index 14cc38651e..971f893ed8 100644 --- a/src/lib/elementary/elm_calendar.c +++ b/src/lib/elementary/elm_calendar.c @@ -1550,7 +1550,7 @@ _key_action_move(Evas_Object *obj, const char *params) //Otherwise, give focus to dec_btn_month. if (sd->focused_it > (ELM_DAY_LAST / 2)) //Double spinner case. - if (edje_object_part_exists(wd->resize_obj, ELM_CALENDAR_BUTTON_YEAR_RIGHT)) + if (double_spinner) elm_object_focus_set(sd->inc_btn_year, EINA_TRUE); else elm_object_focus_set(sd->inc_btn_month, EINA_TRUE); @@ -1571,7 +1571,7 @@ _key_action_move(Evas_Object *obj, const char *params) { if (sd->focused_it > (ELM_DAY_LAST + (ELM_DAY_LAST / 2))) //Double spinner case. - if (edje_object_part_exists(wd->resize_obj, ELM_CALENDAR_BUTTON_YEAR_RIGHT)) + if (double_spinner) elm_object_focus_set(sd->inc_btn_year, EINA_TRUE); else elm_object_focus_set(sd->inc_btn_month, EINA_TRUE); -- cgit v1.2.1