elm_calendar: fix first week is not changed

Summary: @fix

Test Plan:
1. elm_calendar_first_day_of_week_set(cal, ELM_DAY_MONDAY);
2. First week string should be changed to "Mon"

Reviewers: tasn, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4135

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jiwon Kim 2016-07-06 12:49:43 -07:00 committed by Cedric BAIL
parent 38db4b4c03
commit 50b549faa2
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ _set_headers(Evas_Object *obj)
}
}
part[3] = i + '0';
elm_layout_text_set(obj, part, sd->weekdays[i]);
elm_layout_text_set(obj, part, sd->weekdays[(i + sd->first_week_day) % ELM_DAY_LAST]);
weekday += 86400; /* Advance by a day */
}
}