[gnome-calendar] Updated docs and fixed formatting issues.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Updated docs and fixed formatting issues.
- Date: Sat, 1 Dec 2012 20:34:50 +0000 (UTC)
commit f24e1a1dfab72bf3192bda1fae88adac0521668e
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Thu Nov 22 21:37:27 2012 -0500
Updated docs and fixed formatting issues.
doc/Views | 12 +++++++-----
src/gcal-month-view.c | 4 +++-
src/gcal-year-view.c | 3 ++-
3 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/doc/Views b/doc/Views
index a3f67a4..40973a7 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 5e66e17..2e1ee99 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 2987cdd..3082c66 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]