[gnome-calendar] window: comment misleading destruction of calendar row
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: comment misleading destruction of calendar row
- Date: Mon, 25 May 2015 17:04:42 +0000 (UTC)
commit c1b14e48d4c0ab2e40b17d7b158352d4693d78d6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon May 18 17:42:43 2015 -0300
window: comment misleading destruction of calendar row
src/gcal-window.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index abf60fa..4db92e5 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]