aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-07 15:17:35 -0600
committerTed Gould <ted@gould.cx>2010-10-07 15:17:35 -0600
commit30be9336b690e1d8b221ac9f03387ce39aa687b3 (patch)
tree1349b06fd6973e573771a41f9f56a25ca0831fec
parent4fff55e013d9ed5ba0dba12abe1a7f0f53c18547 (diff)
downloadayatana-indicator-datetime-30be9336b690e1d8b221ac9f03387ce39aa687b3.tar.gz
ayatana-indicator-datetime-30be9336b690e1d8b221ac9f03387ce39aa687b3.tar.bz2
ayatana-indicator-datetime-30be9336b690e1d8b221ac9f03387ce39aa687b3.zip
Setting up a callback for clicking ot set the timezone
-rw-r--r--src/datetime-service.c9
1 files changed, 9 insertions, 0 deletions
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();