[gnome-calendar/wip/pandusonu/week-view: 47/60] week-view: don't set the subscriber range twice
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/pandusonu/week-view: 47/60] week-view: don't set the subscriber range twice
- Date: Fri, 2 Dec 2016 01:52:27 +0000 (UTC)
commit 1cf46abfed8a5707c84d7f1f8b8040562b01266c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 3 14:02:58 2016 -0200
week-view: don't set the subscriber range twice
src/views/gcal-week-view.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
---
diff --git a/src/views/gcal-week-view.c b/src/views/gcal-week-view.c
index c55463a..443f309 100644
--- a/src/views/gcal-week-view.c
+++ b/src/views/gcal-week-view.c
@@ -456,27 +456,11 @@ gcal_week_view_set_property (GObject *object,
{
case PROP_DATE:
{
- time_t range_start, range_end;
- icaltimetype *date;
- icaltimezone* default_zone;
-
g_clear_pointer (&self->date, g_free);
-
self->date = g_value_dup_boxed (value);
- default_zone = gcal_manager_get_system_timezone (self->manager);
- date = gcal_view_get_initial_date (GCAL_VIEW (object));
- range_start = icaltime_as_timet_with_zone (*date,
- default_zone);
- g_free (date);
- date = gcal_view_get_final_date (GCAL_VIEW (object));
- range_end = icaltime_as_timet_with_zone (*date,
- default_zone);
- g_free (date);
- gcal_manager_set_subscriber (self->manager,
- E_CAL_DATA_MODEL_SUBSCRIBER (object),
- range_start,
- range_end);
+ gcal_week_header_set_current_date (GCAL_WEEK_HEADER (self->header), self->date);
+
gtk_widget_queue_draw (GTK_WIDGET (object));
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]