diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-05-04 01:42:56 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-05-04 01:42:56 +0000 |
commit | 34a7289ceb82ee3e9b16dce53da48673ff2748b9 (patch) | |
tree | f5baae03e920044c01fb1c14bbd47118ae80c0c5 /src/datetime-service.c | |
parent | aac7c2f2cfb886e3c2fc8b042b6eb13f11fc79c2 (diff) | |
parent | 0bc9835c073f883d570493cce3e00c9b207fad46 (diff) | |
download | ayatana-indicator-datetime-34a7289ceb82ee3e9b16dce53da48673ff2748b9.tar.gz ayatana-indicator-datetime-34a7289ceb82ee3e9b16dce53da48673ff2748b9.tar.bz2 ayatana-indicator-datetime-34a7289ceb82ee3e9b16dce53da48673ff2748b9.zip |
merge ryan's timedate1 fixes from the 13.04 branch.
Approved by Mathieu Trudel-Lapierre, PS Jenkins bot.
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index fd77948..cd8f7a6 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -277,7 +277,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; } @@ -293,13 +293,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); @@ -323,9 +323,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; |