Merge lp://qastaging/~desrt/indicator-datetime/timedated into lp://qastaging/indicator-datetime/13.04

Proposed by desrt
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 211
Merged at revision: 212
Proposed branch: lp://qastaging/~desrt/indicator-datetime/timedated
Merge into: lp://qastaging/indicator-datetime/13.04
Diff against target: 260 lines (+51/-89)
3 files modified
data/datetime-dialog.ui (+1/-1)
src/datetime-prefs.c (+44/-82)
src/datetime-service.c (+6/-6)
To merge this branch: bzr merge lp://qastaging/~desrt/indicator-datetime/timedated
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Mathieu Trudel-Lapierre Approve
Charles Kerr (community) Approve
Review via email: mp+151560@code.qastaging.launchpad.net

Commit message

Port to timedated instead of gnome-settings-daemon datetime mechanism

Description of the change

Port to timedated instead of gnome-settings-daemon datetime mechanism

Don't merge this until desktop team gets the needed g-s-d, g-c-c,
policykit-desktop-privileges, systemd-shim and ubuntu-system-service changes into the distro...

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

Looks good.

The only issue I see is the minor regression of not desensitizing the from-the-internet button when ntp isn't available, as required by the spec. This isn't a showstopper, since upstream will be adding an "is ntp supported?" call and we can fix the regression then.

209. By desrt

Send proper arguments for SetTime call

vs. the gnome-settings-daemon DateTimeMechanism, the systemd version
adds an extra two boolean arguments and wants time in microseconds
instead of seconds.

Make sure we're doing that properly.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
210. By desrt

preferences: Add CanNTP support

If timedated has the CanNTP property then use it to set the sensitivity
of the "Automatically from the internet" radio.

This property is only available in new versions of systemd, so if the
property is not set, leave the widget sensitive.

Revision history for this message
Charles Kerr (charlesk) wrote :

Thanks for doing the upstream patch!

It looks like the updated prefs patch here has an accidental copy-paste on line 261, we probably don't want to call toggle_ntp() twice each time priv->auto_radio is toggled.

211. By desrt

prefs: remove second signal connection for toggle_ntp

Copy/paste error. Thanks Charles. :)

Revision history for this message
desrt (desrt) wrote :

Absolutely correct and a good catch.

Updated the branch again.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

There's a commit message and this builds fine on amd64 and armhf for me, approving.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches