[gnome-calendar] source-dialog: remove discovered sources when page is cleared
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] source-dialog: remove discovered sources when page is cleared
- Date: Mon, 25 May 2015 16:53:19 +0000 (UTC)
commit c04f13f474e1c2b9b559b13c9491dfea053cc27b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Mar 30 23:12:58 2015 -0300
source-dialog: remove discovered sources when page is cleared
src/gcal-source-dialog.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 100fd4c..78e30ed 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -162,13 +162,21 @@ static void
clear_pages (GcalSourceDialog *dialog)
{
GcalSourceDialogPrivate *priv = dialog->priv;
+ GList *list;
gtk_entry_set_text (GTK_ENTRY (priv->calendar_address_entry), "");
gtk_widget_set_sensitive (priv->add_button, FALSE);
+ // Remove discovered web sources (if any)
+ list = gtk_container_get_children (GTK_CONTAINER (priv->web_sources_listbox));
+ g_list_free_full (list, (GDestroyNotify) gtk_widget_destroy);
+
+ gtk_revealer_set_reveal_child (GTK_REVEALER (priv->web_sources_revealer), FALSE);
+
/* details frame */
if (gtk_widget_get_parent (priv->details_frame) != NULL)
gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (priv->details_frame)), priv->details_frame);
+
gtk_widget_hide (priv->details_frame);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]