aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-10 21:56:36 -0500
committerTed Gould <ted@canonical.com>2009-05-10 21:56:36 -0500
commit79276384b2129363caeaab6c2c6afa957788cc8d (patch)
tree032fdb9316522863c4967d6f43cba0afd2994995
parentb5159bc66b25208344bb456f968cf6494815045b (diff)
downloadayatana-indicator-messages-79276384b2129363caeaab6c2c6afa957788cc8d.tar.gz
ayatana-indicator-messages-79276384b2129363caeaab6c2c6afa957788cc8d.tar.bz2
ayatana-indicator-messages-79276384b2129363caeaab6c2c6afa957788cc8d.zip
Not setting the variable time_update_min when creating the source. Bug found by Ka-Hing Cheung
-rw-r--r--src/im-menu-item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/im-menu-item.c b/src/im-menu-item.c
index 6e3a461..f9a09e6 100644
--- a/src/im-menu-item.c
+++ b/src/im-menu-item.c
@@ -283,7 +283,7 @@ time_cb (IndicateListener * listener, IndicateListenerServer * server, IndicateL
update_time(self);
if (priv->time_update_min == 0) {
- g_timeout_add_seconds(60, time_update_cb, self);
+ priv->time_update_min = g_timeout_add_seconds(60, time_update_cb, self);
}
g_signal_emit(G_OBJECT(self), signals[TIME_CHANGED], 0, priv->seconds, TRUE);