From 62f947b4b613cd6ee0a5d296eeefc488b4ba0ae6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 7 Oct 2010 15:20:58 -0600 Subject: Setting the geoclue timezone quickly --- src/datetime-service.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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 . #include #include +#include + #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 */ -- cgit v1.2.3