Merge lp:~sgpthomas/granite/timepicker into lp:~elementary-pantheon/granite/granite
Proposed by
Sam Thomas
Status: | Merged |
---|---|
Approved by: | Danielle Foré |
Approved revision: | 966 |
Merged at revision: | 973 |
Proposed branch: | lp:~sgpthomas/granite/timepicker |
Merge into: | lp:~elementary-pantheon/granite/granite |
Diff against target: |
59 lines (+22/-2) 1 file modified
lib/Widgets/TimePicker.vala (+22/-2) |
To merge this branch: | bzr merge lp:~sgpthomas/granite/timepicker |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Bieńkowski (community) | code / testing | Approve | |
Review via email: mp+300403@code.launchpad.net |
Commit message
TimePicker:
* Minutes below 10 have a 0 in front
* Don't show AM/PM switch for 24hr time
Description of the change
Changed the formatting of the minute hand so that minutes below 10 have a 0 appended to the front. For example, '6' becomes '06'. This change makes the timepicker more consistent with how time is usually presented.
Also fixed a bug regarding switching between 12h and 24h time in the timepicker. Previously, if the widget existed, and the time was changed from 12h to 24h, the AM, PM toggle would remain and the hour spinner would remain between 1-12. My changes in this branch fix this problem.
To post a comment you must log in.
Thanks for reworking the branch, it looks much better now!
However there is one UI issue here:
Set the modebutton to be on "AM" and then set the hour to be on 12: you can't click "PM" anymore, the time changes but the "PM" button doesn't get higlighted.
I wrote some inline comments, only some minor code-style issues.
Also, not related to the branch itself: when you create a new follow up branch, you shouldn't remove the previous one: the comments and it's history gets completely removed. Just mark the old one as rejected and comment that there is new branch with a link to it.