aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorkarl-qdh <karl@qdh.org.uk>2011-02-15 14:54:00 +0000
committerkarl-qdh <karl@qdh.org.uk>2011-02-15 14:54:00 +0000
commit09bfd842c5834c2e20731eec340210b8ef2158a0 (patch)
treef11a396bed95d632ce54331292901d5cb4e24a84 /src/indicator-datetime.c
parentd59aaf9c31b2db87b517095caff818a9ff50343a (diff)
downloadayatana-indicator-datetime-09bfd842c5834c2e20731eec340210b8ef2158a0.tar.gz
ayatana-indicator-datetime-09bfd842c5834c2e20731eec340210b8ef2158a0.tar.bz2
ayatana-indicator-datetime-09bfd842c5834c2e20731eec340210b8ef2158a0.zip
Added a partially working timezone menu items code, there are some difficulties in menu labels which aren't showing, and radio menu items. Also, it's incomplete as the time calculation is waiting until the labels work.
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r--src/indicator-datetime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 1f61864..a9b77b9 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -1106,6 +1106,14 @@ indicator_prop_change_cb (DbusmenuMenuitem * mi, gchar * prop, gchar * value, in
g_object_unref(resized_pixbuf);
}
}
+ } else if (!g_strcmp0(prop, TIMEZONE_MENUITEM_PROP_LABEL)) {
+ /* Set the main label */
+ gtk_label_set_text(GTK_LABEL(mi_data->label), value);
+ } else if (!g_strcmp0(prop, TIMEZONE_MENUITEM_PROP_RIGHT)) {
+ /* Set the right label */
+ gtk_label_set_text(GTK_LABEL(mi_data->right), value);
+ } else if (!g_strcmp0(prop, TIMEZONE_MENUITEM_PROP_RADIO)) {
+ //gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(mi_data->radio), value);
} else {
g_warning("Indicator Item property '%s' unknown", prop);
}