aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-05-03 13:57:11 -0700
committerCharles Kerr <charles.kerr@canonical.com>2013-05-03 13:57:11 -0700
commitfde3000c07a30bc55ac294c6c877f08050397d29 (patch)
tree4a69a5702a25021166627ceab79d792bfe356374 /src/datetime-service.c
parent5e6762db2485ef88859bdb8fcca636c3dc8aa832 (diff)
parent956c8275300ba29d556711723ef04bfeaf876f7f (diff)
downloadayatana-indicator-datetime-fde3000c07a30bc55ac294c6c877f08050397d29.tar.gz
ayatana-indicator-datetime-fde3000c07a30bc55ac294c6c877f08050397d29.tar.bz2
ayatana-indicator-datetime-fde3000c07a30bc55ac294c6c877f08050397d29.zip
merge ryan's timedate1 changes from trunk.13.04
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index e7fc631..52d9647 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -278,7 +278,7 @@ quick_set_tz_cb (GObject *object, GAsyncResult *res, gpointer data)
GVariant * answers = g_dbus_proxy_call_finish (G_DBUS_PROXY (object), res, &error);
if (error != NULL) {
- g_warning("Could not set timezone for SettingsDaemon: %s", error->message);
+ g_warning("Could not set timezone using timedated: %s", error->message);
g_clear_error (&error);
return;
}
@@ -294,13 +294,13 @@ quick_set_tz_proxy_cb (GObject *object, GAsyncResult *res, gpointer zone)
GDBusProxy * proxy = g_dbus_proxy_new_for_bus_finish (res, &error);
if (error != NULL) {
- g_warning("Could not grab DBus proxy for SettingsDaemon: %s", error->message);
+ g_warning("Could not grab DBus proxy for timedated: %s", error->message);
g_clear_error (&error);
g_free (zone);
return;
}
- g_dbus_proxy_call (proxy, "SetTimezone", g_variant_new ("(s)", zone),
+ g_dbus_proxy_call (proxy, "SetTimezone", g_variant_new ("(sb)", zone, TRUE),
G_DBUS_CALL_FLAGS_NONE, -1, NULL, quick_set_tz_cb, NULL);
g_free (zone);
g_object_unref (proxy);
@@ -324,9 +324,9 @@ quick_set_tz (DbusmenuMenuitem * menuitem, guint timestamp, gpointer user_data)
g_object_unref (conf);
g_dbus_proxy_new_for_bus (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL,
- "org.gnome.SettingsDaemon.DateTimeMechanism",
- "/",
- "org.gnome.SettingsDaemon.DateTimeMechanism",
+ "org.freedesktop.timedate1",
+ "/org/freedesktop/timedate1",
+ "org.freedesktop.timedate1",
NULL, quick_set_tz_proxy_cb, g_strdup (tz));
return;