After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706378 - ON/OFF button looks insensitive, but is actually sensitive
ON/OFF button looks insensitive, but is actually sensitive
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Date and Time
git master
Other Linux
: Normal normal
: ---
Assigned To: Zeeshan Ali
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-20 10:06 UTC by Andreas Nilsson
Modified: 2013-08-29 15:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screencast (611.91 KB, video/webm)
2013-08-20 10:06 UTC, Andreas Nilsson
  Details
datetime: Hide the NTP switch when the service is unavailable (1.42 KB, patch)
2013-08-24 18:13 UTC, Kalev Lember
committed Details | Review

Description Andreas Nilsson 2013-08-20 10:06:16 UTC
Created attachment 252368 [details]
screencast

Looks like you're unable to modify it, but you actually can.
Comment 1 Kalev Lember 2013-08-24 18:12:48 UTC
The issue here is that the NTP switch is insensitive (OSTree doesn't ship an NTP client) but it's possible to bypass it by clicking it on the row containing the switch.

I think we're currently doing the wrong thing by setting the switch insensitive; should simply hide the option when the service isn't available. If the system integrator has chosen to not ship NTP, we shouldn't show an insensitive switch either.
Comment 2 Kalev Lember 2013-08-24 18:13:24 UTC
Created attachment 253019 [details] [review]
datetime: Hide the NTP switch when the service is unavailable
Comment 3 Debarshi Ray 2013-08-29 13:23:35 UTC
Can't we just have a hard dependency on a NTP client? Why doesn't OSTree have one?
Comment 4 Kalev Lember 2013-08-29 13:43:13 UTC
OSTree has a fairly small core and doesn't ship many optional packages. I'm adding Walters to CC -- would an NTP client be something that OSTree can include?

Regarding making an NTP client a hard dependency, I don't think this can work. We only use it through the systemd DBus interface at runtime and can't make it a hard compile time dependency.

I could add a g_warning there though to let system integrators know that they're missing a dependency.
Comment 5 Colin Walters 2013-08-29 13:51:53 UTC
I'd be happy if it was an optional dependency; basically I think gnome-ostree is already a bit too large with not enough tests, and its entire purpose in life is to be a small well tested and validated core that can be reused by larger systems.

Futher, gnome-ostree is only targeting virtualized environments, and what you really want there is to use paravirtualized devices like e.g.: http://www.linux-kvm.org/page/KVMClock
Comment 6 Debarshi Ray 2013-08-29 14:00:07 UTC
Review of attachment 253019 [details] [review]:

Thanks Colin. Looks good to me, then.
Comment 7 Kalev Lember 2013-08-29 15:43:50 UTC
Attachment 253019 [details] pushed as ab1d1b0 - datetime: Hide the NTP switch when the service is unavailable