Updated docs and fixed formatting issues.
This commit is contained in:
committed by
Rene A. Viant Moran
parent
ef08a2a45f
commit
f24e1a1dfa
@@ -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.
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user