[gnome-calendar] source-dialog: properly hide the list of discovered sources



commit b45e76b9af31a80a150126c7c446d21b69111263
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Apr 20 17:29:49 2015 -0300

    source-dialog: properly hide the list of discovered sources

 src/gcal-source-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 5cfb44f..1ed8e4b 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -1144,6 +1144,11 @@ validate_url_cb (GcalSourceDialog *dialog)
       priv->remote_sources = NULL;
     }
 
+  // Remove previous results
+  g_list_free_full (gtk_container_get_children (GTK_CONTAINER (priv->web_sources_listbox)),
+                    (GDestroyNotify) gtk_widget_destroy);
+  gtk_revealer_set_reveal_child (GTK_REVEALER (priv->web_sources_revealer), FALSE);
+
   // Clear the entry icon
   gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->calendar_address_entry), GTK_ENTRY_ICON_SECONDARY, 
NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]