diff options
author | Ted Gould <ted@gould.cx> | 2010-10-07 15:20:58 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-10-07 15:20:58 -0600 |
commit | 62f947b4b613cd6ee0a5d296eeefc488b4ba0ae6 (patch) | |
tree | 50cd86394f81d6f59d4b51baa3ccc446b5bf6761 | |
parent | 30be9336b690e1d8b221ac9f03387ce39aa687b3 (diff) | |
download | ayatana-indicator-datetime-62f947b4b613cd6ee0a5d296eeefc488b4ba0ae6.tar.gz ayatana-indicator-datetime-62f947b4b613cd6ee0a5d296eeefc488b4ba0ae6.tar.bz2 ayatana-indicator-datetime-62f947b4b613cd6ee0a5d296eeefc488b4ba0ae6.zip |
Setting the geoclue timezone quickly
-rw-r--r-- | src/datetime-service.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index fb8a862..60fa7eb 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -33,6 +33,8 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include <geoclue/geoclue-master.h> #include <geoclue/geoclue-master-client.h> +#include <oobs/oobs-timeconfig.h> + #include "datetime-interface.h" #include "dbus-shared.h" @@ -133,8 +135,10 @@ update_current_timezone (void) { static void quick_set_tz (DbusmenuMenuitem * menuitem, guint timestamp, const gchar *command) { - - + OobsTimeConfig * timeconfig = OOBS_TIME_CONFIG(oobs_time_config_get()); + oobs_time_config_set_timezone(timeconfig, geo_timezone); + g_object_unref(G_OBJECT(timeconfig)); + return; } /* Updates the label in the date menuitem */ |