[gnome-calendar] source-dialog: remove previous results before adding new ones
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: remove previous results before adding new ones
- Date: Mon, 25 May 2015 16:53:24 +0000 (UTC)
commit 0cc4d90e0265f957d4064f0a90d1a0d015c53691
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Mar 30 23:29:09 2015 -0300
source-dialog: remove previous results before adding new ones
src/gcal-source-dialog.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 78e30ed..573e1a9 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]