diff options
author | Michael Terry <michael.terry@canonical.com> | 2011-06-28 15:32:04 +0100 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2011-06-28 15:32:04 +0100 |
commit | f57128cae925df888e1e0cafb9ba988c665ecff8 (patch) | |
tree | 2badc6eec3bf64e8e5e650bce5064ed5aec5b095 /src/datetime-prefs.c | |
parent | 3c5f6a06ff0e44945f788254c44ede18f4061724 (diff) | |
download | ayatana-indicator-datetime-f57128cae925df888e1e0cafb9ba988c665ecff8.tar.gz ayatana-indicator-datetime-f57128cae925df888e1e0cafb9ba988c665ecff8.tar.bz2 ayatana-indicator-datetime-f57128cae925df888e1e0cafb9ba988c665ecff8.zip |
update to handle latest gnome-settings-daemon dbus API for setting timezones; be more fool-proof when looking up current timezone in indicator
Diffstat (limited to 'src/datetime-prefs.c')
-rw-r--r-- | src/datetime-prefs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/datetime-prefs.c b/src/datetime-prefs.c index 85068c7..4bb231b 100644 --- a/src/datetime-prefs.c +++ b/src/datetime-prefs.c @@ -223,10 +223,8 @@ tz_changed (CcTimezoneMap * map, TzLocation * location) if (location == NULL) return; - gchar * file = g_build_filename ("/usr/share/zoneinfo", location->zone, NULL); - g_dbus_proxy_call (proxy, "SetTimezone", g_variant_new ("(s)", file), + g_dbus_proxy_call (proxy, "SetTimezone", g_variant_new ("(s)", location->zone), G_DBUS_CALL_FLAGS_NONE, -1, NULL, dbus_set_answered, "timezone"); - g_free (file); sync_entry (location->zone); } |