From 0cc4d90e0265f957d4064f0a90d1a0d015c53691 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 30 Mar 2015 23:29:09 -0300 Subject: [PATCH] source-dialog: remove previous results before adding new ones --- src/gcal-source-dialog.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index 78e30edf..573e1a94 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -763,6 +763,10 @@ discover_sources_cb (GObject *source, if (n_sources > 1) { + // Remove previous results + g_list_free_full (gtk_container_get_children (GTK_CONTAINER (priv->web_sources_listbox)), + (GDestroyNotify) gtk_widget_destroy); + // Show the list of calendars gtk_revealer_set_reveal_child (GTK_REVEALER (priv->web_sources_revealer), TRUE);