forked from enlightenment/efl
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:
parent
38db4b4c03
commit
50b549faa2
|
@ -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 */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue