[gnome-calendar] Misleading counts of events in the Calendar view's mini-calendar
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Misleading counts of events in the Calendar view's mini-calendar
- Date: Thu, 30 Apr 2015 02:32:54 +0000 (UTC)
commit b72de0c8b0f0b955a08eb323efce6011d8e5697c
Author: Milan Crha <mcrha redhat com>
Date: Tue Apr 28 19:21:03 2015 +0200
Misleading counts of events in the Calendar view's mini-calendar
It was caused by missing view events remove notifications when replacing
ongoing ECalClientView. The previously known (ViewData::lost_components)
were not notified as removed, thus made incorrect counts in the mini-calendar.
src/e-cal-data-model.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/e-cal-data-model.c b/src/e-cal-data-model.c
index 785b56d..7e421fa 100644
--- a/src/e-cal-data-model.c
+++ b/src/e-cal-data-model.c
@@ -1705,6 +1705,12 @@ cal_data_model_remove_client_view (ECalDataModel *data_model,
cal_data_model_notify_remove_components_cb, &nrc_data);
g_hash_table_remove_all (view_data->components);
+ if (view_data->lost_components) {
+ g_hash_table_foreach (view_data->lost_components,
+ cal_data_model_notify_remove_components_cb, &nrc_data);
+ g_hash_table_remove_all (view_data->lost_components);
+ }
+
cal_data_model_thaw_all_subscribers (data_model);
if (view_data->view)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]