diff options
author | zhuyaliang <[email protected]> | 2019-06-14 15:09:44 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-14 12:05:04 +0200 |
commit | 55bc2d3f00656af5732066aa59447512882ff7ee (patch) | |
tree | 866efc522889a1d13139c0f26c2c0f1e0d3f355c /capplets/time-admin/src/time-tool.c | |
parent | 92b2a0f7f5cdac3e6bebad98de0c47bdffc822af (diff) | |
download | mate-control-center-55bc2d3f00656af5732066aa59447512882ff7ee.tar.bz2 mate-control-center-55bc2d3f00656af5732066aa59447512882ff7ee.tar.xz |
Do not reload NTP and modify the button arrangement when starting the service
Diffstat (limited to 'capplets/time-admin/src/time-tool.c')
-rw-r--r-- | capplets/time-admin/src/time-tool.c | 28 |
1 files changed, 0 insertions, 28 deletions
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; |