diff options
author | Ted Gould <ted@gould.cx> | 2011-03-30 11:03:51 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-30 11:03:51 -0500 |
commit | 88d10f2b5102676f9498a700ef290b42953664f1 (patch) | |
tree | a57cbe24f9412e61c41e196f582b63f1391f3fd9 /src/datetime-service.c | |
parent | fbd5c581cc7f8ca4bc7386f6957b5c41e3d266cf (diff) | |
download | ayatana-indicator-datetime-88d10f2b5102676f9498a700ef290b42953664f1.tar.gz ayatana-indicator-datetime-88d10f2b5102676f9498a700ef290b42953664f1.tar.bz2 ayatana-indicator-datetime-88d10f2b5102676f9498a700ef290b42953664f1.zip |
Clear marks on month changes
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index ef67d85..6042e94 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -281,6 +281,11 @@ month_changed_cb (DbusmenuMenuitem * menuitem, gchar *name, GVariant *variant, g start_time_appointments = (time_t)g_variant_get_uint32(variant); g_debug("Received month changed with timestamp: %d -> %s",(int)start_time_appointments, ctime(&start_time_appointments)); + /* By default one of the first things we do is + clear the marks as we don't know the correct + ones yet and we don't want to confuse the + user. */ + dbusmenu_menuitem_property_remove(menuitem, CALENDAR_MENUITEM_PROP_MARKS); update_appointment_menu_items(NULL); return TRUE; } |