[gnome-calendar/calendar-editor] source-dialog: remove previous results before adding new ones
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-editor] source-dialog: remove previous results before adding new ones
- Date: Tue, 31 Mar 2015 02:30:19 +0000 (UTC)
commit d02789beaa6689c0a88bb84ab71a25f639464bc6
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]