From 30be9336b690e1d8b221ac9f03387ce39aa687b3 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 7 Oct 2010 15:17:35 -0600 Subject: Setting up a callback for clicking ot set the timezone --- src/datetime-service.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/datetime-service.c b/src/datetime-service.c index c24b223..fb8a862 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -129,6 +129,14 @@ update_current_timezone (void) { return; } +/* Set the timezone to the Geoclue discovered one */ +static void +quick_set_tz (DbusmenuMenuitem * menuitem, guint timestamp, const gchar *command) +{ + + +} + /* Updates the label in the date menuitem */ static gboolean update_datetime (gpointer user_data) @@ -246,6 +254,7 @@ build_menus (DbusmenuMenuitem * root) tzchange = dbusmenu_menuitem_new(); dbusmenu_menuitem_property_set(tzchange, DBUSMENU_MENUITEM_PROP_LABEL, "Set specific timezone"); dbusmenu_menuitem_property_set_bool(tzchange, DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE); + g_signal_connect(G_OBJECT(tzchange), DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED, G_CALLBACK(quick_set_tz), NULL); dbusmenu_menuitem_child_append(root, tzchange); check_timezone_sync(); -- cgit v1.2.3