diff --git a/src/core/gcal-calendar-monitor.c b/src/core/gcal-calendar-monitor.c index 0a704f139562ca054ed3284e889eff07a6290ed0..87172e788a8fcf514c37edd5780c0905bd834dd9 100644 --- a/src/core/gcal-calendar-monitor.c +++ b/src/core/gcal-calendar-monitor.c @@ -399,7 +399,9 @@ on_client_view_objects_added_cb (ECalClientView *view, { GenerateRecurrencesData recurrences_data; ICalComponent *icomponent; +#if GCAL_ENABLE_TRACE gint old_size; +#endif if (g_cancellable_is_cancelled (self->cancellable)) return; @@ -409,7 +411,10 @@ on_client_view_objects_added_cb (ECalClientView *view, recurrences_data.monitor = self; recurrences_data.expanded_events = expanded_events; +#if GCAL_ENABLE_TRACE old_size = expanded_events->len; +#endif + e_cal_client_generate_instances_for_object_sync (client, icomponent, range_start_time,