From e3e19b4cea5e9b04e95c0495c5ee9ba08cb62547 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 4 May 2019 10:16:48 -0300 Subject: [PATCH] application: Parse CSS more aggressively --- src/gcal-application.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gcal-application.c b/src/gcal-application.c index cab028bd..637159fb 100644 --- a/src/gcal-application.c +++ b/src/gcal-application.c @@ -116,10 +116,7 @@ process_sources (GcalApplication *self) const GdkRGBA *color; GcalCalendar *calendar; - calendar = l->data; - - if (!gcal_calendar_get_visible (calendar)) - continue; + calendar = GCAL_CALENDAR (l->data); color = gcal_calendar_get_color (calendar); color_str = gdk_rgba_to_string (color); @@ -618,6 +615,7 @@ gcal_application_init (GcalApplication *self) manager = gcal_context_get_manager (self->context); g_signal_connect_swapped (manager, "calendar-added", G_CALLBACK (process_sources), self); g_signal_connect_swapped (manager, "calendar-changed", G_CALLBACK (process_sources), self); + g_signal_connect_swapped (manager, "calendar-removed", G_CALLBACK (process_sources), self); self->search_provider = gcal_shell_search_provider_new (self->context); }