aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index b34c23e..e63fed6 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -399,8 +399,10 @@ hide_all_appointments (void)
{
int i;
- for (i=0; i<MAX_APPOINTMENT_MENUITEMS; i++)
+ for (i=0; i<MAX_APPOINTMENT_MENUITEMS; i++) {
dbusmenu_menuitem_property_set_bool(appointments[i], DBUSMENU_MENUITEM_PROP_ENABLED, FALSE);
+ dbusmenu_menuitem_property_set_bool(appointments[i], DBUSMENU_MENUITEM_PROP_VISIBLE, FALSE);
+ }
}
static gboolean
@@ -415,8 +417,6 @@ month_changed_cb (DbusmenuMenuitem * menuitem, gchar *name, GVariant *variant, g
user. */
dbusmenu_menuitem_property_remove(menuitem, CALENDAR_MENUITEM_PROP_MARKS);
- hide_all_appointments ();
-
g_idle_add(update_appointment_menu_items_idle, NULL);
return TRUE;
}
@@ -446,8 +446,6 @@ day_selected_cb (DbusmenuMenuitem * menuitem, gchar *name, GVariant *variant, gu
}
}
- hide_all_appointments ();
-
start_time_appointments = new_time;
g_debug("Received day-selected with timestamp: %d -> %s",(int)start_time_appointments, ctime(&start_time_appointments));
@@ -864,7 +862,7 @@ update_appointment_menu_items (gpointer unused)
// Due text
if (full_day) {
struct tm fulldaytime = {0};
- gmtime_r(&ci->start, &fulldaytime);
+ localtime_r(&ci->start, &fulldaytime);
/* TRANSLATORS: This is a strftime string for the day for full day events
in the menu. It should most likely be either '%A' for a full text day