aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorDidier Roche <didier.roche@canonical.com>2012-09-20 18:35:06 +0200
committerDidier Roche <didier.roche@canonical.com>2012-09-20 18:35:06 +0200
commit52099c2fe93e72a86e5f6a742582d1110aab5eff (patch)
treed773fcd48ab54f65e9ccce0e06aae4a1f923869b /src/indicator-datetime.c
parented02493a8c6534f1aaf76e005100ad7be7820891 (diff)
parent3f6591ab927a4313f7623904a4a0d75533fa021f (diff)
downloadayatana-indicator-datetime-52099c2fe93e72a86e5f6a742582d1110aab5eff.tar.gz
ayatana-indicator-datetime-52099c2fe93e72a86e5f6a742582d1110aab5eff.tar.bz2
ayatana-indicator-datetime-52099c2fe93e72a86e5f6a742582d1110aab5eff.zip
Import upstream version 12.10.1
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r--src/indicator-datetime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 9e34a65..2356c6d 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -154,6 +154,7 @@ GType indicator_datetime_get_type (void) G_GNUC_CONST;
static void indicator_datetime_class_init (IndicatorDatetimeClass *klass);
static void indicator_datetime_init (IndicatorDatetime *self);
+static void timezone_update_all_labels (IndicatorDatetime *self);
static void set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec);
static void get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec);
static void indicator_datetime_dispose (GObject *object);
@@ -280,6 +281,10 @@ menu_visible_notfy_cb(GtkWidget * menu, G_GNUC_UNUSED GParamSpec *pspec, gpointe
// Set the calendar to todays date
ido_calendar_menu_item_set_date (self->priv->ido_calendar, y, m-1, d);
+ /* Update in case date was changed outside of indicator-datetime */
+ update_label(self, NULL);
+ timezone_update_all_labels(self);
+
// Make sure the day-selected signal is sent so the menu updates - may duplicate
/*GVariant *variant = g_variant_new_uint32((guint)curtime);
guint timestamp = (guint)time(NULL);