diff --git a/doc/Views b/doc/Views index a3f67a4d..40973a72 100644 --- a/doc/Views +++ b/doc/Views @@ -2,13 +2,15 @@ Here, I'll place some notes about views - - For the creatin of new events: + - For the creation of new events: Views will provide one date or two, in both cases the event created from - views are all day event, so the date passes by the views to GcalEventOverlay + views are all day event, so the date passed by the views to GcalEventOverlay should be marked as is_date views - For marking actual unit: View will provide a two pixels mark for the actual unit in every view. - e.g. week-view will mark the day of week of the actual date, no matters which - week we are seeing. - month-view will mark the day of the month of the actual date. + So: + week-view will mark the day of week of the actual date, no matters + which week we are seeing. + month-view will mark the day of the month of the actual date. + year-view will mark as actual unit the month we're living today. diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 5e66e17f..2e1ee996 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -34,6 +34,7 @@ struct _GcalMonthViewPrivate * Every child added to the list placed in the position * of it corresponding cell number. * The cell number is calculated in _add method. + * cell_index = date->day + - priv->days_delay */ GList *days [35]; @@ -1420,7 +1421,8 @@ gcal_month_view_reposition_child (GcalView *view, icaltimetype *date; gint day; - date = gcal_event_widget_get_date (GCAL_EVENT_WIDGET (child->widget)); + date = + gcal_event_widget_get_date (GCAL_EVENT_WIDGET (child->widget)); if (gcal_month_view_contains (view, date)) { diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c index 2987cddf..3082c669 100644 --- a/src/gcal-year-view.c +++ b/src/gcal-year-view.c @@ -34,6 +34,7 @@ struct _GcalYearViewPrivate * Every child added to the list placed in the position * of it corresponding cell number. * The cell number is calculated in _add method. + * cell_index = date->month - 1 */ GList *months [12]; @@ -219,7 +220,7 @@ gcal_year_view_set_property (GObject *object, { case PROP_DATE: gcal_year_view_set_date (GCAL_YEAR_VIEW (object), - g_value_dup_boxed (value)); + g_value_dup_boxed (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);