From f5dc3e7b2cc6f0d6d126fd67cc1a4677f698d106 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 9 Oct 2012 12:20:35 -0500 Subject: remove stray semicolon found by Coverity --- src/datetime-prefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datetime-prefs.c b/src/datetime-prefs.c index d80a59f..952dce1 100644 --- a/src/datetime-prefs.c +++ b/src/datetime-prefs.c @@ -308,7 +308,7 @@ proxy_ready (GObject *object, GAsyncResult *res, IndicatorDatetimePanel * self) g_dbus_proxy_call (priv->proxy, "GetUsingNtp", NULL, G_DBUS_CALL_FLAGS_NONE, -1, priv->ntp_query_cancel, (GAsyncReadyCallback)ntp_query_answered, self); } - if (priv->tz_query_cancel == NULL); { + if (priv->tz_query_cancel == NULL) { priv->tz_query_cancel = g_cancellable_new(); g_dbus_proxy_call (priv->proxy, "GetTimezone", NULL, G_DBUS_CALL_FLAGS_NONE, -1, priv->tz_query_cancel, (GAsyncReadyCallback)tz_query_answered, self); -- cgit v1.2.3 From 59a7001d0a4cdf33da72bc036998addecfa187c5 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 29 Oct 2012 12:13:38 +0100 Subject: make hide_all_appointments() do what its function name says it does. --- src/datetime-service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/datetime-service.c b/src/datetime-service.c index b34c23e..ea79788 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 Date: Mon, 29 Oct 2012 12:15:08 +0100 Subject: in day_selected_cb(), remove the call to hide_all_appointments() to avoid flicker coming from the idle interval between this func and update_appointment_menu_items_idle(). Suggested by thjaeger. --- src/datetime-service.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/datetime-service.c b/src/datetime-service.c index ea79788..d4bd95a 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -448,8 +448,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)); -- cgit v1.2.3 From eab1db188eebe7de89683ed0f5596e96caecd8a9 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 1 Nov 2012 09:35:53 +0100 Subject: express all-day events in the local timezone --- src/datetime-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datetime-service.c b/src/datetime-service.c index b34c23e..60d0cfa 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -864,7 +864,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 -- cgit v1.2.3 From a4700c3cd510f6a0c8feba8fe34c35e306b222c0 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 1 Nov 2012 09:48:42 +0100 Subject: in month_changed_cb(), remove the call to hide_all_appointments() to avoid flicker, same idea as previous commit. --- src/datetime-service.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/datetime-service.c b/src/datetime-service.c index d4bd95a..e08e50d 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -417,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; } -- cgit v1.2.3