From c1b14e48d4c0ab2e40b17d7b158352d4693d78d6 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 18 May 2015 17:42:43 -0300 Subject: [PATCH] window: comment misleading destruction of calendar row --- src/gcal-window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gcal-window.c b/src/gcal-window.c index abf60fac..4db92e56 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -952,6 +952,12 @@ source_enabled (GcalManager *manager, { ESource *child_source = g_object_get_data (G_OBJECT (aux->data), "source"); + /* + * Here we destroy the row and re-add it because there is no + * way to actually bind the ::enabled state of source. It behaves + * like a construct-only property, and we need to re-create the + * row if there's any changes. + */ if (child_source != NULL && child_source == source) { gtk_widget_destroy (aux->data);