From 55bc2d3f00656af5732066aa59447512882ff7ee Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Fri, 14 Jun 2019 15:09:44 +0800 Subject: Do not reload NTP and modify the button arrangement when starting the service --- capplets/time-admin/src/time-tool.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'capplets/time-admin/src/time-tool.c') diff --git a/capplets/time-admin/src/time-tool.c b/capplets/time-admin/src/time-tool.c index e48f9368..f2375808 100644 --- a/capplets/time-admin/src/time-tool.c +++ b/capplets/time-admin/src/time-tool.c @@ -200,34 +200,6 @@ static void ChangeSpinBttonState(TimeAdmin *ta,gboolean State) SetTooltip(ta->Calendar,!ta->NtpState); } -void ReloadNtp(GDBusProxy *proxy,gboolean state) -{ - GError *error = NULL; - GVariant *ret1,*ret2; - - ret1 = g_dbus_proxy_call_sync (proxy, - "SetNTP", - g_variant_new ("(bb)",!state,!state), - G_DBUS_CALL_FLAGS_NONE, - -1, - NULL, - &error); - - ret2 = g_dbus_proxy_call_sync (proxy, - "SetNTP", - g_variant_new ("(bb)",state,state), - G_DBUS_CALL_FLAGS_NONE, - -1, - NULL, - &error); - - if(ret1 == NULL || ret2 == NULL) - { - MessageReport(_("Reload Ntp sync"),error->message,ERROR); - g_error_free(error); - } - -} gboolean ChangeNtpSync(GtkSwitch *widget,gboolean state,gpointer data) { TimeAdmin *ta = (TimeAdmin *)data; -- cgit v1.2.1