gcal-window: fixed update_view method

Used new GcalView:clear to destroy all the event-widget children of a view
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:27 -05:00
parent fcef0d64d1
commit b54ac5510b
2 changed files with 17 additions and 2 deletions
+1 -2
View File
@@ -230,8 +230,7 @@ update_view (GcalWindow *window)
widget = priv->views[priv->active_view];
/* destroying old children */
/* gtk_container_foreach (GTK_CONTAINER (widget), */
/* (GtkCallback) gtk_widget_destroy, NULL); */
gcal_view_clear (GCAL_VIEW (widget));
first_day = gcal_view_get_initial_date (GCAL_VIEW (widget));
last_day = gcal_view_get_final_date (GCAL_VIEW (widget));