[gnome-system-tools] Update services list before checking for NTP support
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Update services list before checking for NTP support
- Date: Wed, 26 Aug 2009 21:54:31 +0000 (UTC)
commit ad82c2854a7bf4cc41424fbd7c24a6b81e97a137
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Wed Aug 26 23:21:18 2009 +0200
Update services list before checking for NTP support
This should avoid the need to restart the tool after distributions install packages. See https://bugs.edge.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/229169.
src/time/time-tool.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/time/time-tool.c b/src/time/time-tool.c
index f9a5249..3ba8f5f 100644
--- a/src/time/time-tool.c
+++ b/src/time/time-tool.c
@@ -99,6 +99,9 @@ get_ntp_service (GstTimeTool *tool)
gboolean valid;
GstServiceRole role;
+ /* Be sure we take into account newly installed NTP support */
+ oobs_object_update (OOBS_OBJECT (tool->services_config));
+
list = oobs_services_config_get_services (OOBS_SERVICES_CONFIG (tool->services_config));
valid = oobs_list_get_iter_first (list, &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]